@cloudbase/weda-ui-mp 3.18.5 → 3.18.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -76,7 +76,7 @@ Component({
|
|
|
76
76
|
* 控制弹窗打开/关闭
|
|
77
77
|
* @param {Boolean} isOpen
|
|
78
78
|
*/
|
|
79
|
-
dealShow(isOpen, params) {
|
|
79
|
+
dealShow(isOpen, params, isTrigger = true) {
|
|
80
80
|
let setImmediately = {
|
|
81
81
|
maskPreToShow: true,
|
|
82
82
|
isMaskShow: !isOpen,
|
|
@@ -92,8 +92,9 @@ Component({
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
this.setData(setImmediately);
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
if (isTrigger) {
|
|
96
|
+
this.triggerEvent(isOpen ? 'open' : 'close', params);
|
|
97
|
+
}
|
|
97
98
|
},
|
|
98
99
|
/**
|
|
99
100
|
* 关闭弹窗
|
|
@@ -162,6 +163,9 @@ Component({
|
|
|
162
163
|
modalBdClasses,
|
|
163
164
|
});
|
|
164
165
|
},
|
|
166
|
+
defaultShow: function (defaultShow) {
|
|
167
|
+
this.dealShow(defaultShow, {}, false);
|
|
168
|
+
},
|
|
165
169
|
'isBdShow,openInfo,closeInfo': function () {
|
|
166
170
|
this.updateWidgetAPI();
|
|
167
171
|
},
|