(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 { export interface LaySelectOptionProps {
label: string; label: string;
value: string | number |object; value: string | number | object;
disabled?: boolean; disabled?: boolean;
keyword?: string; keyword?: string;
} }

View File

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

View File

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

View File

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

View File

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