|
@@ -349,7 +349,7 @@ export const PractiseDriver = defineComponent({
|
|
|
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";
|
|
|
+ popover.wrapper.style.marginLeft = (rect?.width || 0) / 2 + "px";
|
|
|
},
|
|
|
onPrevClick: () => {
|
|
|
driverObj.drive(0);
|
|
@@ -419,7 +419,7 @@ export const PractiseDriver = defineComponent({
|
|
|
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";
|
|
|
+ popover.wrapper.style.marginLeft = (rect?.width || 0) / 2 + "px";
|
|
|
},
|
|
|
onPrevClick: () => {
|
|
|
driverObj.drive(0);
|
|
@@ -962,7 +962,7 @@ export const EvaluatingResultDriver = defineComponent({
|
|
|
// 初始化部分引导位置
|
|
|
const driverInitialPosition = (popover: PopoverDOM, options: { config: Config; state: State }, position = 1) => {
|
|
|
options.config.stageRadius = 1000;
|
|
|
- options.config.stagePadding = 0;
|
|
|
+ options.config.stagePadding = 2;
|
|
|
try {
|
|
|
const rect = options.state.activeElement?.getBoundingClientRect();
|
|
|
popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * position + 4 + "px";
|
|
@@ -1013,7 +1013,7 @@ export const EvaluatingResultDriver = defineComponent({
|
|
|
showButtons: ["next"],
|
|
|
onPopoverRender: (popover: PopoverDOM, options: { config: Config; state: State }) => {
|
|
|
options.config.stageRadius = 1000;
|
|
|
- options.config.stagePadding = 0;
|
|
|
+ options.config.stagePadding = 2;
|
|
|
try {
|
|
|
const rect = options.state.activeElement?.getBoundingClientRect();
|
|
|
popover.wrapper.style.marginLeft = (rect?.width || 0) / 2 - 4 + "px";
|