Browse Source

拼音文本修改

dsy 3 ngày trước cách đây
mục cha
commit
6e911184ac
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      src/components/PinyinText.vue

+ 5 - 1
src/components/PinyinText.vue

@@ -23,7 +23,11 @@
               :style="{ 'ruby-position': pinyinPosition === 'top' ? 'over' : 'under' }"
               class="py-char"
               >{{ word
-              }}<rt class="pinyin" :class="{ active: visible && word_index == k }">{{ item.pinyin.split(' ')[w] }}</rt>
+              }}<rt
+                class="pinyin"
+                :class="{ active: visible && word_index == k && paragraph_index === i && sentence_index === j }"
+                >{{ item.pinyin.split(' ')[w] }}</rt
+              >
             </ruby>
           </span>
         </div>