@netang/quasar 0.1.81 → 0.1.82

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.
@@ -30,6 +30,7 @@
30
30
  />
31
31
  <component
32
32
  :is="comp"
33
+ :dialog-close="onDialogCancel"
33
34
  v-bind="props"
34
35
  v-else
35
36
  />
@@ -627,6 +627,24 @@ export default {
627
627
  await $table.tableReload()
628
628
  })
629
629
 
630
+ /**
631
+ * 监听其他值
632
+ */
633
+ // watch([
634
+ // ()=>props.path,
635
+ // ()=>props.url,
636
+ // ()=>props.query,
637
+ // ()=>props.data,
638
+ // ()=>props.showKeys,
639
+ // ()=>props.hideSearchKeys,
640
+ // ], function () {
641
+ // _dialogShowed = false
642
+ // _popupShowed = false
643
+ //
644
+ // }, {
645
+ // deep: true
646
+ // })
647
+
630
648
  // ==========【方法】=============================================================================================
631
649
 
632
650
  /**
@@ -1008,6 +1026,7 @@ export default {
1008
1026
  /**
1009
1027
  * 弹出层显示回调
1010
1028
  */
1029
+ let _popupShowed = false
1011
1030
  function onPopupShow() {
1012
1031
 
1013
1032
  // 显示弹出层
@@ -1024,8 +1043,13 @@ export default {
1024
1043
  return
1025
1044
  }
1026
1045
 
1027
- // 表格加载(只加载一次)
1028
- $table.tableLoad()
1046
+ if (_popupShowed) {
1047
+ return
1048
+ }
1049
+ _popupShowed = true
1050
+
1051
+ // 表格重新加载
1052
+ $table.tableReload()
1029
1053
  .finally()
1030
1054
  }
1031
1055
 
@@ -1063,22 +1087,13 @@ export default {
1063
1087
  return
1064
1088
  }
1065
1089
 
1066
- if ($n_isFunction(props.request)) {
1067
-
1068
- if (_dialogShowed) {
1069
- return
1070
- }
1071
- _dialogShowed = true
1072
-
1073
- // 表格重新加载
1074
- $table.tableReload()
1075
- .finally()
1076
-
1090
+ if (_dialogShowed) {
1077
1091
  return
1078
1092
  }
1093
+ _dialogShowed = true
1079
1094
 
1080
- // 表格加载(只加载一次)
1081
- $table.tableLoad()
1095
+ // 表格重新加载
1096
+ $table.tableReload()
1082
1097
  .finally()
1083
1098
  }
1084
1099
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netang/quasar",
3
- "version": "0.1.81",
3
+ "version": "0.1.82",
4
4
  "description": "netang-quasar",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"