From 83a894147372be1afa21e26a90b54cb008b75f9c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Sun, 16 Apr 2023 22:54:05 +0800 Subject: [PATCH] fix(im): fix duplicate component names. --- icons/ic/svgo.config.js | 2 +- icons/im/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/icons/ic/svgo.config.js b/icons/ic/svgo.config.js index 6e29cba4e..24a634706 100644 --- a/icons/ic/svgo.config.js +++ b/icons/ic/svgo.config.js @@ -35,7 +35,7 @@ module.exports = { } } if (item.name === 'circle') { - //Fix: Type 'number' is not assignable to type 'string'. + // Fix: Type 'number' is not assignable to type 'string'. const str = item.attributes['fill']; if (str && !str.startsWith('#')) { console.log('item:', str, item) diff --git a/icons/im/package.json b/icons/im/package.json index 1c224c3bd..a88d11af4 100644 --- a/icons/im/package.json +++ b/icons/im/package.json @@ -16,7 +16,7 @@ "scripts": { "cpy": "cpy '../../www/public/icons/im/*.svg' svg --flat", "tsbb": "tsbb build src/*.tsx --useBabel", - "icongo": "icongo --prefix IM --source svg -o ./src", + "icongo": "icongo --prefix IM --source svg -o ./src -r '{\"pagebreak\": \"IMPagebreak1\"}'", "build": "npm run cpy && npm run icongo && npm run tsbb", "start": "npm run build" },