mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-28 00:10:18 +08:00
refactor(projects): perf code
This commit is contained in:
10
src/hooks/common/icon.ts
Normal file
10
src/hooks/common/icon.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { useSvgIconRender } from '@sa/hooks';
|
||||
import SvgIcon from '@/components/custom/svg-icon.vue';
|
||||
|
||||
export function useSvgIcon() {
|
||||
const { SvgIconVNode } = useSvgIconRender(SvgIcon);
|
||||
|
||||
return {
|
||||
SvgIconVNode
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user