|
@@ -78,6 +78,14 @@
|
|
|
v-for="(word, wIndex) in item.word_list"
|
|
v-for="(word, wIndex) in item.word_list"
|
|
|
:key="wIndex"
|
|
:key="wIndex"
|
|
|
class="pinyin-text"
|
|
class="pinyin-text"
|
|
|
|
|
+ :class="[
|
|
|
|
|
+ word.text.trim() && chsFhList.indexOf(word.text) === -1 ? 'pinyin-text-padding' : '',
|
|
|
|
|
+ item.word_list[wIndex + 1] &&
|
|
|
|
|
+ item.word_list[wIndex + 1].text.trim() &&
|
|
|
|
|
+ chsFhList.indexOf(item.word_list[wIndex + 1].text.trim()) > -1
|
|
|
|
|
+ ? 'pinyin-text-padding-left'
|
|
|
|
|
+ : '',
|
|
|
|
|
+ ]"
|
|
|
:style="item.styleObj"
|
|
:style="item.styleObj"
|
|
|
>
|
|
>
|
|
|
<span v-if="word.type === 'text'">
|
|
<span v-if="word.type === 'text'">
|
|
@@ -595,6 +603,14 @@
|
|
|
v-for="(word, wIndex) in item.word_list"
|
|
v-for="(word, wIndex) in item.word_list"
|
|
|
:key="wIndex"
|
|
:key="wIndex"
|
|
|
class="pinyin-text"
|
|
class="pinyin-text"
|
|
|
|
|
+ :class="[
|
|
|
|
|
+ word.text.trim() && chsFhList.indexOf(word.text) === -1 ? 'pinyin-text-padding' : '',
|
|
|
|
|
+ item.word_list[wIndex + 1] &&
|
|
|
|
|
+ item.word_list[wIndex + 1].text.trim() &&
|
|
|
|
|
+ chsFhList.indexOf(item.word_list[wIndex + 1].text.trim()) > -1
|
|
|
|
|
+ ? 'pinyin-text-padding-left'
|
|
|
|
|
+ : '',
|
|
|
|
|
+ ]"
|
|
|
:style="item.styleObj"
|
|
:style="item.styleObj"
|
|
|
>
|
|
>
|
|
|
<span v-if="word.type === 'text'">
|
|
<span v-if="word.type === 'text'">
|
|
@@ -924,6 +940,7 @@ export default {
|
|
|
writeMark: '',
|
|
writeMark: '',
|
|
|
isHasInput: false,
|
|
isHasInput: false,
|
|
|
statusList: ['normal', 'tick', 'cross'],
|
|
statusList: ['normal', 'tick', 'cross'],
|
|
|
|
|
+ chsFhList: [',', '。', '”', ':', '》', '?', '!', ';', '#', '、', '’', ')', '〕', '〕〕', '〉'],
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -1825,6 +1842,14 @@ $border-color: #e6e6e6;
|
|
|
// text-align: left;
|
|
// text-align: left;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ &-padding {
|
|
|
|
|
+ padding: 0 3px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &-padding-left {
|
|
|
|
|
+ padding: 0 0 0 3px;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.cell-wrap-content {
|
|
.cell-wrap-content {
|