mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
fix: 修复多选框只能单选的bug
This commit is contained in:
@@ -61,7 +61,7 @@ const props = defineProps<
|
||||
watches?: string[];
|
||||
search?: boolean;
|
||||
pager?: boolean;
|
||||
multi?: boolean;
|
||||
mode?: string;
|
||||
} & ComponentPropsType
|
||||
>();
|
||||
|
||||
@@ -70,7 +70,8 @@ const emit = defineEmits<{
|
||||
}>();
|
||||
|
||||
function updateValue(value: any) {
|
||||
if (props.multi) {
|
||||
debugger;
|
||||
if (props.mode === "tags" || props.mode === "multiple") {
|
||||
emit("update:value", value);
|
||||
} else {
|
||||
const last = value?.[value.length - 1];
|
||||
|
||||
Reference in New Issue
Block a user