Pārlūkot izejas kodu

课文气泡默认字号改为14pt 预览宽度最大为530px

natasha 1 mēnesi atpakaļ
vecāks
revīzija
79c8bfe850

+ 1 - 1
src/views/book/courseware/create/components/question/article/Article.vue

@@ -349,7 +349,7 @@
             v-if="matchNotesObj.isRich"
             ref="richText"
             v-model="matchNotesObj.con"
-            :font-size="data.unified_attrib?.font_size"
+            :font-size="'14pt'"
             :font-family="data.unified_attrib?.font"
             :font-color="data.unified_attrib?.text_color"
             toolbar="fontselect fontsizeselect forecolor backcolor | underline | bold italic strikethrough alignleft aligncenter alignright image media link"

+ 1 - 1
src/views/book/courseware/create/components/question/dialogue_article/Article.vue

@@ -547,7 +547,7 @@
             v-if="matchNotesObj.isRich"
             ref="richText"
             v-model="matchNotesObj.con"
-            :font-size="data.unified_attrib?.font_size"
+            :font-size="'14pt'"
             :font-family="data.unified_attrib?.font"
             :font-color="data.unified_attrib?.text_color"
             toolbar="fontselect fontsizeselect forecolor backcolor | underline | bold italic strikethrough alignleft aligncenter alignright image media link"

+ 3 - 2
src/views/book/courseware/preview/components/article/NormalModelChs.vue

@@ -1801,7 +1801,6 @@
 import AudioLine from '../voice_matrix/components/AudioLine.vue';
 import Notecard from './components/Notecard.vue';
 import RemarkChs from '../dialogue_article/RemarkChs.vue';
-import { data } from 'vis-network';
 export default {
   name: 'NormalModelChs',
   components: {
@@ -1826,8 +1825,9 @@ export default {
       resArr: [],
       resObj: null,
       curTime: 0, // 单位s
-      chsFhList: [',', '。', '”', ':', '》', '?', '!', ';', '#', '、'],
+      chsFhList: [',', '。', '”', ':', '》', '?', '!', ';', '#', '、', '('],
       enFhList: [',', '.', ';', '?', '!', ':', '>', '<'],
+      firstFhlist: ['(', '“'],
       NumberList: ['①', '②', '③', '④', '⑤', '⑥', '⑦', '⑧', '⑨', '⑩', '⑪', '⑫', '⑬', '⑭', '⑮', '⑯', '⑰', '⑱', '⑲', '⑳'],
       newWords: ['鱼', '辩礼义'],
 
@@ -2769,6 +2769,7 @@ export default {
 </style>
 <style lang="scss">
 .article-bubble.el-tooltip__popper.is-light {
+  max-width: 530px;
   border-color: #fff;
   box-shadow: 0 4px 16px rgba(0, 0, 0, 15%);
 }

+ 19 - 0
src/views/book/courseware/preview/components/article/PhraseModelChs.vue

@@ -350,6 +350,7 @@
                                       ? attrib.font_size.replace('pt', '') * 1.4 + 'pt'
                                       : '28px',
                                   fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
+                                  width: item.wordsList[pIndex + 1].chs.trim() === '' ? '6px' : '',
                                   lineHeight:
                                     attrib && attrib.font_size
                                       ? attrib.font_size.replace('pt', '') * 1.4 + 'pt'
@@ -402,6 +403,8 @@
                                     attrib && attrib.font_size
                                       ? attrib.font_size.replace('pt', '') * 1.4 + 'pt'
                                       : '28px',
+
+                                  width: item.wordsList[pIndex + 1].chs.trim() === '' ? '6px' : '',
                                 }"
                                 @click.stop="
                                   viewNotes(
@@ -521,6 +524,7 @@
                                     attrib && attrib.font_size
                                       ? attrib.font_size.replace('pt', '') * 1.4 + 'pt'
                                       : '28px',
+                                  width: item.wordsList[pIndex + 2].chs.trim() === '' ? '6px' : '',
                                 }"
                                 @click.stop="
                                   viewNotes(
@@ -569,6 +573,8 @@
                                     attrib && attrib.font_size
                                       ? attrib.font_size.replace('pt', '') * 1.4 + 'pt'
                                       : '28px',
+
+                                  width: item.wordsList[pIndex + 2].chs.trim() === '' ? '6px' : '',
                                 }"
                                 @click.stop="
                                   viewNotes(
@@ -677,6 +683,8 @@
                                     : pItem.matchNotesObj.con && pItem.matchNotesObj.notesColor
                                       ? pItem.matchNotesObj.notesColor
                                       : pItem.config.color,
+
+                                width: pItem.chs.trim() === '' ? '6px' : '',
                               }"
                               ><span
                                 v-for="(wItem, wIndex) in pItem.leg"
@@ -737,6 +745,8 @@
                                     : pItem.matchNotesObj.con && pItem.matchNotesObj.notesColor
                                       ? pItem.matchNotesObj.notesColor
                                       : pItem.config.color,
+
+                                width: pItem.chs.trim() === '' ? '6px' : '',
                               }"
                               ><span
                                 v-for="(wItem, wIndex) in pItem.leg"
@@ -926,6 +936,8 @@
                                     attrib && attrib.font_size
                                       ? attrib.font_size.replace('pt', '') * 1.4 + 'pt'
                                       : '28px',
+
+                                  width: pItem.chs[wIndex].trim() === '' ? '6px' : '',
                                 }"
                                 @click.stop="
                                   viewNotes($event, pItem.words ? pItem.words : pItem.chs[wIndex], pItem.chs, pItem)
@@ -992,6 +1004,8 @@
                                 fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
                                 lineHeight:
                                   attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
+
+                                width: item.sentArr[pIndex + 1].chs.trim() === '' ? '6px' : '',
                               }"
                               @click.stop="
                                 viewNotes(
@@ -1078,6 +1092,8 @@
                                 fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
                                 lineHeight:
                                   attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
+
+                                width: item.sentArr[pIndex + 2].chs.trim() === '' ? '6px' : '',
                               }"
                               @click.stop="
                                 viewNotes(
@@ -1173,6 +1189,8 @@
                                 fontSize: attrib && attrib.font_size ? attrib.font_size : '20px',
                                 lineHeight:
                                   attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
+
+                                width: pItem.chs[wIndex].trim() === '' ? '6px' : '',
                               }"
                               @click.stop="
                                 viewNotes($event, pItem.words ? pItem.words : pItem.chs[wIndex], pItem.chs, pItem)
@@ -2571,6 +2589,7 @@ export default {
 </style>
 <style lang="scss">
 .article-bubble.el-tooltip__popper.is-light {
+  max-width: 530px;
   border-color: #fff;
   box-shadow: 0 4px 16px rgba(0, 0, 0, 15%);
 }

+ 1 - 0
src/views/book/courseware/preview/components/dialogue_article/NormalModelChs.vue

@@ -1983,6 +1983,7 @@ export default {
 </style>
 <style lang="scss">
 .article-bubble.el-tooltip__popper.is-light {
+  max-width: 530px;
   border-color: #fff;
   box-shadow: 0 4px 16px rgba(0, 0, 0, 15%);
 }

+ 1 - 0
src/views/book/courseware/preview/components/dialogue_article/PhraseModelChs.vue

@@ -1926,6 +1926,7 @@ export default {
 </style>
 <style lang="scss">
 .article-bubble.el-tooltip__popper.is-light {
+  max-width: 530px;
   border-color: #fff;
   box-shadow: 0 4px 16px rgba(0, 0, 0, 15%);
 }