[Doc] update button document (#1901)

This commit is contained in:
neverland 2018-10-09 10:57:33 +08:00 committed by GitHub
parent ef539172f8
commit df9299457d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -10,8 +10,8 @@
</demo-block> </demo-block>
<demo-block :title="$t('plain')"> <demo-block :title="$t('plain')">
<van-button plain type="primary">{{ $t('warning') }}</van-button> <van-button plain type="primary">{{ $t('plain') }}</van-button>
<van-button plain type="danger">{{ $t('danger') }}</van-button> <van-button plain type="danger">{{ $t('plain') }}</van-button>
</demo-block> </demo-block>
<demo-block :title="$t('disabled')"> <demo-block :title="$t('disabled')">

View File

@ -22,8 +22,8 @@ Vue.use(Button);
#### 朴素按钮 #### 朴素按钮
```html ```html
<van-button plain type="primary">主要按钮</van-button> <van-button plain type="primary">朴素按钮</van-button>
<van-button plain type="danger">危险按钮</van-button> <van-button plain type="danger">朴素按钮</van-button>
``` ```
#### 禁用状态 #### 禁用状态

View File

@ -45,7 +45,6 @@ Use `slot` to custom content.
| Attribute | Description | Type | Default | | Attribute | Description | Type | Default |
|-----------|-----------|-----------|-------------| |-----------|-----------|-----------|-------------|
| thumb | Left thumb image URL | `String` | - | | thumb | Left thumb image URL | `String` | - |
| thumb-link | Thumb link URL | `String` | - |
| title | Title | `String` | - | | title | Title | `String` | - |
| desc | Description | `String` | - | | desc | Description | `String` | - |
| tag | Tag | `String` | - | | tag | Tag | `String` | - |
@ -53,6 +52,7 @@ Use `slot` to custom content.
| price | Price of goods | `String | Number` | - | | price | Price of goods | `String | Number` | - |
| centered | Whether content vertical centered | `String` | `false` | | centered | Whether content vertical centered | `String` | `false` |
| currency | Currency symbol | `String` | `¥` | | currency | Currency symbol | `String` | `¥` |
| thumb-link | Thumb link URL | `String` | - |
### Slot ### Slot

View File

@ -45,7 +45,6 @@ Vue.use(Card);
| 参数 | 说明 | 类型 | 默认值 | | 参数 | 说明 | 类型 | 默认值 |
|-----------|-----------|-----------|-------------| |-----------|-----------|-----------|-------------|
| thumb | 左侧图片 URL | `String` | - | | thumb | 左侧图片 URL | `String` | - |
| thumb-link | 点击左侧图片后的跳转链接 | `String` | - |
| title | 标题 | `String` | - | | title | 标题 | `String` | - |
| desc | 描述 | `String` | - | | desc | 描述 | `String` | - |
| tag | 标签 | `String` | - | | tag | 标签 | `String` | - |
@ -53,6 +52,7 @@ Vue.use(Card);
| price | 商品价格 | `String | Number` | - | | price | 商品价格 | `String | Number` | - |
| centered | 内容是否垂直居中 | `String` | `false` | | centered | 内容是否垂直居中 | `String` | `false` |
| currency | 货币符号 | `String` | `¥` | | currency | 货币符号 | `String` | `¥` |
| thumb-link | 点击左侧图片后的跳转链接 | `String` | - |
### Slot ### Slot