2024-07-12 04:14:09 +00:00
|
|
|
import { defineComponent, h } from 'vue';
|
2024-07-06 13:53:02 +00:00
|
|
|
|
|
|
|
import { Icon } from '@iconify/vue';
|
|
|
|
|
2024-07-07 03:36:32 +00:00
|
|
|
function createIconifyIcon(icon: string) {
|
2024-07-12 04:14:09 +00:00
|
|
|
return defineComponent({
|
2024-08-17 13:11:07 +00:00
|
|
|
name: `Icon-${icon}`,
|
2024-07-12 04:14:09 +00:00
|
|
|
setup(props, { attrs }) {
|
|
|
|
return () => h(Icon, { icon, ...props, ...attrs });
|
|
|
|
},
|
|
|
|
});
|
2024-07-06 13:53:02 +00:00
|
|
|
}
|
|
|
|
|
2024-07-07 03:36:32 +00:00
|
|
|
export { createIconifyIcon };
|