Compare commits

..

No commits in common. "aded0e2d8bef1763af6de845e68266384cc12a6e" and "9c9cce00eae47e7a3ef2713ade236a77d2e7e3f3" have entirely different histories.

6 changed files with 6 additions and 27 deletions

View File

@ -1,13 +1,5 @@
# 更新日志
## v4.0.1
`2022-03-03`
- 支持复制示例代码到剪贴板
- 修复官网更新日志的版本链接及 issue 链接异常的问题
- 修复 ReDoS 安全问题
## v4.0.0
`2022-02-07`

View File

@ -1,13 +1,5 @@
## Changelog
## 1.8.0
- add qq icon
- add weibo icon
- add link-o icon
- add miniprogram-o icon
- add wechat-moments icon
## 1.7.3
- complete https protocol

View File

@ -14,12 +14,7 @@ Vant 图标库托管在 [iconfont.cn](https://iconfont.cn) 上,同时仓库中
在 Sketch 中绘制所需的图标,并更新到 `assets/icons.sketch` 文件中。
绘制图标,请遵循以下图标规范:
- 首先要遵循 [iconfont - 图标绘制](https://www.iconfont.cn/help/detail?spm=a313x.7781069.1998910419.16&helptype=draw) 中的基本规则,保证图标可以正确上传到 iconfont。
- 建议采用 `18x18` 规格绘制图标,图标的四周留出 `1px` 空隙,绘制完成后放大至 `1000x1000`
- 绘制线框风格图标时,线条的标准宽度为 `1px`(放大后为 `55.55px`)。
- 线框风格图标如果有对应的实底风格图标,需要为名称添加 `-o` 后缀,比如 `star-o``star` 为一组对应的图标。
绘制图标前,请阅读:[iconfont - 图标绘制](https://www.iconfont.cn/help/detail?spm=a313x.7781069.1998910419.16&helptype=draw)。
### 2. 上传图标
@ -31,10 +26,10 @@ Vant 图标库托管在 [iconfont.cn](https://iconfont.cn) 上,同时仓库中
### 3. 更新代码
在 iconfont 中更新图标库代码,将新代码下载到本地,并更新以下文件:
在 iconfont 中更新后的图标库下载到本地,并更新以下文件:
- `src/index.less`: 更新字体文件的 CDN 链接。
- `src/encode-woff2.less`: 更新字体文件的 base64 URL 和 CDN 链接
- `src/encode-woff2.less`: 更新字体文件的 base64 URL。
如果有新增图标,还需要更新以下文件:

View File

@ -1,6 +1,6 @@
{
"name": "@vant/icons",
"version": "1.8.0",
"version": "1.7.3",
"description": "vant icons",
"main": "./src/config.js",
"types": "./src/config.d.ts",

View File

@ -61,7 +61,7 @@
"components"
],
"dependencies": {
"@vant/icons": "^1.8.0",
"@vant/icons": "^1.7.1",
"@vant/popperjs": "^1.1.0",
"@vant/use": "^1.3.6"
},

2
pnpm-lock.yaml generated
View File

@ -52,7 +52,7 @@ importers:
'@vant/area-data': ^1.1.3
'@vant/cli': workspace:*
'@vant/eslint-config': workspace:*
'@vant/icons': ^1.8.0
'@vant/icons': ^1.7.1
'@vant/popperjs': ^1.1.0
'@vant/use': ^1.3.6
'@vue/runtime-core': ^3.2.27