feat: add vue3(element-plus)
This commit is contained in:
7
yudao-ui-admin-vue3/src/hooks/web/useIcon.ts
Normal file
7
yudao-ui-admin-vue3/src/hooks/web/useIcon.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { h } from 'vue'
|
||||
import type { VNode } from 'vue'
|
||||
import { Icon } from '@/components/Icon'
|
||||
|
||||
export const useIcon = (props: IconTypes): VNode => {
|
||||
return h(Icon, props)
|
||||
}
|
||||
Reference in New Issue
Block a user