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