[Doc] update detail (#1554)

* [bugfix] Stepper: optimize input strategy

* [Doc] update detail
This commit is contained in:
neverland
2018-07-30 16:47:17 +08:00
committed by GitHub
parent f164cb13f7
commit 35bf6447bc
3 changed files with 8 additions and 6 deletions
+6 -4
View File
@@ -10,6 +10,7 @@ Vue.use(Icon);
### 代码演示
#### 基础用法
设置`name`属性为对应的图标名称即可,所有可用的图标名称见右侧列表
```html
@@ -17,6 +18,7 @@ Vue.use(Icon);
```
#### 使用本地字体文件
Icon 组件默认引用 `yzcdn.cn` 域名下的字体文件,如果想要使用本地字体文件,请引入下面的 css 文件
```js
@@ -24,6 +26,7 @@ import 'vant/lib/vant-css/icon-local.css';
```
#### 自定义图标
如果需要在现有 Icon 的基础上使用更多图标,可以引入你需要的 iconfont 对应的 ttf 文件和样式,之后就可以在 Icon 组件中直接使用
```css
@@ -49,10 +52,9 @@ import 'vant/lib/vant-css/icon-local.css';
| 参数 | 说明 | 类型 | 默认值 |
|-----------|-----------|-----------|-------------|
| name | 图标名称 | `String` | `''` |
| info | 图标右上角文字提示 | `String | Number` | `''` |
| color | 图标颜色 | `String` | `''` | - |
| name | 图标名称 | `String` | - |
| info | 图标右上角文字提示 | `String | Number` | - |
| color | 图标颜色 | `String` | - |
### Event