feat: 使用vben自带的spin指令

This commit is contained in:
xingyu4j
2025-06-09 13:55:25 +08:00
parent 84b51ed8bb
commit 4613732cd1
3 changed files with 15 additions and 18 deletions

View File

@@ -127,9 +127,9 @@ function getAllNodeIds(nodes: any[], ids: number[] = []): number[] {
<Modal title="数据权限" class="w-[40%]">
<Form class="mx-4">
<template #menuIds="slotProps">
<!-- <Spin :spinning="menuLoading" class="w-full"> -->
<!-- TODO @芋艿可优化使用 antd tree原因是更原生 -->
<VbenTree
:spinning="menuLoading"
:tree-data="menuTree"
multiple
bordered
@@ -138,7 +138,6 @@ function getAllNodeIds(nodes: any[], ids: number[] = []): number[] {
value-field="id"
label-field="name"
/>
<!-- </Spin> -->
</template>
</Form>
<template #prepend-footer>