refactor(SwipeCell): rename open event params

This commit is contained in:
chenjiahan 2020-08-09 20:54:17 +08:00
parent 8031c690dd
commit 13912c02a5
2 changed files with 1 additions and 3 deletions

View File

@ -41,6 +41,7 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。
以下改动是为了规范 API 命名:
- SwipeCell: `open` 事件的 `detail` 参数重命名为 `name`
- SwipeCell: `on-close` 属性重命名为 `before-close`,并调整参数结构
- Toast: `mask` 属性重命名为 `overlay`
- TreeSelect: `navclick` 事件重命名为 `click-nav`

View File

@ -73,9 +73,6 @@ export default createComponent({
this.$emit('open', {
position,
name: this.name,
// @deprecated
// should be removed in next major version
detail: this.name,
});
},