[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 6 deletions

View File

@ -96,7 +96,7 @@ Setting `type` to `flex` to enable flex layout
| justify | Flex main axiscan be set to end/center/space-around/space-between | `String` | `start` | | justify | Flex main axiscan be set to end/center/space-around/space-between | `String` | `start` |
| align | Flex cross axis, be set to center/bottom | `String` | `top` | | align | Flex cross axis, be set to center/bottom | `String` | `top` |
#### Column #### Col
| Attribute | Description | Type | Default | | Attribute | Description | Type | Default |
|-----------|-----------|-----------|-------------| |-----------|-----------|-----------|-------------|

View File

@ -97,7 +97,7 @@ Layout 组件提供了`24列栅格`,通过在`Col`上添加`span`属性设置
| justify | Flex 主轴对齐方式,可选值为 end/center/space-around/space-between | `String` | `start` | | justify | Flex 主轴对齐方式,可选值为 end/center/space-around/space-between | `String` | `start` |
| align | Flex 交叉轴对齐方式,可选值为 center/bottom | `String` | `top` | | align | Flex 交叉轴对齐方式,可选值为 center/bottom | `String` | `top` |
#### Column #### Col
| 参数 | 说明 | 类型 | 默认值 | | 参数 | 说明 | 类型 | 默认值 |
|-----------|-----------|-----------|-------------| |-----------|-----------|-----------|-------------|

View File

@ -10,6 +10,7 @@ Vue.use(Icon);
### 代码演示 ### 代码演示
#### 基础用法 #### 基础用法
设置`name`属性为对应的图标名称即可,所有可用的图标名称见右侧列表 设置`name`属性为对应的图标名称即可,所有可用的图标名称见右侧列表
```html ```html
@ -17,6 +18,7 @@ Vue.use(Icon);
``` ```
#### 使用本地字体文件 #### 使用本地字体文件
Icon 组件默认引用 `yzcdn.cn` 域名下的字体文件,如果想要使用本地字体文件,请引入下面的 css 文件 Icon 组件默认引用 `yzcdn.cn` 域名下的字体文件,如果想要使用本地字体文件,请引入下面的 css 文件
```js ```js
@ -24,6 +26,7 @@ import 'vant/lib/vant-css/icon-local.css';
``` ```
#### 自定义图标 #### 自定义图标
如果需要在现有 Icon 的基础上使用更多图标,可以引入你需要的 iconfont 对应的 ttf 文件和样式,之后就可以在 Icon 组件中直接使用 如果需要在现有 Icon 的基础上使用更多图标,可以引入你需要的 iconfont 对应的 ttf 文件和样式,之后就可以在 Icon 组件中直接使用
```css ```css
@ -49,10 +52,9 @@ import 'vant/lib/vant-css/icon-local.css';
| 参数 | 说明 | 类型 | 默认值 | | 参数 | 说明 | 类型 | 默认值 |
|-----------|-----------|-----------|-------------| |-----------|-----------|-----------|-------------|
| name | 图标名称 | `String` | `''` | | name | 图标名称 | `String` | - |
| info | 图标右上角文字提示 | `String | Number` | `''` | | info | 图标右上角文字提示 | `String | Number` | - |
| color | 图标颜色 | `String` | `''` | - | | color | 图标颜色 | `String` | - |
### Event ### Event