Browse Source

feat: 渐变音符不亮

TIANYONG 2 months ago
parent
commit
f0add4a1ca
2 changed files with 27 additions and 1 deletions
  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;