mo 1 yıl önce
ebeveyn
işleme
441ee6a414
2 değiştirilmiş dosya ile 1 ekleme ve 4 silme
  1. 0 1
      index.html
  2. 1 3
      src/custom-plugins/guide-page/home-guide.tsx

+ 0 - 1
index.html

@@ -31,7 +31,6 @@
     body {
       background: #f1f5ff;
       width: 100%;
-      overflow-x: hidden;
     }
 
     .bgImg {

+ 1 - 3
src/custom-plugins/guide-page/home-guide.tsx

@@ -174,9 +174,8 @@ export default defineComponent({
     const getStepELe = () => {
 
       const ele: HTMLElement = document.getElementById(`home-${data.step}`)!;
-
+      console.log(`coai-${data.step}`,data.steps[data.step].eleRectPadding);
       if (ele) {
-        ele.style.visibility= 'hidden'
         const eleRect = ele.getBoundingClientRect();
         const left = data.steps[data.step].eleRectPadding?.left || 0;
         const top = data.steps[data.step].eleRectPadding?.top || 0;
@@ -188,7 +187,6 @@ export default defineComponent({
           width: eleRect.width + width+'px',
           height: eleRect.height +height+ 'px'
         };
-        ele.style.visibility= 'visible'
       }else{
         handleNext()
       }