mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-29 16:12:55 +00:00
6 lines
180 B
TypeScript
6 lines
180 B
TypeScript
const icons: any = import.meta.glob('./**.vue', { eager: true })
|
|
export function iconComponent(name: string) {
|
|
const url = `./${name}.vue`
|
|
return icons[url]?.default || null
|
|
}
|