docs(Icon): add en tip

This commit is contained in:
chenjiahan 2020-11-08 16:58:44 +08:00
parent 58fa4fee1c
commit 85e1548fc5
2 changed files with 3 additions and 1 deletions

View File

@ -57,6 +57,8 @@ Icon uses font file in `yzcdn.cn` by defaultif you want to use the local font
import 'vant/lib/icon/local.css';
```
> Tips: Starting from version 2.10.13, Vant will use local font files in woff2 format by default
### Add custom iconfont
```css

View File

@ -59,7 +59,7 @@ Icon 组件默认引用有赞 CDN 提供的字体文件,并通过网络下载
import 'vant/lib/icon/local.css';
```
> Tips: 从 2.10.13 版本开始Vant 会默认使用 woff2 格式的本地字体文件,只有在不支持 woff2 字体的低端浏览器才会加载有赞 CDN 的网络图标。
> Tips: 从 2.10.13 版本开始Vant 会默认使用 woff2 格式的本地字体文件,只有在不支持 woff2 字体的低端浏览器才会加载有赞 CDN 的网络图标。
### 自定义图标