mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-09 07:51:10 +08:00
refactor: 更新菜单类型图标类名并移除冗余的h函数调用
更新菜单类型图标使用的CSS类名,将`icons-`前缀统一改为`icon-`前缀,并交换目录与菜单的图标 同时移除不再需要的Vue h函数导入与调用,简化图标渲染逻辑
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
|
||||
import { h } from 'vue';
|
||||
|
||||
import { DictEnum } from '@vben/constants';
|
||||
import { VbenIcon } from '@vben/icons';
|
||||
import { $t } from '@vben/locales';
|
||||
@@ -53,15 +51,15 @@ export const yesNoOptions = [
|
||||
// (M目录 C菜单 F按钮)
|
||||
export const menuTypes = {
|
||||
C: {
|
||||
icon: <span class="icons-[flat-color-icons--folder]"></span>,
|
||||
icon: <span class="icon-[material-symbols--menu]"></span>,
|
||||
value: '菜单',
|
||||
},
|
||||
F: {
|
||||
icon: <span class="icons-[mdi--button-pointer]"></span>,
|
||||
icon: <span class="icon-[mdi--button-pointer]"></span>,
|
||||
value: '按钮',
|
||||
},
|
||||
M: {
|
||||
icon: <span class="icons-[material-symbols--menu]"></span>,
|
||||
icon: <span class="icon-[flat-color-icons--folder]"></span>,
|
||||
value: '目录',
|
||||
},
|
||||
};
|
||||
@@ -112,7 +110,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
}
|
||||
return (
|
||||
<span class="flex items-center justify-center gap-1">
|
||||
{h(current.icon, { class: 'size-[18px]' })}
|
||||
{current.icon}
|
||||
<span>{current.value}</span>
|
||||
</span>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user