vxe-table 3.14.0-beta.1 → 3.14.0-beta.10

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.
Files changed (171) hide show
  1. package/es/grid/src/grid.js +102 -110
  2. package/es/locale/lang/ar-EG.js +3 -0
  3. package/es/locale/lang/de-DE.js +3 -0
  4. package/es/locale/lang/en-US.js +3 -0
  5. package/es/locale/lang/es-ES.js +3 -0
  6. package/es/locale/lang/fr-FR.js +3 -0
  7. package/es/locale/lang/hu-HU.js +3 -0
  8. package/es/locale/lang/hy-AM.js +3 -0
  9. package/es/locale/lang/id-ID.js +3 -0
  10. package/es/locale/lang/it-IT.js +3 -0
  11. package/es/locale/lang/ja-JP.js +3 -0
  12. package/es/locale/lang/ko-KR.js +3 -0
  13. package/es/locale/lang/nb-NO.js +3 -0
  14. package/es/locale/lang/pt-BR.js +3 -0
  15. package/es/locale/lang/ru-RU.js +3 -0
  16. package/es/locale/lang/th-TH.js +3 -0
  17. package/es/locale/lang/ug-CN.js +3 -0
  18. package/es/locale/lang/uk-UA.js +3 -0
  19. package/es/locale/lang/vi-VN.js +3 -0
  20. package/es/locale/lang/zh-CHT.js +3 -0
  21. package/es/locale/lang/zh-CN.js +3 -0
  22. package/es/style.css +1 -1
  23. package/es/table/module/custom/panel.js +25 -27
  24. package/es/table/module/export/export-panel.js +22 -24
  25. package/es/table/module/export/import-panel.js +14 -16
  26. package/es/table/module/export/mixin.js +15 -31
  27. package/es/table/module/keyboard/mixin.js +86 -21
  28. package/es/table/module/validator/mixin.js +1 -3
  29. package/es/table/render/index.js +90 -61
  30. package/es/table/src/body.js +11 -6
  31. package/es/table/src/columnInfo.js +30 -32
  32. package/es/table/src/footer.js +7 -2
  33. package/es/table/src/methods.js +424 -221
  34. package/es/table/src/props.js +4 -0
  35. package/es/table/src/table.js +44 -24
  36. package/es/table/src/util.js +40 -12
  37. package/es/toolbar/src/toolbar.js +18 -26
  38. package/es/ui/index.js +1 -1
  39. package/es/ui/src/log.js +1 -1
  40. package/lib/grid/src/grid.js +109 -127
  41. package/lib/grid/src/grid.min.js +1 -1
  42. package/lib/index.umd.js +1007 -648
  43. package/lib/index.umd.min.js +1 -1
  44. package/lib/locale/lang/ar-EG.js +3 -0
  45. package/lib/locale/lang/ar-EG.min.js +1 -1
  46. package/lib/locale/lang/de-DE.js +3 -0
  47. package/lib/locale/lang/de-DE.min.js +1 -1
  48. package/lib/locale/lang/en-US.js +3 -0
  49. package/lib/locale/lang/en-US.min.js +1 -1
  50. package/lib/locale/lang/en-US.umd.js +3 -0
  51. package/lib/locale/lang/es-ES.js +3 -0
  52. package/lib/locale/lang/es-ES.min.js +1 -1
  53. package/lib/locale/lang/es-ES.umd.js +3 -0
  54. package/lib/locale/lang/fr-FR.js +3 -0
  55. package/lib/locale/lang/fr-FR.min.js +1 -1
  56. package/lib/locale/lang/hu-HU.js +3 -0
  57. package/lib/locale/lang/hu-HU.min.js +1 -1
  58. package/lib/locale/lang/hu-HU.umd.js +3 -0
  59. package/lib/locale/lang/hy-AM.js +3 -0
  60. package/lib/locale/lang/hy-AM.min.js +1 -1
  61. package/lib/locale/lang/id-ID.js +3 -0
  62. package/lib/locale/lang/id-ID.min.js +1 -1
  63. package/lib/locale/lang/it-IT.js +3 -0
  64. package/lib/locale/lang/it-IT.min.js +1 -1
  65. package/lib/locale/lang/ja-JP.js +3 -0
  66. package/lib/locale/lang/ja-JP.min.js +1 -1
  67. package/lib/locale/lang/ja-JP.umd.js +3 -0
  68. package/lib/locale/lang/ko-KR.js +3 -0
  69. package/lib/locale/lang/ko-KR.min.js +1 -1
  70. package/lib/locale/lang/ko-KR.umd.js +3 -0
  71. package/lib/locale/lang/nb-NO.js +3 -0
  72. package/lib/locale/lang/nb-NO.min.js +1 -1
  73. package/lib/locale/lang/pt-BR.js +3 -0
  74. package/lib/locale/lang/pt-BR.min.js +1 -1
  75. package/lib/locale/lang/pt-BR.umd.js +3 -0
  76. package/lib/locale/lang/ru-RU.js +3 -0
  77. package/lib/locale/lang/ru-RU.min.js +1 -1
  78. package/lib/locale/lang/ru-RU.umd.js +3 -0
  79. package/lib/locale/lang/th-TH.js +3 -0
  80. package/lib/locale/lang/th-TH.min.js +1 -1
  81. package/lib/locale/lang/ug-CN.js +3 -0
  82. package/lib/locale/lang/ug-CN.min.js +1 -1
  83. package/lib/locale/lang/uk-UA.js +3 -0
  84. package/lib/locale/lang/uk-UA.min.js +1 -1
  85. package/lib/locale/lang/uk-UA.umd.js +3 -0
  86. package/lib/locale/lang/vi-VN.js +3 -0
  87. package/lib/locale/lang/vi-VN.min.js +1 -1
  88. package/lib/locale/lang/zh-CHT.js +3 -0
  89. package/lib/locale/lang/zh-CHT.min.js +1 -1
  90. package/lib/locale/lang/zh-CHT.umd.js +3 -0
  91. package/lib/locale/lang/zh-CN.js +3 -0
  92. package/lib/locale/lang/zh-CN.min.js +1 -1
  93. package/lib/locale/lang/zh-CN.umd.js +3 -0
  94. package/lib/style.css +1 -1
  95. package/lib/table/module/custom/panel.js +31 -33
  96. package/lib/table/module/custom/panel.min.js +1 -1
  97. package/lib/table/module/export/export-panel.js +22 -24
  98. package/lib/table/module/export/export-panel.min.js +1 -1
  99. package/lib/table/module/export/import-panel.js +14 -16
  100. package/lib/table/module/export/import-panel.min.js +1 -1
  101. package/lib/table/module/export/mixin.js +15 -31
  102. package/lib/table/module/export/mixin.min.js +1 -1
  103. package/lib/table/module/keyboard/mixin.js +89 -25
  104. package/lib/table/module/keyboard/mixin.min.js +1 -1
  105. package/lib/table/module/validator/mixin.js +1 -3
  106. package/lib/table/module/validator/mixin.min.js +1 -1
  107. package/lib/table/render/index.js +98 -66
  108. package/lib/table/render/index.min.js +1 -1
  109. package/lib/table/src/body.js +10 -5
  110. package/lib/table/src/body.min.js +1 -1
  111. package/lib/table/src/columnInfo.js +32 -34
  112. package/lib/table/src/columnInfo.min.js +1 -1
  113. package/lib/table/src/footer.js +7 -2
  114. package/lib/table/src/footer.min.js +1 -1
  115. package/lib/table/src/methods.js +463 -227
  116. package/lib/table/src/methods.min.js +1 -1
  117. package/lib/table/src/props.js +4 -0
  118. package/lib/table/src/props.min.js +1 -1
  119. package/lib/table/src/table.js +41 -21
  120. package/lib/table/src/table.min.js +1 -1
  121. package/lib/table/src/util.js +44 -11
  122. package/lib/table/src/util.min.js +1 -1
  123. package/lib/toolbar/src/toolbar.js +18 -26
  124. package/lib/toolbar/src/toolbar.min.js +1 -1
  125. package/lib/ui/index.js +1 -1
  126. package/lib/ui/index.min.js +1 -1
  127. package/lib/ui/src/log.js +1 -1
  128. package/lib/ui/src/log.min.js +1 -1
  129. package/package.json +2 -2
  130. package/packages/grid/src/grid.ts +114 -119
  131. package/packages/locale/lang/ar-EG.ts +3 -0
  132. package/packages/locale/lang/de-DE.ts +3 -0
  133. package/packages/locale/lang/en-US.ts +3 -0
  134. package/packages/locale/lang/es-ES.ts +3 -0
  135. package/packages/locale/lang/fr-FR.ts +3 -0
  136. package/packages/locale/lang/hu-HU.ts +3 -0
  137. package/packages/locale/lang/hy-AM.ts +3 -0
  138. package/packages/locale/lang/id-ID.ts +3 -0
  139. package/packages/locale/lang/it-IT.ts +3 -0
  140. package/packages/locale/lang/ja-JP.ts +3 -0
  141. package/packages/locale/lang/ko-KR.ts +3 -0
  142. package/packages/locale/lang/nb-NO.ts +3 -0
  143. package/packages/locale/lang/pt-BR.ts +3 -0
  144. package/packages/locale/lang/ru-RU.ts +3 -0
  145. package/packages/locale/lang/th-TH.ts +3 -0
  146. package/packages/locale/lang/ug-CN.ts +3 -0
  147. package/packages/locale/lang/uk-UA.ts +3 -0
  148. package/packages/locale/lang/vi-VN.ts +3 -0
  149. package/packages/locale/lang/zh-CHT.ts +3 -0
  150. package/packages/locale/lang/zh-CN.ts +3 -0
  151. package/packages/table/module/custom/panel.ts +25 -27
  152. package/packages/table/module/export/export-panel.ts +22 -24
  153. package/packages/table/module/export/import-panel.ts +14 -16
  154. package/packages/table/module/export/mixin.ts +15 -31
  155. package/packages/table/module/keyboard/mixin.ts +94 -27
  156. package/packages/table/module/validator/mixin.ts +1 -3
  157. package/packages/table/render/index.ts +89 -59
  158. package/packages/table/src/body.ts +10 -5
  159. package/packages/table/src/columnInfo.ts +30 -32
  160. package/packages/table/src/footer.ts +7 -2
  161. package/packages/table/src/methods.ts +460 -231
  162. package/packages/table/src/props.ts +16 -12
  163. package/packages/table/src/table.ts +49 -21
  164. package/packages/table/src/util.ts +43 -11
  165. package/packages/toolbar/src/toolbar.ts +18 -26
  166. /package/es/{iconfont.1741051885975.ttf → iconfont.1741664483219.ttf} +0 -0
  167. /package/es/{iconfont.1741051885975.woff → iconfont.1741664483219.woff} +0 -0
  168. /package/es/{iconfont.1741051885975.woff2 → iconfont.1741664483219.woff2} +0 -0
  169. /package/lib/{iconfont.1741051885975.ttf → iconfont.1741664483219.ttf} +0 -0
  170. /package/lib/{iconfont.1741051885975.woff → iconfont.1741664483219.woff} +0 -0
  171. /package/lib/{iconfont.1741051885975.woff2 → iconfont.1741664483219.woff2} +0 -0
