(component): update

This commit is contained in:
就眠儀式
2022-10-17 23:45:10 +08:00
parent af3694d38c
commit 3c808aa9a2
4 changed files with 8 additions and 5 deletions

View File

@@ -61,8 +61,10 @@ const checkedKeys = computed({
return props.multiple ? props.modelValue : [];
},
set(value) {
emits("update:modelValue", value);
emits("change", value);
if(props.multiple) {
emits("update:modelValue", value);
emits("change", value);
}
},
});
@@ -121,10 +123,10 @@ const handleClick = (node: any) => {
<lay-input
v-else
v-model="singleValue"
:size="size"
:placeholder="placeholder"
:disabled="disabled"
:readonly="true"
:size="size"
>
<template #suffix>
<lay-icon

View File

@@ -1 +1 @@
export type TreeSelectSize = "lg" | "md" | "sm" | "xs";
export type TreeSelectSize = "lg" | "md" | "sm" | "xs";

View File

@@ -181,7 +181,7 @@ const components: Record<string, Plugin> = {
LaySpace,
LayTag,
LayTagInput,
LayTreeSelect
LayTreeSelect,
};
const install = (app: App, options?: InstallOptions): void => {