[Doc] props title

This commit is contained in:
陈嘉涵
2019-05-03 09:37:24 +08:00
parent 921f8a88fb
commit e3cb465dc2
101 changed files with 279 additions and 283 deletions

View File

@@ -60,7 +60,7 @@ Use slot to add custom contents.
</van-submit-bar>
```
### API
### Props
| Attribute | Description | Type | Default |
|------|------|------|------|
@@ -75,13 +75,13 @@ Use slot to add custom contents.
| decimal-length | Number of digits to appear after the decimal point | `Number` | `2` |
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation, to enable those features use `viewport-fit=cover` in the `viewport` meta tag | `Boolean` | `false` |
### Event
### Events
| Event | Description | Arguments |
|------|------|------|
| submit | Triggerd when click submit button | - |
### Slot
### Slots
| Name | Description |
|------|------|

View File

@@ -63,7 +63,7 @@ Vue.use(SubmitBar);
</van-submit-bar>
```
### API
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
@@ -78,13 +78,13 @@ Vue.use(SubmitBar);
| decimal-length | 价格小数点后位数 | `Number` | `2` | 1.6.15 |
| safe-area-inset-bottom | 是否开启 iPhone X 底部安全区适配,需要在 `viewport` meta 标签中设置 `viewport-fit=cover` | `Boolean` | `false` | 1.6.15 |
### Event
### Events
| 事件名 | 说明 | 回调参数 |
|------|------|------|
| submit | 按钮点击事件回调 | - |
### Slot
### Slots
| 名称 | 说明 |
|------|------|