Logo
Explore Help
Register Sign In
xkyy/xk-admin
1
0
Fork 0
You've already forked xk-admin
Code Issues Pull Requests Actions 3 Packages Projects Releases Wiki Activity
Files
91058c3ed969de510416c56301d58cb3b6275ac3
xk-admin/packages/@core/shared/iconify/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: 57ms Template: 2ms
English
English 简体中文 繁體中文(台灣) 繁體中文(香港)
Licenses API