@@ -66,9 +66,7 @@ function getFuncSlot($xeGrid, optSlots, slotKey) {
66
66
  return slots[funcSlot];
67
67
  }
68
68
  else {
69
- if (process.env.NODE_ENV === 'development') {
70
- errLog('vxe.error.notSlot', [funcSlot]);
71
- }
69
+ errLog('vxe.error.notSlot', [funcSlot]);
72
70
  }
73
71
  }
74
72
  else {
@@ -77,6 +75,26 @@ function getFuncSlot($xeGrid, optSlots, slotKey) {
77
75
  }
78
76
  return null;
79
77
  }
78
+ const getConfigSlot = ($xeGrid, slotConfigs) => {
79
+ const slots = $xeGrid.$scopedSlots;
80
+ const slotConf = {};
81
+ XEUtils.objectMap(slotConfigs, (slotFunc, slotKey) => {
82
+ if (slotFunc) {
83
+ if (XEUtils.isString(slotFunc)) {
84
+ if (slots[slotFunc]) {
85
+ slotConf[slotKey] = slots[slotFunc];
86
+ }
87
+ else {
88
+ errLog('vxe.error.notSlot', [slotFunc]);
89
+ }
90
+ }
91
+ else {
92
+ slotConf[slotKey] = slotFunc;
93
+ }
94
+ }
95
+ });
96
+ return slotConf;
97
+ };
80
98
  function getToolbarSlots(_vm) {
81
99
  const { $scopedSlots, toolbarOpts } = _vm;
82
100
  const toolbarOptSlots = toolbarOpts.slots;
@@ -103,24 +121,6 @@ function getToolbarSlots(_vm) {
103
121
  }
104
122
  return slots;
105
123
  }
