瀏覽代碼

feat: 小节背景样式

TIANYONG 1 年之前
父節點
當前提交
5fd012954d
共有 1 個文件被更改,包括 3 次插入0 次删除
  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;
 					}
 				}