|
@@ -21,7 +21,7 @@ type ButtonStatus = {
|
|
|
playBtnStatus?: Boolean;
|
|
|
/** 声部状态 */
|
|
|
subjectStatus?: Boolean;
|
|
|
- /** 练习模式 */
|
|
|
+ /** 是否显示模式切换 */
|
|
|
modelTypeStatus?: Boolean;
|
|
|
/** 播放模式 演唱 演奏 */
|
|
|
playType?: Boolean;
|
|
@@ -69,9 +69,9 @@ export const PractiseDriver = defineComponent({
|
|
|
}
|
|
|
|
|
|
// 显示指法
|
|
|
- if (!state.setting.displayFingering) {
|
|
|
- length -= 1;
|
|
|
- }
|
|
|
+ // if (!state.setting.displayFingering) {
|
|
|
+ // length -= 1;
|
|
|
+ // }
|
|
|
|
|
|
// 声部
|
|
|
if (!props.statusAll.subjectStatus) {
|
|
@@ -131,21 +131,24 @@ export const PractiseDriver = defineComponent({
|
|
|
},
|
|
|
});
|
|
|
}
|
|
|
- options.steps?.push({
|
|
|
- element: ".driver-9",
|
|
|
- popover: {
|
|
|
- title: "",
|
|
|
- description: "",
|
|
|
- popoverClass: "popoverClass popoverClass9",
|
|
|
- align: "end",
|
|
|
- side: "bottom",
|
|
|
- nextBtnText: `下一步 (2/${length})`,
|
|
|
- showButtons: ["next"],
|
|
|
- onPopoverRender: (popover: PopoverDOM, options: { config: Config; state: State }) => {
|
|
|
- driverInitialPosition(popover, options);
|
|
|
+
|
|
|
+ if (props.statusAll.modelTypeStatus) {
|
|
|
+ options.steps?.push({
|
|
|
+ element: ".driver-9",
|
|
|
+ popover: {
|
|
|
+ title: "",
|
|
|
+ description: "",
|
|
|
+ popoverClass: "popoverClass popoverClass9",
|
|
|
+ align: "end",
|
|
|
+ side: "bottom",
|
|
|
+ nextBtnText: `下一步 (2/${length})`,
|
|
|
+ showButtons: ["next"],
|
|
|
+ onPopoverRender: (popover: PopoverDOM, options: { config: Config; state: State }) => {
|
|
|
+ driverInitialPosition(popover, options);
|
|
|
+ },
|
|
|
},
|
|
|
- },
|
|
|
- });
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
if (props.statusAll.playType) {
|
|
|
options.steps?.push({
|
|
@@ -1132,7 +1135,7 @@ export const EvaluatingReportDriver = defineComponent({
|
|
|
options.config.stagePadding = 0;
|
|
|
try {
|
|
|
const rect = options.state.activeElement?.getBoundingClientRect();
|
|
|
- popover.wrapper.style.marginLeft = -(rect?.width || 0) / 2 + 34 + "px";
|
|
|
+ popover.wrapper.style.marginLeft = -(rect?.width || 0) / 2 + 16 + "px";
|
|
|
} catch {}
|
|
|
};
|
|
|
|
|
@@ -1156,7 +1159,7 @@ export const EvaluatingReportDriver = defineComponent({
|
|
|
options.config.stagePadding = 0;
|
|
|
try {
|
|
|
const rect = options.state.activeElement?.getBoundingClientRect();
|
|
|
- popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 34 + "px";
|
|
|
+ popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 16 + "px";
|
|
|
} catch {}
|
|
|
},
|
|
|
},
|
|
@@ -1177,7 +1180,7 @@ export const EvaluatingReportDriver = defineComponent({
|
|
|
options.config.stagePadding = 5;
|
|
|
try {
|
|
|
const rect = options.state.activeElement?.getBoundingClientRect();
|
|
|
- popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 34 + "px";
|
|
|
+ popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 16 + "px";
|
|
|
} catch {}
|
|
|
},
|
|
|
onPrevClick: () => {
|
|
@@ -1206,7 +1209,7 @@ export const EvaluatingReportDriver = defineComponent({
|
|
|
options.config.stagePadding = 0;
|
|
|
try {
|
|
|
const rect = options.state.activeElement?.getBoundingClientRect();
|
|
|
- popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 34 + "px";
|
|
|
+ popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 16 + "px";
|
|
|
} catch {}
|
|
|
},
|
|
|
onPrevClick: () => {
|
|
@@ -1252,7 +1255,7 @@ export const EvaluatingReportDriver = defineComponent({
|
|
|
options.config.stagePadding = 0;
|
|
|
try {
|
|
|
const rect = options.state.activeElement?.getBoundingClientRect();
|
|
|
- popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 34 + "px";
|
|
|
+ popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 16 + "px";
|
|
|
} catch {}
|
|
|
},
|
|
|
},
|
|
@@ -1276,7 +1279,7 @@ export const EvaluatingReportDriver = defineComponent({
|
|
|
options.config.stagePadding = 0;
|
|
|
try {
|
|
|
const rect = options.state.activeElement?.getBoundingClientRect();
|
|
|
- popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 34 + "px";
|
|
|
+ popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 16 + "px";
|
|
|
} catch {}
|
|
|
},
|
|
|
},
|
|
@@ -1297,7 +1300,7 @@ export const EvaluatingReportDriver = defineComponent({
|
|
|
options.config.stagePadding = 5;
|
|
|
try {
|
|
|
const rect = options.state.activeElement?.getBoundingClientRect();
|
|
|
- popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 34 + "px";
|
|
|
+ popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 16 + "px";
|
|
|
} catch {}
|
|
|
},
|
|
|
onPrevClick: () => {
|