|
@@ -17,7 +17,12 @@
|
|
|
class="pinyin-sentence"
|
|
class="pinyin-sentence"
|
|
|
:style="[{ 'align-items': pinyinPosition === 'top' ? 'flex-end' : 'flex-start' }, block.sentenceStyle]"
|
|
:style="[{ 'align-items': pinyinPosition === 'top' ? 'flex-end' : 'flex-start' }, block.sentenceStyle]"
|
|
|
>
|
|
>
|
|
|
- <span v-for="(word, wIndex) in block.word_list" :key="wIndex" class="pinyin-text" :style="block.styleObj">
|
|
|
|
|
|
|
+ <span
|
|
|
|
|
+ v-for="(word, wIndex) in block.word_list"
|
|
|
|
|
+ :key="wIndex"
|
|
|
|
|
+ :class="['pinyin-text', { spacing: isShowPinyin }]"
|
|
|
|
|
+ :style="block.styleObj"
|
|
|
|
|
+ >
|
|
|
<span
|
|
<span
|
|
|
:title="isPreview ? '' : '点击校对'"
|
|
:title="isPreview ? '' : '点击校对'"
|
|
|
:style="{
|
|
:style="{
|
|
@@ -128,7 +133,7 @@
|
|
|
class="pinyin-sentence"
|
|
class="pinyin-sentence"
|
|
|
:style="{ 'align-items': pinyinPosition === 'top' ? 'flex-end' : 'flex-start' }"
|
|
:style="{ 'align-items': pinyinPosition === 'top' ? 'flex-end' : 'flex-start' }"
|
|
|
>
|
|
>
|
|
|
- <span v-for="(word, wIndex) in sentence" :key="wIndex" class="pinyin-text">
|
|
|
|
|
|
|
+ <span v-for="(word, wIndex) in sentence" :key="wIndex" :class="['pinyin-text', { spacing: isShowPinyin }]">
|
|
|
<span
|
|
<span
|
|
|
:title="isPreview ? '' : '点击校对'"
|
|
:title="isPreview ? '' : '点击校对'"
|
|
|
:style="{
|
|
:style="{
|
|
@@ -791,11 +796,11 @@ export default {
|
|
|
const letterSpacingValue = parseFloat(letterSpacing) || 0;
|
|
const letterSpacingValue = parseFloat(letterSpacing) || 0;
|
|
|
|
|
|
|
|
baseStyle['border-bottom'] = 'none';
|
|
baseStyle['border-bottom'] = 'none';
|
|
|
- baseStyle['background-image'] = 'radial-gradient(circle at center, currentColor 0.15em, transparent 0.16em)';
|
|
|
|
|
|
|
+ baseStyle['background-image'] = 'radial-gradient(circle at center, currentColor 0.08em, transparent 0.09em)';
|
|
|
baseStyle['background-repeat'] = 'repeat-x';
|
|
baseStyle['background-repeat'] = 'repeat-x';
|
|
|
baseStyle['background-position'] = `${letterSpacingValue * -0.5}em 100%`;
|
|
baseStyle['background-position'] = `${letterSpacingValue * -0.5}em 100%`;
|
|
|
- baseStyle['background-size'] = `${1 + letterSpacingValue}em 0.3em`;
|
|
|
|
|
- baseStyle['padding-bottom'] = '0.3em';
|
|
|
|
|
|
|
+ baseStyle['background-size'] = `${1 + letterSpacingValue}em 0.15em`;
|
|
|
|
|
+ baseStyle['padding-bottom'] = '0.15em';
|
|
|
baseStyle['display'] = 'inline';
|
|
baseStyle['display'] = 'inline';
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1016,10 +1021,13 @@ export default {
|
|
|
|
|
|
|
|
.pinyin-text {
|
|
.pinyin-text {
|
|
|
display: inline-flex;
|
|
display: inline-flex;
|
|
|
- padding: 0 2px;
|
|
|
|
|
text-wrap: pretty;
|
|
text-wrap: pretty;
|
|
|
hanging-punctuation: allow-end;
|
|
hanging-punctuation: allow-end;
|
|
|
|
|
|
|
|
|
|
+ &.spacing {
|
|
|
|
|
+ padding: 0 2px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
> span {
|
|
> span {
|
|
|
display: inline-flex;
|
|
display: inline-flex;
|
|
|
}
|
|
}
|