@netang/quasar 0.0.100 → 0.0.101
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.
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
width="80%"
|
|
163
163
|
:on-confirm="onDialogConfirm"
|
|
164
164
|
@before-show="onDialogBeforeShow"
|
|
165
|
-
@show="
|
|
165
|
+
@show="onDialogShow"
|
|
166
166
|
@hide="onDialogHide"
|
|
167
167
|
cancel
|
|
168
168
|
v-bind="dialogProps"
|
|
@@ -986,6 +986,31 @@ export default {
|
|
|
986
986
|
hidePopupRef()
|
|
987
987
|
}
|
|
988
988
|
|
|
989
|
+
/**
|
|
990
|
+
* 对话框显示回调
|
|
991
|
+
*/
|
|
992
|
+
let _dialogShowed = false
|
|
993
|
+
function onDialogShow() {
|
|
994
|
+
|
|
995
|
+
if ($n_isFunction(props.request)) {
|
|
996
|
+
|
|
997
|
+
if (_dialogShowed) {
|
|
998
|
+
return
|
|
999
|
+
}
|
|
1000
|
+
_dialogShowed = true
|
|
1001
|
+
|
|
1002
|
+
// 表格重新加载
|
|
1003
|
+
$table.tableReload()
|
|
1004
|
+
.finally()
|
|
1005
|
+
|
|
1006
|
+
return
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
// 表格加载(只加载一次)
|
|
1010
|
+
$table.tableLoad()
|
|
1011
|
+
.finally()
|
|
1012
|
+
}
|
|
1013
|
+
|
|
989
1014
|
/**
|
|
990
1015
|
* 对话框隐藏后回调
|
|
991
1016
|
*/
|
|
@@ -1158,6 +1183,8 @@ export default {
|
|
|
1158
1183
|
onShowDialog,
|
|
1159
1184
|
// 对话框显示前回调
|
|
1160
1185
|
onDialogBeforeShow,
|
|
1186
|
+
// 对话框显示回调
|
|
1187
|
+
onDialogShow,
|
|
1161
1188
|
// 对话框隐藏后回调
|
|
1162
1189
|
onDialogHide,
|
|
1163
1190
|
// 对话框点击确认回调
|