feat: add naive app

This commit is contained in:
vben
2024-07-31 00:19:17 +08:00
parent 832a7bcc58
commit fdee2d2239
68 changed files with 2540 additions and 33 deletions

View File

@@ -2,7 +2,7 @@
import type { Sortable } from '@vben-core/composables';
import type { TabDefinition } from '@vben-core/typings';
import { nextTick, onMounted, onUnmounted, ref } from 'vue';
import { nextTick, onMounted, onUnmounted, ref, watch } from 'vue';
import { useForwardPropsEmits, useSortable } from '@vben-core/composables';
@@ -105,6 +105,14 @@ async function initTabsSortable() {
onMounted(initTabsSortable);
watch(
() => props.styleType,
() => {
sortableInstance.value?.destroy();
initTabsSortable();
},
);
onUnmounted(() => {
sortableInstance.value?.destroy();
});