Add File
This commit is contained in:
9
frontend/src/components/icon-custom/index.ts
Normal file
9
frontend/src/components/icon-custom/index.ts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import { h } from 'vue'
|
||||||
|
import { ElIcon } from 'element-plus-secondary'
|
||||||
|
import Icon from './src/Icon.vue'
|
||||||
|
const hIcon = (name: string) => {
|
||||||
|
return h(ElIcon, null, {
|
||||||
|
default: () => h(name),
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export { Icon, hIcon }
|
||||||
Reference in New Issue
Block a user