106
- function getPagerSlots(_vm) {
107
- const { pagerOpts } = _vm;
108
- const pagerOptSlots = pagerOpts.slots;
109
- const slots = {};
110
- let leftSlot;
111
- let rightSlot;
112
- if (pagerOptSlots) {
113
- leftSlot = getFuncSlot(_vm, pagerOptSlots, 'left');
114
- rightSlot = getFuncSlot(_vm, pagerOptSlots, 'right');
115
- if (leftSlot) {
116
- slots.left = leftSlot;
117
- }
118
- if (rightSlot) {
119
- slots.right = rightSlot;
120
- }
121
- }
122
- return slots;
123
- }
124
124
  function getTableOns(_vm) {
125
125
  const { $listeners, proxyConfig, proxyOpts } = _vm;
126
126
  const ons = {};
@@ -139,6 +139,22 @@ function getTableOns(_vm) {
139
139
  }
140
140
  return ons;
141
141
  }
142
+ function pageChangeEvent($xeGrid, params) {
143
+ const props = $xeGrid;
144
+ const reactData = $xeGrid;
145
+ const { proxyConfig } = props;
146
+ const { tablePage } = reactData;
147
+ const { $event, currentPage, pageSize } = params;
148
+ const proxyOpts = $xeGrid.computeProxyOpts;
149
+ tablePage.currentPage = currentPage;
150
+ tablePage.pageSize = pageSize;
151
+ $xeGrid.dispatchEvent('page-change', params, $event);
152
+ if (proxyConfig && isEnableConf(proxyOpts)) {
153
+ $xeGrid.commitProxy('query').then((rest) => {
154
+ $xeGrid.dispatchEvent('proxy-query', rest, $event);
155
+ });
156
+ }
157
+ }
142
158
  /**
143
159
  * 渲染表单
144
160
  */
