✨(component): 发布 1.6.0 版本
This commit is contained in:
parent
e0f1f0affe
commit
04a7764156
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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)"
|
||||||
>
|
>
|
||||||
|
@ -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>
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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 => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user