admin-vben5/packages/@core/shared/iconify/src/create-icon.ts
Laychen 06f5d5686d
feat: add the ability to lock the screen (#30)
* feat: 锁屏功能

* feat: 锁屏样式调整

* feat: complete the lock-screen screen and support shortcut keys and preference configuration

---------

Co-authored-by: vince <vince292007@gmail.com>
2024-07-12 12:14:09 +08:00

15 lines
314 B
TypeScript

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 };