@@ -250,25 +266,30 @@ function renderBottom(h, _vm) {
250
266
  function renderPager(h, $xeGrid) {
251
267
  const VxeUIPagerComponent = VxeUI.getComponent('VxePager');
252
268
  const props = $xeGrid;
253
- const { pagerConfig, proxyConfig } = props;
254
- const { $scopedSlots, tablePage } = $xeGrid;
255
- const pagerSlot = $scopedSlots.pager;
256
- const hasPager = !!(pagerSlot || isEnableConf(pagerConfig));
257
- if (hasPager) {
269
+ const slots = $xeGrid.$scopedSlots;
270
+ const reactData = $xeGrid;
271
+ const { proxyConfig, pagerConfig } = props;
272
+ const proxyOpts = $xeGrid.computeProxyOpts;
273
+ const pagerOpts = $xeGrid.computePagerOpts;
274
+ const pagerSlot = slots.pager;
275
+ if ((pagerConfig && isEnableConf(pagerOpts)) || slots.pager) {
258
276
  return h('div', {
259
- key: 'pager',
260
277
  ref: 'refPagerWrapper',
278
+ key: 'pager',
261
279
  class: 'vxe-grid--pager-wrapper'
262
280
  }, pagerSlot
263
- ? pagerSlot.call($xeGrid, { $grid: $xeGrid }, h)
281
+ ? pagerSlot.call($xeGrid, { $grid: $xeGrid })
264
282
  : [
265
283
  VxeUIPagerComponent
266
284
  ? h(VxeUIPagerComponent, {
267
- props: Object.assign(Object.assign({}, $xeGrid.pagerOpts), (proxyConfig ? tablePage : {})),
285
+ ref: 'refPager',
286
+ props: Object.assign(Object.assign({}, pagerOpts), (proxyConfig && isEnableConf(proxyOpts) ? reactData.tablePage : {})),
268
287
  on: {
269
- 'page-change': $xeGrid.pageChangeEvent
288
+ 'page-change'(params) {
289
+ pageChangeEvent($xeGrid, params);
290
+ }
270
291
  },
271
- scopedSlots: getPagerSlots($xeGrid)
292
+ scopedSlots: getConfigSlot($xeGrid, pagerOpts.slots)
272
293
  })
273
294
  : renderEmptyElement($xeGrid)
274
295
  ]);
@@ -542,23 +563,21 @@ export default {
542
563
  // warnLog('vxe.error.delProp', ['proxy-config.props', 'proxy-config.response'])
543
564
  // }
544
565
  }
545
- if (process.env.NODE_ENV === 'development') {
546
- // 使用已安装的组件,如果未安装则不渲染
547
- const VxeUIFormComponent = VxeUI.getComponent('VxeForm');
548
- const VxeUIPagerComponent = VxeUI.getComponent('VxePager');
549
- $xeGrid.$nextTick(() => {
550
- if (props.formConfig) {
551
- if (!VxeUIFormComponent) {
552
- errLog('vxe.error.reqComp', ['vxe-form']);
553
- }
566
+ // 使用已安装的组件,如果未安装则不渲染
567
+ const VxeUIFormComponent = VxeUI.getComponent('VxeForm');
568
+ const VxeUIPagerComponent = VxeUI.getComponent('VxePager');
569
+ $xeGrid.$nextTick(() => {
570
+ if (props.formConfig) {
571
+ if (!VxeUIFormComponent) {
572
+ errLog('vxe.error.reqComp', ['vxe-form']);
554
573
  }
555
- if (props.pagerConfig) {
556
- if (!VxeUIPagerComponent) {
557
- errLog('vxe.error.reqComp', ['vxe-pager']);
558
- }
574
+ }
575
+ if (props.pagerConfig) {
576
+ if (!VxeUIPagerComponent) {
577
+ errLog('vxe.error.reqComp', ['vxe-pager']);
559
578
  }
560
- });
561
- }
579
+ }
580
+ });
562
581
  this.initPages();
563
582
  globalEvents.on(this, 'keydown', this.handleGlobalKeydownEvent);
564
583
  },
@@ -602,6 +621,10 @@ export default {
602
621
  }
603
622
  return [];
604
623
  },
624
+ getEl() {
625
+ const $xeGrid = this;
626
+ return $xeGrid.$refs.refElem;
627
+ },
605
628
  /**
606
629
  * 获取需要排除的高度
607
630
  */
@@ -610,20 +633,25 @@ export default {
610
633
  const reactData = $xeGrid;
611
634
  const { isZMax } = reactData;
612
635
  const el = $xeGrid.$refs.refElem;
613
- const formWrapper = $xeGrid.$refs.refFormWrapper;
614
- const toolbarWrapper = $xeGrid.$refs.refToolbarWrapper;
615
- const topWrapper = $xeGrid.$refs.refTopWrapper;
616
- const bottomWrapper = $xeGrid.$refs.refBottomWrapper;
617
- const pagerWrapper = $xeGrid.$refs.refPagerWrapper;
618
- const parentPaddingSize = isZMax ? 0 : getPaddingTopBottomSize(el.parentNode);
619
- return parentPaddingSize + getPaddingTopBottomSize(el) + getOffsetHeight(formWrapper) + getOffsetHeight(toolbarWrapper) + getOffsetHeight(topWrapper) + getOffsetHeight(bottomWrapper) + getOffsetHeight(pagerWrapper);
636
+ if (el) {
637
+ const formWrapper = $xeGrid.$refs.refFormWrapper;
638
+ const toolbarWrapper = $xeGrid.$refs.refToolbarWrapper;
639
+ const topWrapper = $xeGrid.$refs.refTopWrapper;
640
+ const bottomWrapper = $xeGrid.$refs.refBottomWrapper;
641
+ const pagerWrapper = $xeGrid.$refs.refPagerWrapper;
642
+ const parentEl = el.parentElement;
643
+ const parentPaddingSize = isZMax ? 0 : (parentEl ? getPaddingTopBottomSize(parentEl) : 0);
644
+ return parentPaddingSize + getPaddingTopBottomSize(el) + getOffsetHeight(formWrapper) + getOffsetHeight(toolbarWrapper) + getOffsetHeight(topWrapper) + getOffsetHeight(bottomWrapper) + getOffsetHeight(pagerWrapper);
645
+ }
646
+ return 0;
620
647
  },
621
648
  getParentHeight() {
622
649
  const $xeGrid = this;
623
650
  const reactData = $xeGrid;
624
651
  const el = $xeGrid.$refs.refElem;
625
652
  if (el) {
626
- return (reactData.isZMax ? getDomNode().visibleHeight : XEUtils.toNumber(getComputedStyle(el.parentNode).height)) - $xeGrid.getExcludeHeight();
653
+ const parentEl = el.parentElement;
654
+ return (reactData.isZMax ? getDomNode().visibleHeight : (parentEl ? XEUtils.toNumber(getComputedStyle(parentEl).height) : 0)) - $xeGrid.getExcludeHeight();
627
655
  }
628
656
  return 0;
629
657
  },
@@ -854,9 +882,7 @@ export default {
854
882
  });
855
883
  }
856
884
  else {
857
- if (process.env.NODE_ENV === 'development') {
858
- errLog('vxe.error.notFunc', ['proxy-config.ajax.query']);
859
- }
885
+ errLog('vxe.error.notFunc', ['proxy-config.ajax.query']);
860
886
  }
861
887
  break;
862
888
  }
@@ -882,10 +908,8 @@ export default {
882
908
  $xeTable.setPendingRow(removeRecords, false);
883
909
  if (isRespMsg) {
884
910
  // 检测弹窗模块
885
- if (process.env.NODE_ENV === 'development') {
886
- if (!VxeUI.modal) {
887
- errLog('vxe.error.reqModule', ['Modal']);
888
- }
911
+ if (!VxeUI.modal) {
912
+ errLog('vxe.error.reqModule', ['Modal']);
889
913
  }
890
914
  VxeUI.modal.message({ content: this.getRespMsg(rest, 'vxe.grid.delSuccess'), status: 'success' });
891
915
  }
@@ -904,10 +928,8 @@ export default {
904
928
  this.tableLoading = false;
905
929
  if (isRespMsg) {
906
930
  // 检测弹窗模块
907
- if (process.env.NODE_ENV === 'development') {
908
- if (!VxeUI.modal) {
909
- errLog('vxe.error.reqModule', ['Modal']);
910
- }
931
+ if (!VxeUI.modal) {
932
+ errLog('vxe.error.reqModule', ['Modal']);
911
933
  }
912
934
  VxeUI.modal.message({ id: code, content: this.getRespMsg(rest, 'vxe.grid.operError'), status: 'error' });
913
935
  }
@@ -921,19 +943,15 @@ export default {
921
943
  else {
922
944
  if (isActiveMsg) {
923
945
  // 检测弹窗模块
924
- if (process.env.NODE_ENV === 'development') {
925
- if (!VxeUI.modal) {
926
- errLog('vxe.error.reqModule', ['Modal']);
927
- }
946
+ if (!VxeUI.modal) {
947
+ errLog('vxe.error.reqModule', ['Modal']);
928
948
  }
929
949
  VxeUI.modal.message({ id: code, content: getI18n('vxe.grid.selectOneRecord'), status: 'warning' });
930
950
  }
931
951
  }
932
952
  }
933
953
  else {
934
- if (process.env.NODE_ENV === 'development') {
935
- errLog('vxe.error.notFunc', ['proxy-config.ajax.delete']);
936
- }
954
+ errLog('vxe.error.notFunc', ['proxy-config.ajax.delete']);
937
955
  }
938
956
  break;
939
957
  }
@@ -972,10 +990,8 @@ export default {
972
990
  $xeTable.clearPendingRow();
973
991
  if (isRespMsg) {
974
992
  // 检测弹窗模块
975
- if (process.env.NODE_ENV === 'development') {
976
- if (!VxeUI.modal) {
977
- errLog('vxe.error.reqModule', ['Modal']);
978
- }
993
+ if (!VxeUI.modal) {
994
+ errLog('vxe.error.reqModule', ['Modal']);
979
995
  }
980
996
  VxeUI.modal.message({ content: this.getRespMsg(rest, 'vxe.grid.saveSuccess'), status: 'success' });
981
997
  }
@@ -994,10 +1010,8 @@ export default {
994
1010
  this.tableLoading = false;
995
1011
  if (isRespMsg) {
996
1012
  // 检测弹窗模块
997
- if (process.env.NODE_ENV === 'development') {
998
- if (!VxeUI.modal) {
999
- errLog('vxe.error.reqModule', ['Modal']);
1000
- }
1013
+ if (!VxeUI.modal) {
1014
+ errLog('vxe.error.reqModule', ['Modal']);
1001
1015
  }
1002
1016
  VxeUI.modal.message({ id: code, content: this.getRespMsg(rest, 'vxe.grid.operError'), status: 'error' });
1003
1017
  }
@@ -1010,10 +1024,8 @@ export default {
1010
1024
  else {
1011
1025
  if (isActiveMsg) {
1012
1026
  // 检测弹窗模块
1013
- if (process.env.NODE_ENV === 'development') {
1014
- if (!VxeUI.modal) {
1015
- errLog('vxe.error.reqModule', ['Modal']);
1016
- }
1027
+ if (!VxeUI.modal) {
1028
+ errLog('vxe.error.reqModule', ['Modal']);
1017
1029
  }
1018
1030
  VxeUI.modal.message({ id: code, content: getI18n('vxe.grid.dataUnchanged'), status: 'info' });
1019
1031
  }
@@ -1021,9 +1033,7 @@ export default {
1021
1033
  });
1022
1034
  }
1023
1035
  else {
1024
- if (process.env.NODE_ENV === 'development') {
1025
- errLog('vxe.error.notFunc', ['proxy-config.ajax.save']);
1026
- }
1036
+ errLog('vxe.error.notFunc', ['proxy-config.ajax.save']);
1027
1037
  }
1028
1038
  break;
1029
1039
  }
@@ -1034,9 +1044,7 @@ export default {
1034
1044
  gCommandOpts.commandMethod({ code, button, $grid: this, $table: $xeTable }, ...args);
1035
1045
  }
1036
1046
  else {
1037
- if (process.env.NODE_ENV === 'development') {
1038
- errLog('vxe.error.notCommands', [code]);
1039
- }
1047
+ errLog('vxe.error.notCommands', [code]);
1040
1048
  }
1041
1049
  }
1042
1050
  }
@@ -1064,10 +1072,8 @@ export default {
1064
1072
  }
1065
1073
  else {
1066
1074
  // 检测弹窗模块
1067
- if (process.env.NODE_ENV === 'development') {
1068
- if (!VxeUI.modal) {
1069
- errLog('vxe.error.reqModule', ['Modal']);
1070
- }
1075
+ if (!VxeUI.modal) {
1076
+ errLog('vxe.error.reqModule', ['Modal']);
1071
1077
  }
1072
1078
  VxeUI.modal.message({ id: `msg_${code}`, content: getI18n('vxe.grid.selectOneRecord'), status: 'warning' });
1073
1079
  }
@@ -1117,27 +1123,13 @@ export default {
1117
1123
  else {
1118
1124
  if (isActiveMsg) {
1119
1125
  // 检测弹窗模块
1120
- if (process.env.NODE_ENV === 'development') {
1121
- if (!VxeUI.modal) {
1122
- errLog('vxe.error.reqModule', ['Modal']);
1123
- }
1126
+ if (!VxeUI.modal) {
1127
+ errLog('vxe.error.reqModule', ['Modal']);
1124
1128
  }
1125
1129
  VxeUI.modal.message({ id: code, content: getI18n('vxe.grid.selectOneRecord'), status: 'warning' });
1126
1130
  }
1127
1131
  }
1128
1132
  },
1129
- pageChangeEvent(params) {
1130
- const { proxyConfig, tablePage } = this;
1131
- const { currentPage, pageSize } = params;
1132
- tablePage.currentPage = currentPage;
1133
- tablePage.pageSize = pageSize;
1134
- this.$emit('page-change', Object.assign({ $grid: this }, params));
1135
- if (proxyConfig) {
1136
- this.commitProxy('query').then((rest) => {
1137
- this.$emit('proxy-query', Object.assign(Object.assign({}, rest), { $grid: this, $event: params.$event }));
1138
- });
1139
- }
1140
- },
1141
1133
  sortChangeEvent(params) {
1142
1134
  const { $table, column, sortList } = params;
1143
1135
  const isRemote = XEUtils.isBoolean(column.remoteSort) ? column.remoteSort : $table.sortOpts.remote;
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: '冻结在右侧',
238
238
  cancelFixed: '取消冻结列'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} 年'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: '01 月',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: 'rechts eingefroren',
238
238
  cancelFixed: 'Spalte freigeben'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} Jahre'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: 'Januar',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: 'frozen on right',
238
238
  cancelFixed: 'Unfreeze column'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} years'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: 'January',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: 'Freeze on the right',
238
238
  cancelFixed: 'Unfreeze column'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0}'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: 'Enero',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: '冻结在右侧',
238
238
  cancelFixed: '取消冻结列'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} 年'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: '01 月',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: 'lefagyott a jobb oldalon',
238
238
  cancelFixed: 'Oldja fel az oszlopot'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} év'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: 'január',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: '冻结在右侧',
238
238
  cancelFixed: '取消冻结列'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} 年'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: '01 月',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: '冻结在右侧',
238
238
  cancelFixed: '取消冻结列'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} 年'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: '01 月',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: 'congelato a destra',
238
238
  cancelFixed: 'Sblocca colonna'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} anni'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: 'Gennaio',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: '右側に固定',
238
238
  cancelFixed: '列固定を取消'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} 年'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: '1月',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: '오른쪽에 고정',
