diff --git a/packages/amis-ui/src/components/icons.tsx b/packages/amis-ui/src/components/icons.tsx index 73083ad0b59..06cd73d5140 100644 --- a/packages/amis-ui/src/components/icons.tsx +++ b/packages/amis-ui/src/components/icons.tsx @@ -416,6 +416,7 @@ export function Icon({ // 直接传入svg字符串 if (typeof icon === 'string' && icon.startsWith('(.*?)<\/svg>/.exec(icon); const viewBox = /viewBox="(.*?)"/.exec(icon); const svgHTML = createElement('svg', {