(component): update

This commit is contained in:
就眠儀式 2022-10-19 10:36:56 +08:00
parent c94f7f246c
commit 31ba2575fd
3 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@layui/layui-vue",
"version": "1.6.9",
"version": "1.7.0-dev.3",
"author": "就眠儀式",
"license": "MIT",
"description": "a component library for Vue 3 base on layui-vue",

View File

@ -622,11 +622,11 @@ const radioProps = props.getRadioProps(props.data, props.index);
v-model:selectedKeys="tableSelectedKeys"
v-model:selectedKey="tableSelectedKey"
>
<template v-for="name in slotsData" #[name]="{ data }">
<slot :name="name" :data="data"></slot>
<template v-for="name in slotsData" #[name]="slotProp: { data: any }">
<slot :name="name" :data="slotProp.data"></slot>
</template>
<template v-if="slot.expand" #expand="{ data }">
<slot name="expand" :data="data"></slot>
<template v-if="slot.expand" #expand="slotProp: { data: any }">
<slot name="expand" :data="slotProp.data"></slot>
</template>
</table-row>
</template>

View File

@ -195,8 +195,8 @@ const isChildAllSelected = computed(() => {
:only-icon-control="onlyIconControl"
@node-click="recursiveNodeClick"
>
<template v-if="$slots.title" v-slot:title="{ data }">
<slot name="title" :data="data"></slot>
<template v-if="$slots.title" v-slot:title="slotProp: { data: any }">
<slot name="title" :data="slotProp.data"></slot>
</template>
</tree-node>
</div>