Browse Source

修改显示

lex 11 months ago
parent
commit
8295644968

BIN
src/page-instrument/custom-plugins/guide-driver/images/report/r3.png


+ 1 - 1
src/page-instrument/custom-plugins/guide-driver/index.less

@@ -4,7 +4,7 @@
 }
 
 .popoverClass .driver-popover-next-btn {
-  width: 100px;
+  width: 102px;
   height: 34px;
   text-shadow: none;
   border: none;

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

@@ -1228,12 +1228,18 @@ export const EvaluatingReportDriver = defineComponent({
               title: "",
               description: "",
               popoverClass: "popoverClass popoverClassReport3",
-              align: "start",
+              align: "end",
               side: "bottom",
               nextBtnText: "下一步 (3/4)",
               showButtons: ["next"],
               onPopoverRender: (popover: PopoverDOM, options: { config: Config; state: State }) => {
-                driverInitialPosition(popover, options);
+                // 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 + 4 + "px";
+                } catch {}
               },
             },
           },