|
|
@@ -62,6 +62,7 @@
|
|
|
:class="[
|
|
|
index === 0 ? 'pinyin-text-left' : '',
|
|
|
item.type === 'audio' ? 'pinyin-text-audio' : '',
|
|
|
+ item.type === 'newline' ? 'pinyin-text-br' : '',
|
|
|
]"
|
|
|
>
|
|
|
<!-- 文字块:包含 word_list -->
|
|
|
@@ -88,7 +89,9 @@
|
|
|
}"
|
|
|
>
|
|
|
<span class="pinyin" :style="getPinyinStyle(word)">
|
|
|
- {{ word.pinyin.trim() ? word.pinyin : ' ' }}</span
|
|
|
+ {{
|
|
|
+ word.pinyin.trim() && word.showPinyin !== 'false' ? word.pinyin : ' '
|
|
|
+ }}</span
|
|
|
>
|
|
|
<span class="py-char" :style="getCharStyle(word, item)">{{
|
|
|
convertText(word.text)
|
|
|
@@ -240,6 +243,7 @@
|
|
|
:class="[
|
|
|
index === 0 ? 'pinyin-text-left' : '',
|
|
|
item.type === 'audio' ? 'pinyin-text-audio' : '',
|
|
|
+ item.type === 'newline' ? 'pinyin-text-br' : '',
|
|
|
]"
|
|
|
>
|
|
|
<!-- 文字块:包含 word_list -->
|
|
|
@@ -575,6 +579,7 @@
|
|
|
:class="[
|
|
|
index === 0 ? 'pinyin-text-left' : '',
|
|
|
item.type === 'audio' ? 'pinyin-text-audio' : '',
|
|
|
+ item.type === 'newline' ? 'pinyin-text-br' : '',
|
|
|
]"
|
|
|
>
|
|
|
<!-- 文字块:包含 word_list -->
|
|
|
@@ -601,7 +606,7 @@
|
|
|
}"
|
|
|
>
|
|
|
<span class="pinyin" :style="getPinyinStyle(word)">{{
|
|
|
- word.pinyin.trim() ? word.pinyin : ' '
|
|
|
+ word.pinyin.trim() && word.showPinyin !== 'false' ? word.pinyin : ' '
|
|
|
}}</span>
|
|
|
<span class="py-char" :style="getCharStyle(word, item)">{{
|
|
|
convertText(word.text)
|
|
|
@@ -682,6 +687,7 @@
|
|
|
:class="[
|
|
|
index === 0 ? 'pinyin-text-left' : '',
|
|
|
item.type === 'audio' ? 'pinyin-text-audio' : '',
|
|
|
+ item.type === 'newline' ? 'pinyin-text-br' : '',
|
|
|
]"
|
|
|
>
|
|
|
<!-- 文字块:包含 word_list -->
|
|
|
@@ -1797,7 +1803,8 @@ $border-color: #e6e6e6;
|
|
|
.pinyin-text {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
- padding: 0 1px;
|
|
|
+
|
|
|
+ // padding: 0 1px;
|
|
|
font-size: 16px;
|
|
|
|
|
|
span {
|
|
|
@@ -1868,6 +1875,11 @@ $border-color: #e6e6e6;
|
|
|
.pinyin-text-audio {
|
|
|
width: 100%;
|
|
|
}
|
|
|
+
|
|
|
+ .pinyin-text-br {
|
|
|
+ width: 100%;
|
|
|
+ font-size: 0;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
:deep .el-input--small .el-input__inner {
|