Skip to content

Commit 5c14f78

Browse files
committed
refactor(Popup): 事件触发改用 EventUtil
1 parent 5cb8b74 commit 5c14f78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/popup/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import zIndex from '../behaviors/zIndex';
22
import validator from '../behaviors/validator';
3+
import eventUtil from '../core/utils/event-util';
34

45
Component({
56
/**
@@ -101,7 +102,6 @@ Component({
101102
// 点击事件
102103
onPopupTap() {
103104
let detail = true;
104-
let option = {bubbles: true, composed: true};
105105
if (this.data.locked !== true) {
106106
if (!this.data.show) {
107107
this.setData({
@@ -121,7 +121,7 @@ Component({
121121
}
122122
}
123123

124-
this.triggerEvent('lintap', detail, option);
124+
eventUtil.emit(this,'lintap', detail);
125125
}
126126
}
127127
});

0 commit comments

Comments
 (0)