浏览代码

修改 语音矩阵 连字符不要算成一列

dusenyao 3 年之前
父节点
当前提交
f6d0a2e1fd
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9 1
      src/components/Adult/preview/VoiceMatrix.vue

+ 9 - 1
src/components/Adult/preview/VoiceMatrix.vue

@@ -401,7 +401,14 @@ export default {
         return;
       }
       this.selectedLine = { type, index };
-      this.fileName = `第 ${index + 1} ${type === "row" ? "行" : "列"}`;
+      let number = index;
+      if (type === 'column') {
+        this.curQue.voiceMatrix.matrix[index].forEach(({ type }, i) => {
+          if (i >= index) return;
+          if (type === 'connection') number -= 1;
+        });
+      }
+      this.fileName = `第 ${number + 1} ${type === "row" ? "行" : "列"}`;
     },
 
     playAudio() {
@@ -588,6 +595,7 @@ $select-color-brown-active: #a37557;
     background-color: #f5f5f5;
     border-left: 1px solid $border-color;
     border-right: 1px solid $border-color;
+    word-break: break-word;
 
     .matrix {
       display: inline-grid;