mirror of
https://github.com/youzan/vant.git
synced 2026-04-06 02:00:43 +08:00
[new feature] Button: add url、to、replace prop (#2754)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user