Browse Source

feat: 小节背景样式

TIANYONG 1 year ago
parent
commit
5fd012954d
1 changed files with 3 additions and 0 deletions
  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;
 					}
 				}