feat: 优化显示效果

pull/84/head
xingyu4j 2025-04-26 16:41:58 +08:00
parent 0e92472904
commit fb4dd70a02
2 changed files with 14 additions and 13 deletions

View File

@ -6,6 +6,7 @@ import type {
import type { SystemTenantPackageApi } from '#/api/system/tenant-package'; import type { SystemTenantPackageApi } from '#/api/system/tenant-package';
import { Page, useVbenModal } from '@vben/common-ui'; import { Page, useVbenModal } from '@vben/common-ui';
import { Plus } from '@vben/icons';
import { Button, message } from 'ant-design-vue'; import { Button, message } from 'ant-design-vue';

View File

@ -127,12 +127,13 @@ function getAllNodeIds(nodes: any[], ids: number[] = []): number[] {
</script> </script>
<template> <template>
<Modal :title="getTitle"> <Modal :title="getTitle" class="w-[40%]">
<Form class="mx-6"> <Form class="mx-6">
<template #menuIds="slotProps"> <template #menuIds="slotProps">
<Spin :spinning="menuLoading" class="w-full">
<!-- TODO @芋艿可优化使用 antd tree原因是更原生 --> <!-- TODO @芋艿可优化使用 antd tree原因是更原生 -->
<VbenTree <VbenTree
class="max-h-[400px] overflow-y-auto"
:loading="menuLoading"
:tree-data="menuTree" :tree-data="menuTree"
multiple multiple
bordered bordered
@ -141,7 +142,6 @@ function getAllNodeIds(nodes: any[], ids: number[] = []): number[] {
value-field="id" value-field="id"
label-field="name" label-field="name"
/> />
</Spin>
</template> </template>
</Form> </Form>
<template #prepend-footer> <template #prepend-footer>