Просмотр исходного кода

句子拆分组件选项显示下划线

natasha 2 дней назад
Родитель
Сommit
1f1565ce86

+ 16 - 6
src/components/Adult/phonePreview/components/SentenceTemp.vue

@@ -81,7 +81,8 @@
                     :style="{
                       fontSize: baseSizePhone + 6 + 'px',
                       color: pItem.fontColor,
-                      fontFamily: pItem.fontFamily
+                      fontFamily: pItem.fontFamily,
+                      textDecoration: pItem.underLine ? 'underline' : ''
                     }"
                     v-html="pItem.chs"
                   ></span>
@@ -118,7 +119,8 @@
                       :style="{
                         fontSize: baseSizePhone + 6 + 'px',
                         color: pItem.fontColor,
-                        fontFamily: pItem.fontFamily
+                        fontFamily: pItem.fontFamily,
+                        textDecoration: pItem.underLine ? 'underline' : ''
                       }"
                       :class="[
                         pItem.chs != '“' && pItem.padding ? 'padding' : '',
@@ -178,7 +180,10 @@
                   :style="{
                     fontSize: baseSizePhone + 6 + 'px',
                     color: item[pIndex + 1].fontColor,
-                    fontFamily: item[pIndex + 1].fontFamily
+                    fontFamily: item[pIndex + 1].fontFamily,
+                    textDecoration: item[pIndex + 1].underLine
+                      ? 'underline'
+                      : ''
                   }"
                   v-html="item[pIndex + 1].chs"
                 ></span>
@@ -237,7 +242,10 @@
                   :style="{
                     fontSize: baseSizePhone + 6 + 'px',
                     color: item[pIndex + 2].fontColor,
-                    fontFamily: item[pIndex + 2].fontFamily
+                    fontFamily: item[pIndex + 2].fontFamily,
+                    textDecoration: item[pIndex + 2].underLine
+                      ? 'underline'
+                      : ''
                   }"
                   v-html="item[pIndex + 2].chs"
                 ></span>
@@ -287,7 +295,8 @@
                   :style="{
                     fontSize: baseSizePhone + 6 + 'px',
                     color: pItem.fontColor,
-                    fontFamily: pItem.fontFamily
+                    fontFamily: pItem.fontFamily,
+                    textDecoration: pItem.underLine ? 'underline' : ''
                   }"
                   :class="[
                     pItem.chs != '“' && pItem.padding ? 'padding' : '',
@@ -330,7 +339,8 @@
                       fontSize: baseSizePhone + 6 + 'px',
                       color: pItem.fontColor,
                       textAlign: 'left',
-                      fontFamily: pItem.fontFamily
+                      fontFamily: pItem.fontFamily,
+                      textDecoration: pItem.underLine ? 'underline' : ''
                     }"
                     :class="[
                       pItem.chs != '“' && pItem.padding ? 'padding' : '',

+ 16 - 6
src/components/Adult/preview/components/SentenceTemp.vue

@@ -79,7 +79,8 @@
                     :style="{
                       fontSize: sentType != 'option' ? pItem.fontSize : '',
                       color: pItem.fontColor,
-                      fontFamily: pItem.fontFamily
+                      fontFamily: pItem.fontFamily,
+                      textDecoration: pItem.underLine ? 'underline' : ''
                     }"
                     v-html="pItem.chs"
                   ></span>
@@ -117,7 +118,8 @@
                       :style="{
                         fontSize: sentType != 'option' ? pItem.fontSize : '',
                         color: pItem.fontColor,
-                        fontFamily: pItem.fontFamily
+                        fontFamily: pItem.fontFamily,
+                        textDecoration: pItem.underLine ? 'underline' : ''
                       }"
                       :class="[
                         pItem.chs != '“' && pItem.padding ? 'padding' : '',
@@ -172,7 +174,10 @@
                     fontSize:
                       sentType != 'option' ? item[pIndex + 1].fontSize : '',
                     color: item[pIndex + 1].fontColor,
-                    fontFamily: item[pIndex + 1].fontFamily
+                    fontFamily: item[pIndex + 1].fontFamily,
+                    textDecoration: item[pIndex + 1].underLine
+                      ? 'underline'
+                      : ''
                   }"
                   v-html="item[pIndex + 1].chs"
                 ></span>
@@ -227,7 +232,10 @@
                     fontSize:
                       sentType != 'option' ? item[pIndex + 2].fontSize : '',
                     color: item[pIndex + 2].fontColor,
-                    fontFamily: item[pIndex + 2].fontFamily
+                    fontFamily: item[pIndex + 2].fontFamily,
+                    textDecoration: item[pIndex + 2].underLine
+                      ? 'underline'
+                      : ''
                   }"
                   v-html="item[pIndex + 2].chs"
                 ></span>
@@ -275,7 +283,8 @@
                   :style="{
                     fontSize: sentType != 'option' ? pItem.fontSize : '',
                     color: pItem.fontColor,
-                    fontFamily: pItem.fontFamily
+                    fontFamily: pItem.fontFamily,
+                    textDecoration: pItem.underLine ? 'underline' : ''
                   }"
                   :class="[
                     pItem.chs != '“' && pItem.padding ? 'padding' : '',
@@ -319,7 +328,8 @@
                       fontSize: sentType != 'option' ? pItem.fontSize : '',
                       color: pItem.fontColor,
                       textAlign: 'left',
-                      fontFamily: pItem.fontFamily
+                      fontFamily: pItem.fontFamily,
+                      textDecoration: pItem.underLine ? 'underline' : ''
                     }"
                     :class="[
                       pItem.chs != '“' && pItem.padding ? 'padding' : '',