update 优化用户选择组件 返回值
This commit is contained in:
parent
a1526f86cf
commit
6070390a8b
@ -153,14 +153,8 @@ const queryParams = ref<UserQuery>({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const confirm = () => {
|
const confirm = () => {
|
||||||
if (prop.multiple) {
|
|
||||||
emit('update:modelValue', selectUserList.value);
|
emit('update:modelValue', selectUserList.value);
|
||||||
emit('confirmCallBack', selectUserList.value);
|
emit('confirmCallBack', selectUserList.value);
|
||||||
} else {
|
|
||||||
const data = selectUserList.value.length > 0 ? selectUserList.value[0] : undefined;
|
|
||||||
emit('update:modelValue', data);
|
|
||||||
emit('confirmCallBack', data);
|
|
||||||
}
|
|
||||||
userDialog.closeDialog();
|
userDialog.closeDialog();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user