Logo
Explore Help
Register Sign In
nailaoyun/nl-admin-view
1
0
Fork 0
You've already forked nl-admin-view
Code Issues Pull Requests Actions 3 Packages Projects Releases Wiki Activity
Files
1fbf69e6eb5a0be58c9984698c8e32fce4b94f0e
nl-admin-view/packages/@core/shared/icons/src/create-icon.ts

15 lines
314 B
TypeScript
Raw Normal View History

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
import { defineComponent, h } from 'vue';
perf: reduce the number of icon component instances
2024-07-06 21:53:02 +08:00
import { Icon } from '@iconify/vue';
perf: replace vue-sonner with the toast component of shadcn-ui
2024-07-07 11:36:32 +08:00
function createIconifyIcon(icon: string) {
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
return defineComponent({
name: `SvgIcon-${icon}`,
setup(props, { attrs }) {
return () => h(Icon, { icon, ...props, ...attrs });
},
});
perf: reduce the number of icon component instances
2024-07-06 21:53:02 +08:00
}
perf: replace vue-sonner with the toast component of shadcn-ui
2024-07-07 11:36:32 +08:00
export { createIconifyIcon };
Reference in New Issue Copy Permalink
Powered by Gitea Version: 25.5.0 Page: 37ms Template: 2ms
English
English 简体中文 繁體中文(台灣) 繁體中文(香港)
Licenses API