✨(component): update
This commit is contained in:
parent
af3694d38c
commit
3c808aa9a2
@ -61,8 +61,10 @@ const checkedKeys = computed({
|
||||
return props.multiple ? props.modelValue : [];
|
||||
},
|
||||
set(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
|
||||
|
@ -181,7 +181,7 @@ const components: Record<string, Plugin> = {
|
||||
LaySpace,
|
||||
LayTag,
|
||||
LayTagInput,
|
||||
LayTreeSelect
|
||||
LayTreeSelect,
|
||||
};
|
||||
|
||||
const install = (app: App, options?: InstallOptions): void => {
|
||||
|
@ -24,6 +24,7 @@
|
||||
<li>[新增] ** 方法。</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>[新增] tree-select 下拉树组件, 提供树结构数据选择能力。</li>
|
||||
<li>[修复] upload 组件 drag 为 true 时, 获取不到拖拽文件 files 集合, 并直接预览上传资源。</li>
|
||||
<li>[其他] global 整体组件源码逻辑优化, 更好的兼容 typescript 类型。</li>
|
||||
<li>[优化] layer 组件 id 属性, 当值相同时仅保留最新的弹层实例。</li>
|
||||
|
Loading…
Reference in New Issue
Block a user