mirror of
https://github.com/rustfs/console.git
synced 2026-09-01 15:17:45 +08:00
14 lines
236 B
TypeScript
14 lines
236 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);
|
|
}
|