浏览代码

feat: 渐变音符不亮

TIANYONG 2 月之前
父节点
当前提交
f0add4a1ca
共有 2 个文件被更改,包括 27 次插入1 次删除
  1. 26 0
      src/view/music-score/index.module.less
  2. 1 1
      src/view/music-score/index.tsx

+ 26 - 0
src/view/music-score/index.module.less

@@ -107,6 +107,32 @@
         #cursorImg-0{
             // opacity: 0 !important;
         }
+        .noteActive {
+            path {
+                fill: #000000 !important;
+                stroke: #000000 !important;
+            }
+
+            rect {
+                stroke: #000000 !important;
+            }
+        }
+        .lyricActive {
+            text {
+                fill: #000000 !important;
+                stroke: #000000 !important;
+            }
+        }
+        .voiceActive {
+            rect {
+                fill: #000000 !important;
+                stroke: #000000 !important;
+            }
+        }
+        .rectActive {
+            fill: #000000 !important;
+            stroke: #000000 !important;
+        }        
    } 
 }
 

+ 1 - 1
src/view/music-score/index.tsx

@@ -210,7 +210,7 @@ export default defineComponent({
 			const activeMeasureIndex = state.times[state.activeNoteIndex]?.measureListIndex || -1;
 			for (const [first, last] of state.gradual) {
 				if (first && last) {
-					// console.log('小节',first.measureIndex,last.measureIndex,activeMeasureIndex)
+					console.log('小节',first.measureIndex,last.measureIndex,activeMeasureIndex)
 					result = first.measureIndex <= activeMeasureIndex && activeMeasureIndex < last.measureIndex;
 					if (result) {
 						break;