仪表盘
版本库
文件存储
活动
搜索
登录
main
/
iailab-plat-ui-vue3
工业互联网平台前端 vue3版本
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
极值点
潘志宝
6 小时以前
04c91558f2a7ad6d1e424cb9781352a37726a134
[iailab-plat-ui-vue3.git]
/
src
/
hooks
/
web
/
useIcon.ts
1
2
3
4
5
6
7
8
import { h } from 'vue'
import type { VNode } from 'vue'
import { Icon } from '@/components/Icon'
import { IconTypes } from '@/types/icon'
export const useIcon = (props: IconTypes): VNode => {
return h(Icon, props)
}