Skip to content

Commit

Permalink
新增对项目图标的按需引入
Browse files Browse the repository at this point in the history
  • Loading branch information
sengoku-f committed Nov 18, 2024
1 parent c65b9df commit 8617e6a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | 基本图标库 |
Expand Down
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ksw-vue-icon",
"version": "2.3.3",
"version": "2.3.4",
"license": "ISC",
"description": "KSW ICON",
"type": "module",
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 8617e6a

Please sign in to comment.