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

View File

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

View File

@ -24,6 +24,7 @@
<li>[新增] ** 方法。</li> <li>[新增] ** 方法。</li>
</ul> </ul>
</li> </li>
<li>[新增] tree-select 下拉树组件, 提供树结构数据选择能力。</li>
<li>[修复] upload 组件 drag 为 true 时, 获取不到拖拽文件 files 集合, 并直接预览上传资源。</li> <li>[修复] upload 组件 drag 为 true 时, 获取不到拖拽文件 files 集合, 并直接预览上传资源。</li>
<li>[其他] global 整体组件源码逻辑优化, 更好的兼容 typescript 类型。</li> <li>[其他] global 整体组件源码逻辑优化, 更好的兼容 typescript 类型。</li>
<li>[优化] layer 组件 id 属性, 当值相同时仅保留最新的弹层实例。</li> <li>[优化] layer 组件 id 属性, 当值相同时仅保留最新的弹层实例。</li>