Commit cd4b9e977107b1f93b376453fe86844e398fa810

Authored by xingyu4j
1 parent 8cfc0736

perf: 显示icon

yudao-ui-admin-vue3/src/views/system/menu/index.vue
... ... @@ -14,6 +14,10 @@
14 14 <XButton title="展开所有" @click="xGrid?.setAllTreeExpand(true)" />
15 15 <XButton title="关闭所有" @click="xGrid?.clearTreeExpand()" />
16 16 </template>
  17 + <template #name_default="{ row }">
  18 + <Icon :icon="row.icon" />
  19 + <span class="ml-3">{{ row.name }}</span>
  20 + </template>
17 21 <template #actionbtns_default="{ row }">
18 22 <!-- 操作:修改 -->
19 23 <XTextButton
... ...
yudao-ui-admin-vue3/src/views/system/menu/menu.data.ts
... ... @@ -31,7 +31,10 @@ const crudSchemas = reactive&lt;VxeCrudSchema&gt;({
31 31 table: {
32 32 treeNode: true,
33 33 align: 'left',
34   - width: '200px'
  34 + width: '200px',
  35 + slots: {
  36 + default: 'name_default'
  37 + }
35 38 }
36 39 },
37 40 {
... ...