✨(component): update
This commit is contained in:
parent
74ec3e108f
commit
4b2f11c227
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@layui/layui-vue",
|
||||
"version": "1.7.0-dev.4",
|
||||
"version": "1.7.0-dev.19",
|
||||
"author": "就眠儀式",
|
||||
"license": "MIT",
|
||||
"description": "a component library for Vue 3 base on layui-vue",
|
||||
|
@ -512,12 +512,25 @@ const radioProps = props.getRadioProps(props.data, props.index);
|
||||
></lay-icon>
|
||||
|
||||
<lay-tooltip v-if="column.ellipsisTooltip" :isAutoShow="true">
|
||||
<slot :name="column.customSlot" :data="data" :column="column"></slot>
|
||||
<slot
|
||||
:name="column.customSlot"
|
||||
:data="data"
|
||||
:column="column"
|
||||
></slot>
|
||||
<template #content>
|
||||
<slot :name="column.customSlot" :data="data" :column="column"></slot>
|
||||
<slot
|
||||
:name="column.customSlot"
|
||||
:data="data"
|
||||
:column="column"
|
||||
></slot>
|
||||
</template>
|
||||
</lay-tooltip>
|
||||
<slot v-else :name="column.customSlot" :data="data" :column="column"></slot>
|
||||
<slot
|
||||
v-else
|
||||
:name="column.customSlot"
|
||||
:data="data"
|
||||
:column="column"
|
||||
></slot>
|
||||
</td>
|
||||
</template>
|
||||
|
||||
@ -622,11 +635,25 @@ const radioProps = props.getRadioProps(props.data, props.index);
|
||||
v-model:selectedKeys="tableSelectedKeys"
|
||||
v-model:selectedKey="tableSelectedKey"
|
||||
>
|
||||
<template v-for="name in slotsData" #[name]="slotProp: { data: any, column: any }">
|
||||
<slot :name="name" :data="slotProp.data" :column="slotProp.column"></slot>
|
||||
<template
|
||||
v-for="name in slotsData"
|
||||
#[name]="slotProp: { data: any, column: any }"
|
||||
>
|
||||
<slot
|
||||
:name="name"
|
||||
:data="slotProp.data"
|
||||
:column="slotProp.column"
|
||||
></slot>
|
||||
</template>
|
||||
<template v-if="slot.expand" #expand="slotProp: { data: any, column: any }">
|
||||
<slot name="expand" :data="slotProp.data" :column="slotProp.column"></slot>
|
||||
<template
|
||||
v-if="slot.expand"
|
||||
#expand="slotProp: { data: any, column: any }"
|
||||
>
|
||||
<slot
|
||||
name="expand"
|
||||
:data="slotProp.data"
|
||||
:column="slotProp.column"
|
||||
></slot>
|
||||
</template>
|
||||
</table-row>
|
||||
</template>
|
||||
|
@ -840,12 +840,12 @@ onBeforeUnmount(() => {
|
||||
:defaultExpandAll="defaultExpandAll"
|
||||
:getCheckboxProps="getCheckboxProps"
|
||||
:getRadioProps="getRadioProps"
|
||||
@row="rowClick"
|
||||
@row-double="rowDoubleClick"
|
||||
@row-contextmenu="rowContextmenu"
|
||||
v-model:expandKeys="tableExpandKeys"
|
||||
v-model:selectedKeys="tableSelectedKeys"
|
||||
v-model:selectedKey="tableSelectedKey"
|
||||
@row="rowClick"
|
||||
@row-double="rowDoubleClick"
|
||||
@row-contextmenu="rowContextmenu"
|
||||
>
|
||||
<template v-for="name in slotsData" #[name]="{ data }">
|
||||
<slot :name="name" :data="data"></slot>
|
||||
@ -901,15 +901,15 @@ onBeforeUnmount(() => {
|
||||
</div>
|
||||
<div v-if="page && page.total > 0" class="layui-table-page">
|
||||
<table-page
|
||||
:show-page="page.showPage"
|
||||
:showSkip="page.showSkip"
|
||||
:showLimit="page.showLimit"
|
||||
:showCount="page.showCount"
|
||||
:limits="page.limits"
|
||||
:showRefresh="page.showRefresh"
|
||||
:total="page.total"
|
||||
:pages="page.pages"
|
||||
:theme="page.theme"
|
||||
:limits="page.limits"
|
||||
:showSkip="page.showSkip"
|
||||
:show-page="page.showPage"
|
||||
:showRefresh="page.showRefresh"
|
||||
:showLimit="page.showLimit"
|
||||
:showCount="page.showCount"
|
||||
v-model:current="page.current"
|
||||
v-model:limit="page.limit"
|
||||
@change="change"
|
||||
|
Loading…
Reference in New Issue
Block a user