mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
breaking change(Popup): rename transitionend event (#1940)
This commit is contained in:
parent
f382d98a90
commit
d904e4218f
@ -14,6 +14,10 @@
|
|||||||
- `text`选项重命名为`message`
|
- `text`选项重命名为`message`
|
||||||
- `backgroundColor`选项重命名为`background`
|
- `backgroundColor`选项重命名为`background`
|
||||||
|
|
||||||
|
##### Popup
|
||||||
|
|
||||||
|
- `transitionEnd`事件重命名为`transitionend`
|
||||||
|
|
||||||
#### 新特性
|
#### 新特性
|
||||||
|
|
||||||
##### Popup
|
##### Popup
|
||||||
|
@ -120,7 +120,7 @@ export const transition = function (showDefaultValue: boolean) {
|
|||||||
onTransitionEnd() {
|
onTransitionEnd() {
|
||||||
if (!this.data.show) {
|
if (!this.data.show) {
|
||||||
this.set({ display: false });
|
this.set({ display: false });
|
||||||
this.$emit('transitionEnd');
|
this.$emit('transitionend');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ Page({
|
|||||||
|-----------|-----------|-----------|
|
|-----------|-----------|-----------|
|
||||||
| bind:close | 关闭弹出层时触发 | - |
|
| bind:close | 关闭弹出层时触发 | - |
|
||||||
| bind:click-overlay | 点击遮罩层时触发 | - |
|
| bind:click-overlay | 点击遮罩层时触发 | - |
|
||||||
| bind:transitionEnd | 弹出层动画结束后触发 | - |
|
| bind:transitionend | 弹出层动画结束后触发 | - |
|
||||||
|
|
||||||
### 外部样式类
|
### 外部样式类
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user