breaking change(Popup): rename transitionend event (#1940)

This commit is contained in:
neverland 2019-09-03 14:32:26 +08:00 committed by GitHub
parent f382d98a90
commit d904e4218f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -14,6 +14,10 @@
- `text`选项重命名为`message`
- `backgroundColor`选项重命名为`background`
##### Popup
- `transitionEnd`事件重命名为`transitionend`
#### 新特性
##### Popup

View File

@ -120,7 +120,7 @@ export const transition = function (showDefaultValue: boolean) {
onTransitionEnd() {
if (!this.data.show) {
this.set({ display: false });
this.$emit('transitionEnd');
this.$emit('transitionend');
}
}
}

View File

@ -88,7 +88,7 @@ Page({
|-----------|-----------|-----------|
| bind:close | 关闭弹出层时触发 | - |
| bind:click-overlay | 点击遮罩层时触发 | - |
| bind:transitionEnd | 弹出层动画结束后触发 | - |
| bind:transitionend | 弹出层动画结束后触发 | - |
### 外部样式类