mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
refactor(SwipeCell): rename open event params
This commit is contained in:
parent
8031c690dd
commit
13912c02a5
@ -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`
|
||||
|
@ -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,
|
||||
});
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user