@netang/quasar 0.0.99 → 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="tableLoad"
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
  // 对话框点击确认回调
@@ -89,11 +89,10 @@
89
89
  @row-dblclick="currentTableRowDblclick"
90
90
  @request="tableRequest"
91
91
  flat
92
- :virtual-scroll="{
93
- virtualScrollSliceRatioBefore: 20,
94
- virtualScrollSliceSize: 50,
95
- virtualScrollSliceRatioAfter: 20,
96
- }"
92
+ virtual-scroll
93
+ :virtual-scroll-slice-ratio-before="20"
94
+ :virtual-scroll-slice-size="50"
95
+ :virtual-scroll-slice-ratio-after="20"
97
96
  :dense="dense"
98
97
  v-bind="$attrs"
99
98
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netang/quasar",
3
- "version": "0.0.99",
3
+ "version": "0.0.101",
4
4
  "description": "netang-quasar",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"