Procházet zdrojové kódy

feat: 小节背景样式

TIANYONG před 1 rokem
rodič
revize
5fd012954d
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      src/view/selection/index.tsx

+ 3 - 0
src/view/selection/index.tsx

@@ -186,6 +186,8 @@ export default defineComponent({
 						const actualEndIndex = state.userChooseEndIndex > state.section[1].MeasureNumberXML ? state.userChooseEndIndex : state.section[1].MeasureNumberXML
 						// 选段预备拍背景
 						if (state.sectionFirst && item.MeasureNumberXML === state.sectionFirst.MeasureNumberXML) {
+							console.log(1111111)
+							item.staveBox.height = selectData.measureHeight + 'px';
 							return styles.prepareStaveBox;
 						}
 						if (
@@ -212,6 +214,7 @@ export default defineComponent({
 					}
 				} else {
 					if (state.activeMeasureIndex == item.MeasureNumberXML && !state.isReport) {
+						item.staveBox.height = selectData.measureHeight + 'px';
 						return styles.staveBox;
 					}
 				}