mirror of
https://github.com/rustfs/console.git
synced 2026-10-31 20:25:01 +08:00
- Auto-format all files to comply with Prettier rules - Fix code style issues in 545 files
14 lines
232 B
TypeScript
14 lines
232 B
TypeScript
import { Icon } from '#components'
|
|
|
|
export function icon(name: string) {
|
|
if (!name.includes(':')) {
|
|
name = 'ri:' + name
|
|
}
|
|
|
|
return h(Icon, { name })
|
|
}
|
|
|
|
export function iconRender(name: string) {
|
|
return () => icon(name)
|
|
}
|