fix: todo 比较通用

pull/282/MERGE
xingyu4j 2025-11-27 14:08:17 +08:00
parent 0ab23a98d8
commit d558ebe510
1 changed files with 15 additions and 17 deletions

View File

@ -1,6 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
// TODO @ // TODO @
// TODO @xingyu systeminfra components
import type { Key } from 'ant-design-vue/es/table/interface'; import type { Key } from 'ant-design-vue/es/table/interface';
import type { SystemDeptApi } from '#/api/system/dept'; import type { SystemDeptApi } from '#/api/system/dept';
@ -33,24 +32,23 @@ interface DeptTreeNode {
name: string; name: string;
} }
interface Props {
cancelText?: string;
confirmText?: string;
multiple?: boolean;
title?: string;
value?: number[];
}
defineOptions({ name: 'UserSelectModal' }); defineOptions({ name: 'UserSelectModal' });
withDefaults( withDefaults(defineProps<Props>(), {
defineProps<{ title: '选择用户',
cancelText?: string; multiple: true,
confirmText?: string; value: () => [],
multiple?: boolean; confirmText: '确定',
title?: string; cancelText: '取消',
value?: number[]; });
}>(),
{
title: '选择用户',
multiple: true,
value: () => [],
confirmText: '确定',
cancelText: '取消',
},
);
const emit = defineEmits<{ const emit = defineEmits<{
cancel: []; cancel: [];