mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-30 02:09:16 +08:00
[Doc] update button document (#1901)
This commit is contained in:
parent
ef539172f8
commit
df9299457d
@ -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')">
|
||||||
|
@ -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>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 禁用状态
|
#### 禁用状态
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user