Compare commits

...

4 Commits

Author SHA1 Message Date
neverland
aded0e2d8b
docs(@vant/cli): changelog v4.0.1 (#10473) 2022-04-05 10:21:57 +08:00
neverland
5fec4f41e4
docs(@vant/icons): changelog v1.8.0 (#10472) 2022-04-05 10:08:42 +08:00
chenjiahan
e461abaafa release: @vant/icons 1.8.0 2022-04-05 10:05:55 +08:00
neverland
f1d5a9415e
docs(Icons): update contribution guide (#10471) 2022-04-05 10:03:08 +08:00
6 changed files with 27 additions and 6 deletions

View File

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

View File

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

View File

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

View File

@ -61,7 +61,7 @@
"components"
],
"dependencies": {
"@vant/icons": "^1.7.1",
"@vant/icons": "^1.8.0",
"@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.7.1
'@vant/icons': ^1.8.0
'@vant/popperjs': ^1.1.0
'@vant/use': ^1.3.6
'@vue/runtime-core': ^3.2.27