fix: todo 比较通用
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
// TODO @芋艿:是否有更好的组织形式?!
|
// TODO @芋艿:是否有更好的组织形式?!
|
||||||
// TODO @xingyu:你感觉,这个放到每个 system、infra 模块下,然后新建一个 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: [];
|
||||||
|
|||||||
Reference in New Issue
Block a user