feat: 新增拖拽功能

This commit is contained in:
MTrun
2022-01-30 14:20:28 +08:00
parent 1749680268
commit ae78ced3dd
5 changed files with 85 additions and 26 deletions
@@ -2,7 +2,7 @@
<div
class="go-edit-range"
:style="useSizeStyle(size)"
@mousedown="mousedownHandle($event, undefined)"
@mousedown="mousedownHandleUnStop($event, undefined)"
>
<slot></slot>
</div>
@@ -10,7 +10,7 @@
<script setup lang="ts">
import { useSizeStyle } from '../../hooks/useStyle.hook'
import { mousedownHandle } from '../../hooks/useLayout.hook'
import { mousedownHandleUnStop } from '../../hooks/useLayout.hook'
const size = {
w: 1920,