From ffc66d95504f9a2eded3f46ff80a8f6df31bbd42 Mon Sep 17 00:00:00 2001 From: yutent Date: Fri, 24 Nov 2023 14:28:49 +0800 Subject: [PATCH] =?UTF-8?q?icon=E7=BB=84=E4=BB=B6=E5=A2=9E=E5=8A=A0extend?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/icon/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/icon/index.js b/src/icon/index.js index 741cbc9..c2faa7c 100644 --- a/src/icon/index.js +++ b/src/icon/index.js @@ -13,6 +13,12 @@ if (window.EXT_SVG_DICT) { Object.assign(dict, EXT_SVG_DICT) } +export default { + extend(icons = {}) { + Object.assign(dict, icons) + } +} + class Icon extends Component { static props = { name: {