|
@@ -1154,7 +1154,7 @@ export const EvaluatingReportDriver = defineComponent({
|
|
|
options.config.stagePadding = 0;
|
|
|
try {
|
|
|
const rect = options.state.activeElement?.getBoundingClientRect();
|
|
|
- popover.wrapper.style.marginLeft = -(rect?.width || 0) / 2 + 16 + "px";
|
|
|
+ popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * position - 4 + "px";
|
|
|
} catch {}
|
|
|
};
|
|
|
|
|
@@ -1169,17 +1169,12 @@ export const EvaluatingReportDriver = defineComponent({
|
|
|
title: "",
|
|
|
description: "",
|
|
|
popoverClass: "popoverClass popoverClassReport2",
|
|
|
- align: "end",
|
|
|
+ align: "start",
|
|
|
side: "bottom",
|
|
|
nextBtnText: "下一步 (1/2)",
|
|
|
showButtons: ["next"],
|
|
|
onPopoverRender: (popover: PopoverDOM, options: { config: Config; state: State }) => {
|
|
|
- options.config.stageRadius = 12;
|
|
|
- options.config.stagePadding = 0;
|
|
|
- try {
|
|
|
- const rect = options.state.activeElement?.getBoundingClientRect();
|
|
|
- popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 16 + "px";
|
|
|
- } catch {}
|
|
|
+ driverInitialPosition(popover, options);
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -1199,7 +1194,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 + 16 + "px";
|
|
|
+ popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 4 + "px";
|
|
|
} catch {}
|
|
|
},
|
|
|
onPrevClick: () => {
|
|
@@ -1228,7 +1223,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 + 16 + "px";
|
|
|
+ popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 4 + "px";
|
|
|
} catch {}
|
|
|
},
|
|
|
onPrevClick: () => {
|
|
@@ -1250,7 +1245,7 @@ export const EvaluatingReportDriver = defineComponent({
|
|
|
title: "",
|
|
|
description: "",
|
|
|
popoverClass: "popoverClass popoverClassReport1",
|
|
|
- align: "end",
|
|
|
+ align: "start",
|
|
|
side: "bottom",
|
|
|
nextBtnText: `下一步 (1/${count})`,
|
|
|
showButtons: ["next"],
|
|
@@ -1265,17 +1260,12 @@ export const EvaluatingReportDriver = defineComponent({
|
|
|
title: "",
|
|
|
description: "",
|
|
|
popoverClass: "popoverClass popoverClassReport2",
|
|
|
- align: "end",
|
|
|
+ align: "start",
|
|
|
side: "bottom",
|
|
|
nextBtnText: `下一步 (2/${count})`,
|
|
|
showButtons: ["next"],
|
|
|
onPopoverRender: (popover: PopoverDOM, options: { config: Config; state: State }) => {
|
|
|
- options.config.stageRadius = 12;
|
|
|
- options.config.stagePadding = 0;
|
|
|
- try {
|
|
|
- const rect = options.state.activeElement?.getBoundingClientRect();
|
|
|
- popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 16 + "px";
|
|
|
- } catch {}
|
|
|
+ driverInitialPosition(popover, options);
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -1288,18 +1278,12 @@ export const EvaluatingReportDriver = defineComponent({
|
|
|
title: "",
|
|
|
description: "",
|
|
|
popoverClass: "popoverClass popoverClassReport3",
|
|
|
- align: "end",
|
|
|
+ align: "start",
|
|
|
side: "bottom",
|
|
|
nextBtnText: "下一步 (3/4)",
|
|
|
showButtons: ["next"],
|
|
|
onPopoverRender: (popover: PopoverDOM, options: { config: Config; state: State }) => {
|
|
|
- // driverInitialPosition(popover, options, -1);
|
|
|
- options.config.stageRadius = 12;
|
|
|
- options.config.stagePadding = 0;
|
|
|
- try {
|
|
|
- const rect = options.state.activeElement?.getBoundingClientRect();
|
|
|
- popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 16 + "px";
|
|
|
- } catch {}
|
|
|
+ driverInitialPosition(popover, options);
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -1319,7 +1303,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 + 16 + "px";
|
|
|
+ popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 4 + "px";
|
|
|
} catch {}
|
|
|
},
|
|
|
onPrevClick: () => {
|