Browse Source

句首拼音文字左对齐,其他居中对齐

zq 1 week ago
parent
commit
340f1d66b9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/components/PinyinText.vue

+ 2 - 0
src/components/PinyinText.vue

@@ -14,6 +14,7 @@
             :style="{
               ...item.activeTextStyle,
               cursor: isPreview ? '' : 'pointer',
+              'align-items': k == 0 ? 'flex-start' : 'center',
             }"
             @click="correctPinyin(item, i, j, k)"
           >
@@ -112,6 +113,7 @@ export default {
         > span {
           display: flex;
           flex-direction: column;
+          align-items: center;
         }
 
         .py-char {