(table): add sub-table tree-table

This commit is contained in:
就眠儀式 2022-05-28 23:52:14 +08:00
parent 3e68cdf169
commit 62585e9e56
2 changed files with 9 additions and 9 deletions

View File

@ -65,7 +65,7 @@ const expandIconType = computed(() => {
const handleExpand = () => { const handleExpand = () => {
isExpand.value = !isExpand.value; isExpand.value = !isExpand.value;
} };
</script> </script>
<template> <template>
@ -100,12 +100,12 @@ const handleExpand = () => {
whiteSpace: column.ellipsisTooltip ? 'nowrap' : 'normal', whiteSpace: column.ellipsisTooltip ? 'nowrap' : 'normal',
}" }"
> >
<lay-icon <lay-icon
v-if="(slot.expand || data.children) && index === 0" v-if="(slot.expand || data.children) && index === 0"
class="layui-table-cell-expand-icon" class="layui-table-cell-expand-icon"
:type="expandIconType" :type="expandIconType"
@click="handleExpand" @click="handleExpand"
></lay-icon> ></lay-icon>
<lay-tooltip <lay-tooltip
v-if="column.ellipsisTooltip" v-if="column.ellipsisTooltip"