Selaa lähdekoodia

文章空格显示宽度

natasha 1 kuukausi sitten
vanhempi
commit
bf2a45eecd

+ 8 - 0
src/views/book/courseware/preview/components/article/WordModelChs.vue

@@ -157,6 +157,7 @@
                                   attrib
                                     ? attrib.assist_color
                                     : '',
+                                width: pItem.chs.trim() === '' ? '6px' : '',
                               }"
                               >{{ NumberList.indexOf(pItem.pinyin) == -1 ? convertText(pItem.chs) : ''
                               }}<img
@@ -230,6 +231,7 @@
                                   attrib
                                     ? attrib.assist_color
                                     : '',
+                                width: item.wordsList[pIndex + 1].chs.trim() === '' ? '6px' : '',
                               }"
                               >{{
                                 NumberList.indexOf(item.wordsList[pIndex + 1].pinyin) == -1
@@ -333,6 +335,7 @@
                                   attrib
                                     ? attrib.assist_color
                                     : '',
+                                width: item.wordsList[pIndex + 2].chs.trim() === '' ? '6px' : '',
                               }"
                               >{{
                                 NumberList.indexOf(item.wordsList[pIndex + 2].pinyin) == -1
@@ -420,6 +423,7 @@
                                 attrib
                                   ? attrib.assist_color
                                   : '',
+                              width: pItem.chs.trim() === '' ? '6px' : '',
                             }"
                             @click="showWordDetail($event, pItem)"
                             >{{ NumberList.indexOf(pItem.pinyin) == -1 ? convertText(pItem.chs) : ''
@@ -577,6 +581,7 @@
                                     attrib && attrib.font_size
                                       ? attrib.font_size.replace('pt', '') * 1.4 + 'pt'
                                       : '28px',
+                                  width: pItem.chs.trim() === '' ? '6px' : '',
                                 }"
                                 >{{
                                   NumberList.indexOf(pItem.pinyin) == -1 ? convertText(pItem.chs[wIndex]) : ''
@@ -638,6 +643,7 @@
                                 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' : '',
                               }"
                             >
                               {{
@@ -709,6 +715,7 @@
                                 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' : '',
                               }"
                             >
                               {{
@@ -782,6 +789,7 @@
                                 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' : '',
                               }"
                               >{{ NumberList.indexOf(pItem.pinyin) == -1 ? convertText(pItem.chs[wIndex]) : '' }}</span
                             >