chore: @vben-core/iconify was renamed @vben-core/icons. Add readme.md for some packages

This commit is contained in:
vince
2024-07-14 22:51:10 +08:00
parent 3a91a24e0d
commit 3eb7a8bc6f
68 changed files with 261 additions and 132 deletions

19
packages/icons/README.md Normal file
View File

@@ -0,0 +1,19 @@
# @vben/icons
用于多个 `app` 公用的图标文件,继承了 `@vben-core/icons` 的所有能力。业务上有通用图标可以放在这里。
## 用法
### 添加依赖
```bash
# 进入目标应用目录,例如 apps/xxxx-app
# cd apps/xxxx-app
pnpm add @vben/icons --workspace
```
### 使用
```ts
import { IcRoundClose } from '@vben/icons';
```

View File

@@ -35,6 +35,6 @@
}
},
"dependencies": {
"@vben-core/iconify": "workspace:*"
"@vben-core/icons": "workspace:*"
}
}

View File

@@ -1 +1 @@
export * from '@vben-core/iconify';
export * from '@vben-core/icons';

View File

@@ -1,4 +1,4 @@
import { createIconifyIcon } from '@vben-core/iconify';
import { createIconifyIcon } from '@vben-core/icons';
import { loadSvgIcons } from './load';

View File

@@ -1,7 +1,7 @@
import {
addIcon,
// addCollection
} from '@vben-core/iconify';
} from '@vben-core/icons';
// addCollection({
// prefix: 'mdi',