238
238
  cancelFixed: '고정 해제'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} 년'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: '01 월',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: '冻结在右侧',
238
238
  cancelFixed: '取消冻结列'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} 年'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: '01 月',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: 'Freeze on the right',
238
238
  cancelFixed: 'Unfreeze column'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} лет'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: 'Janeiro',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: 'замер справа',
238
238
  cancelFixed: 'Разморозить столбец'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} лет'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: 'январь',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: 'แช่แข็งทางด้านขวา',
238
238
  cancelFixed: 'เลิกตรึงคอลัมน์'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} ปี'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: 'มกราคม',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: 'ئوڭ ياندا توڭلىتىش',
238
238
  cancelFixed: 'قۇر توڭلىتىشنى ئەمەلدىن قالدۇرۇش'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} يىل'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: '01 ئاي',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: 'Зафіксувати праворуч',
238
238
  cancelFixed: 'Скасувати фіксацію стовпця'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} 年'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: '01 місяць',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: '冻结在右侧',
238
238
  cancelFixed: '取消冻结列'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} 年'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: '01 月',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: '凍結在右側',
238
238
  cancelFixed: '取消凍結列'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} 年'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: '01 月',
@@ -237,6 +237,9 @@ export default {
237
237
  fixedRight: '冻结在右侧',
238
238
  cancelFixed: '取消冻结列'
239
239
  },
240
+ datePicker: {
241
+ yearTitle: '{0} 年'
242
+ },
240
243
  input: {
241
244
  date: {
242
245
  m1: '01 月',