fix: todo 比较通用

This commit is contained in:
xingyu4j
2025-11-27 14:08:17 +08:00
parent 0ab23a98d8
commit d558ebe510

View File

@@ -1,6 +1,5 @@
<script lang="ts" setup>
// TODO @芋艿:是否有更好的组织形式?!
// TODO @xingyu你感觉这个放到每个 system、infra 模块下,然后新建一个 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: [];