TIANYONG 6 месяцев назад
Родитель
Сommit
57be8290c7

+ 4 - 4
src/page-instrument/custom-plugins/guide-driver/index.tsx

@@ -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";

+ 1 - 1
src/view/selection/index.module.less

@@ -62,7 +62,7 @@
     // margin-top: -17PX;
     border-radius: 4Px;
     opacity: var(--corsor-opacity);
-    transform: translate(4PX, -50%);
+    transform: translate(4PX, -53%);
 }
 .eyeLine {
     background-color: rgb(255, 159, 88);