perf: 显示icon

This commit is contained in:
xingyu4j 2022-12-14 17:53:30 +08:00
parent 8cfc0736fa
commit cd4b9e9771
2 changed files with 8 additions and 1 deletions

View File

@ -14,6 +14,10 @@
<XButton title="展开所有" @click="xGrid?.setAllTreeExpand(true)" />
<XButton title="关闭所有" @click="xGrid?.clearTreeExpand()" />
</template>
<template #name_default="{ row }">
<Icon :icon="row.icon" />
<span class="ml-3">{{ row.name }}</span>
</template>
<template #actionbtns_default="{ row }">
<!-- 操作修改 -->
<XTextButton

View File

@ -31,7 +31,10 @@ const crudSchemas = reactive<VxeCrudSchema>({
table: {
treeNode: true,
align: 'left',
width: '200px'
width: '200px',
slots: {
default: 'name_default'
}
}
},
{