mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-25 16:16:20 +08:00
fix: rename the Icon component to IconifyIcon to prevent name conflicts and fix type issues (#4704)
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
export * from './iconify/index';
|
||||
export * from './svg/index';
|
||||
export * from './iconify/index.js';
|
||||
export * from './svg/index.js';
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import { createIconifyIcon } from '@vben-core/icons';
|
||||
|
||||
import './load';
|
||||
import './load.js';
|
||||
|
||||
const SvgAvatar1Icon = createIconifyIcon('svg:avatar-1');
|
||||
const SvgAvatar2Icon = createIconifyIcon('svg:avatar-2');
|
||||
|
@@ -1,4 +1,6 @@
|
||||
import { addIcon, type IconifyIcon } from '@vben-core/icons';
|
||||
import type { IconifyIconStructure } from '@vben-core/icons';
|
||||
|
||||
import { addIcon } from '@vben-core/icons';
|
||||
|
||||
let loaded = false;
|
||||
if (!loaded) {
|
||||
@@ -6,7 +8,7 @@ if (!loaded) {
|
||||
loaded = true;
|
||||
}
|
||||
|
||||
function parseSvg(svgData: string): IconifyIcon {
|
||||
function parseSvg(svgData: string): IconifyIconStructure {
|
||||
const parser = new DOMParser();
|
||||
const xmlDoc = parser.parseFromString(svgData, 'image/svg+xml');
|
||||
const svgElement = xmlDoc.documentElement;
|
||||
|
Reference in New Issue
Block a user