diff --git a/src/components/DiyEditor/index.vue b/src/components/DiyEditor/index.vue index 700d32bd..643cc50a 100644 --- a/src/components/DiyEditor/index.vue +++ b/src/components/DiyEditor/index.vue @@ -12,17 +12,17 @@ - + - + - + - + @@ -31,21 +31,21 @@ - + - + @@ -55,43 +55,43 @@ @click="handleComponentSelected(component, index)" > handleMoveComponent(index, direction)" + :can-move-up="index > 0" + :component="element" + @click="handleComponentSelected(element, index)" @copy="handleCopyComponent(index)" @delete="handleDeleteComponent(index)" - @click="handleComponentSelected(element, index)" + @move="(direction) => handleMoveComponent(index, direction)" /> @@ -99,9 +99,9 @@ @@ -109,9 +109,9 @@ @@ -120,10 +120,10 @@ @@ -134,11 +134,11 @@ - + @@ -152,8 +152,8 @@ view-class="p-[var(--el-card-padding)] p-b-[calc(var(--el-card-padding)+var(--el-card-padding))] property" > @@ -166,8 +166,8 @@ 手机扫码预览 @@ -179,6 +179,7 @@