chore: @vben-core/iconify was renamed @vben-core/icons. Add readme.md for some packages

This commit is contained in:
vince
2024-07-14 22:51:10 +08:00
parent 3a91a24e0d
commit 3eb7a8bc6f
68 changed files with 261 additions and 132 deletions

View File

@@ -0,0 +1,14 @@
import { defineComponent, h } from 'vue';
import { Icon } from '@iconify/vue';
function createIconifyIcon(icon: string) {
return defineComponent({
name: `SvgIcon-${icon}`,
setup(props, { attrs }) {
return () => h(Icon, { icon, ...props, ...attrs });
},
});
}
export { createIconifyIcon };