From 8617e6ab8a94ff8f147d4d6d77f8795245a9e3c8 Mon Sep 17 00:00:00 2001 From: sengoku-f <31064651+sengoku-f@users.noreply.github.com> Date: Mon, 18 Nov 2024 17:51:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AF=B9=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E7=9A=84=E6=8C=89=E9=9C=80=E5=BC=95=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++++ package.json | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d89e979..e7f42ab 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,12 @@ Vue.use(KswIcon); Vue.use(KswIcon, { projectName: "Guangfa" }); ``` +按需引用项目图标只需要在 `ksw-vue-icon` 后添加上 `projectName`,例如: + +```js +import { IconName } from 'ksw-vue-icon/Guangfa' +``` + | projectName | 介绍 | | --------- | -------------------------- | | Base | 基本图标库 | diff --git a/package.json b/package.json index 935698c..e2792d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ksw-vue-icon", - "version": "2.3.3", + "version": "2.3.4", "license": "ISC", "description": "KSW ICON", "type": "module", @@ -70,6 +70,14 @@ "import": "./packages/es/index.js", "require": "./packages/cjs/index.js" }, + "./Guangfa": { + "import": "./packages/es/icons/guangfa/index.js", + "require": "./packages/cjs/icons/guangfa/index.js" + }, + "./KingAutometa": { + "import": "./packages/es/icons/KingAutometa/index.js", + "require": "./packages/cjs/icons/KingAutometa/index.js" + }, "./styles/*.css": { "import": "./styles/*.css", "require": "./styles/*.css"