diff --git a/packages/components/tree/tree.vue b/packages/components/tree/tree.vue index 482e82d..8f4a64c 100644 --- a/packages/components/tree/tree.vue +++ b/packages/components/tree/tree.vue @@ -126,6 +126,7 @@ const emit = defineEmits<{ (e: 'change'): void (e: 'expand', data: INiuTreeData): void (e: 'itemDragstart'): void + (e: 'itemDragend'): void }>() const dataSourceKey = ref() @@ -135,6 +136,7 @@ function onDragstart(key: INiuTreeKey) { } function onDragEnd(key: INiuTreeKey) { dataSourceKey.value = undefined + emit("itemDragend") } async function onDrop(key: INiuTreeKey, status?: ENiuTreeStatus) { if (!dataSourceKey.value) return diff --git a/packages/princess-ui/package.json b/packages/princess-ui/package.json index 34a5fc2..040feac 100644 --- a/packages/princess-ui/package.json +++ b/packages/princess-ui/package.json @@ -1,6 +1,6 @@ { "name": "princess-ui", - "version": "0.0.8-beta.13", + "version": "0.0.8-beta.14", "description": "a vue3 ui, just for personal use", "scripts": { "build": "tsc ./PrincessResolver.ts --skipLibCheck --esModuleInterop"