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