Bladeren bron

fix:【mall 商城】店铺装修时,force-fallback 拖拽问题,https://t.zsxq.com/ue8Qv

YunaiV 7 maanden geleden
bovenliggende
commit
dd6c7481f8

+ 1 - 1
src/components/DiyEditor/components/ComponentLibrary.vue

@@ -17,7 +17,7 @@
             :group="{ name: 'component', pull: 'clone', put: false }"
             :clone="handleCloneComponent"
             :animation="200"
-            :force-fallback="true"
+            :force-fallback="false"
           >
             <template #item="{ element }">
               <div>

+ 1 - 1
src/components/DiyEditor/index.vue

@@ -73,7 +73,7 @@
           <draggable
             v-model="pageComponents"
             :animation="200"
-            :force-fallback="true"
+            :force-fallback="false"
             class="page-prop-area drag-area"
             filter=".component-toolbar"
             ghost-class="draggable-ghost"

+ 1 - 1
src/components/Draggable/index.vue

@@ -2,7 +2,7 @@
   <el-text type="info" size="small"> 拖动左上角的小圆点可对其排序 </el-text>
   <VueDraggable
     :list="formData"
-    :force-fallback="true"
+    :force-fallback="false"
     :animation="200"
     handle=".drag-icon"
     class="m-t-8px"