|
@@ -33,6 +33,8 @@ type ButtonStatus = {
|
|
|
originPlayType?: Boolean;
|
|
|
/** 是否显示原音 */
|
|
|
originBtnStatus?: Boolean;
|
|
|
+ /** 是否显示切换曲谱列表 */
|
|
|
+ showSwitchList?: Boolean;
|
|
|
};
|
|
|
|
|
|
/** 练习模式 */
|
|
@@ -250,7 +252,6 @@ export const PractiseDriver = defineComponent({
|
|
|
},
|
|
|
});
|
|
|
|
|
|
-
|
|
|
if (state.platform === IPlatform.PC) {
|
|
|
options.steps?.push({
|
|
|
element: ".driver-6",
|
|
@@ -358,6 +359,31 @@ export const PractiseDriver = defineComponent({
|
|
|
},
|
|
|
},
|
|
|
});
|
|
|
+ } else if (!props.statusAll.showSwitchList) {
|
|
|
+ options.steps?.push({
|
|
|
+ element: ".driver-6",
|
|
|
+ popover: {
|
|
|
+ title: "",
|
|
|
+ description: "",
|
|
|
+ popoverClass: "popoverClass popoverClass6-end popoverClose",
|
|
|
+ align: "end",
|
|
|
+ side: "bottom",
|
|
|
+ prevBtnText: "再看一遍",
|
|
|
+ doneBtnText: "完成",
|
|
|
+ showButtons: ["next", "previous"],
|
|
|
+ onPopoverRender: (popover: PopoverDOM, options: { config: Config; state: State }) => {
|
|
|
+ driverInitialPosition(popover, options);
|
|
|
+ // const rect = options.state.activeElement?.getBoundingClientRect();
|
|
|
+ // popover.wrapper.style.marginLeft = -(rect?.width || 0) / 2 + 4 + "px";
|
|
|
+ },
|
|
|
+ onPrevClick: () => {
|
|
|
+ driverObj.drive(0);
|
|
|
+ },
|
|
|
+ onNextClick: () => {
|
|
|
+ onDriverClose();
|
|
|
+ },
|
|
|
+ },
|
|
|
+ });
|
|
|
} else {
|
|
|
options.steps?.push({
|
|
|
element: ".driver-6",
|