[new feature] Button: add url、to、replace prop (#2754)

This commit is contained in:
neverland
2019-02-15 19:28:20 +08:00
committed by GitHub
parent c5bd04e30a
commit 632cfbcf36
3 changed files with 9 additions and 1 deletions

View File

@@ -61,7 +61,6 @@ Vue.use(Button);
<van-button size="mini">迷你按钮</van-button>
```
### API
| 参数 | 说明 | 类型 | 默认值 | 版本 |
@@ -78,6 +77,9 @@ Vue.use(Button);
| disabled | 是否禁用按钮 | `Boolean` | `false` | - |
| loading | 是否显示为加载状态 | `Boolean` | `false` | - |
| loading-text | 加载状态提示文字 | `String` | - | 1.6.3 |
| url | 跳转链接 | `String` | - | 1.6.5 |
| to | 路由跳转对象,同 `vue-router` 的 to | `String | Object` | - | 1.6.5 |
| replace | 跳转时是否替换当前页面历史 | `String` | `false` | 1.6.5 |
### Event