|
@@ -17,7 +17,7 @@
|
|
|
}"
|
|
|
@click="correctPinyin(item, i, j, k)"
|
|
|
>
|
|
|
- <ruby class="py-char" :style="{ 'ruby-position': pinyinPosition === 'top' ? 'over' : 'under' }">
|
|
|
+ <!-- <ruby class="py-char" :style="{ 'ruby-position': pinyinPosition === 'top' ? 'over' : 'under' }">
|
|
|
{{ item.text }}
|
|
|
<rt
|
|
|
class="pinyin"
|
|
@@ -25,7 +25,10 @@
|
|
|
>
|
|
|
{{ item.pinyin }}
|
|
|
</rt>
|
|
|
- </ruby>
|
|
|
+ </ruby> -->
|
|
|
+ <span v-if="pinyinPosition === 'top'" class="pinyin">{{ item.pinyin.replace(/\s+/g, '') }}</span>
|
|
|
+ <span class="py-char">{{ item.text }}</span>
|
|
|
+ <span v-if="pinyinPosition !== 'top'" class="pinyin">{{ item.pinyin.replace(/\s+/g, '') }}</span>
|
|
|
</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -106,15 +109,20 @@ export default {
|
|
|
.pinyin-text {
|
|
|
font-size: 16px;
|
|
|
|
|
|
+ > span {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
+
|
|
|
.py-char {
|
|
|
ruby-align: center;
|
|
|
}
|
|
|
|
|
|
.pinyin {
|
|
|
- margin-bottom: 4px;
|
|
|
font-family: 'League';
|
|
|
font-size: 12px;
|
|
|
font-weight: lighter;
|
|
|
+ line-height: 12px;
|
|
|
color: $font-color;
|
|
|
}
|
|
|
}
|