(component): 发布 1.6.0 版本

This commit is contained in:
就眠儀式 2022-10-04 01:54:15 +08:00
parent e0f1f0affe
commit 04a7764156
5 changed files with 9 additions and 9 deletions

View File

@ -17,7 +17,7 @@ import {
export interface LaySelectOptionProps {
label: string;
value: string | number |object;
value: string | number | object;
disabled?: boolean;
keyword?: string;
}

View File

@ -170,7 +170,7 @@ const isChildAllSelected = computed(() => {
:class="{
'layui-tree-txt': true,
'layui-disabled': node.isDisabled,
'layui-this': selectedKey === node.id
'layui-this': selectedKey === node.id,
}"
@click.stop="handleTitleClick(node)"
>

View File

@ -144,9 +144,9 @@ function handleClick(node: TreeData) {
:only-icon-control="onlyIconControl"
@node-click="handleClick"
>
<template v-if="$slots.title" v-slot:title="{ data }">
<slot name="title" :data="data"></slot>
</template>
<template v-if="$slots.title" v-slot:title="{ data }">
<slot name="title" :data="data"></slot>
</template>
</tree-node>
</div>
</template>

View File

@ -62,8 +62,8 @@ const checkedKeys = computed({
set(value) {
emits("update:modelValue", value);
emits("change", value);
}
})
},
});
watch(
[selectedValue],
@ -77,7 +77,7 @@ watch(
});
} else {
const node: any = getNode(props.data, selectedValue.value);
if(node) {
if (node) {
singleValue.value = node.title;
}
}

View File

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