vxe-table 3.14.0-beta.1 → 3.14.0-beta.11
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.
- package/es/grid/src/grid.js +102 -110
- package/es/locale/lang/ar-EG.js +3 -0
- package/es/locale/lang/de-DE.js +3 -0
- package/es/locale/lang/en-US.js +3 -0
- package/es/locale/lang/es-ES.js +3 -0
- package/es/locale/lang/fr-FR.js +3 -0
- package/es/locale/lang/hu-HU.js +3 -0
- package/es/locale/lang/hy-AM.js +3 -0
- package/es/locale/lang/id-ID.js +3 -0
- package/es/locale/lang/it-IT.js +3 -0
- package/es/locale/lang/ja-JP.js +3 -0
- package/es/locale/lang/ko-KR.js +3 -0
- package/es/locale/lang/nb-NO.js +3 -0
- package/es/locale/lang/pt-BR.js +3 -0
- package/es/locale/lang/ru-RU.js +3 -0
- package/es/locale/lang/th-TH.js +3 -0
- package/es/locale/lang/ug-CN.js +3 -0
- package/es/locale/lang/uk-UA.js +3 -0
- package/es/locale/lang/vi-VN.js +3 -0
- package/es/locale/lang/zh-CHT.js +3 -0
- package/es/locale/lang/zh-CN.js +3 -0
- package/es/style.css +1 -1
- package/es/table/module/custom/panel.js +25 -27
- package/es/table/module/export/export-panel.js +22 -24
- package/es/table/module/export/import-panel.js +14 -16
- package/es/table/module/export/mixin.js +15 -31
- package/es/table/module/filter/panel.js +12 -2
- package/es/table/module/keyboard/mixin.js +86 -21
- package/es/table/module/validator/mixin.js +1 -3
- package/es/table/render/index.js +90 -61
- package/es/table/src/body.js +11 -6
- package/es/table/src/columnInfo.js +30 -32
- package/es/table/src/footer.js +7 -2
- package/es/table/src/methods.js +432 -224
- package/es/table/src/props.js +4 -0
- package/es/table/src/table.js +44 -24
- package/es/table/src/util.js +40 -12
- package/es/toolbar/src/toolbar.js +18 -26
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +109 -127
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +1023 -652
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +3 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/de-DE.js +3 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/en-US.js +3 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +3 -0
- package/lib/locale/lang/es-ES.js +3 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +3 -0
- package/lib/locale/lang/fr-FR.js +3 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/hu-HU.js +3 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +3 -0
- package/lib/locale/lang/hy-AM.js +3 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/id-ID.js +3 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/it-IT.js +3 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +3 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +3 -0
- package/lib/locale/lang/ko-KR.js +3 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +3 -0
- package/lib/locale/lang/nb-NO.js +3 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +3 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +3 -0
- package/lib/locale/lang/ru-RU.js +3 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +3 -0
- package/lib/locale/lang/th-TH.js +3 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/ug-CN.js +3 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/uk-UA.js +3 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +3 -0
- package/lib/locale/lang/vi-VN.js +3 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +3 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +3 -0
- package/lib/locale/lang/zh-CN.js +3 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +3 -0
- package/lib/style.css +1 -1
- package/lib/table/module/custom/panel.js +31 -33
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/export/export-panel.js +22 -24
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/import-panel.js +14 -16
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/table/module/export/mixin.js +15 -31
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/module/filter/panel.js +8 -2
- package/lib/table/module/filter/panel.min.js +1 -1
- package/lib/table/module/keyboard/mixin.js +89 -25
- package/lib/table/module/keyboard/mixin.min.js +1 -1
- package/lib/table/module/validator/mixin.js +1 -3
- package/lib/table/module/validator/mixin.min.js +1 -1
- package/lib/table/render/index.js +98 -66
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/body.js +10 -5
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/columnInfo.js +32 -34
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/footer.js +7 -2
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/methods.js +471 -229
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/props.js +4 -0
- package/lib/table/src/props.min.js +1 -1
- package/lib/table/src/table.js +41 -21
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +44 -11
- package/lib/table/src/util.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +18 -26
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +114 -119
- package/packages/locale/lang/ar-EG.ts +3 -0
- package/packages/locale/lang/de-DE.ts +3 -0
- package/packages/locale/lang/en-US.ts +3 -0
- package/packages/locale/lang/es-ES.ts +3 -0
- package/packages/locale/lang/fr-FR.ts +3 -0
- package/packages/locale/lang/hu-HU.ts +3 -0
- package/packages/locale/lang/hy-AM.ts +3 -0
- package/packages/locale/lang/id-ID.ts +3 -0
- package/packages/locale/lang/it-IT.ts +3 -0
- package/packages/locale/lang/ja-JP.ts +3 -0
- package/packages/locale/lang/ko-KR.ts +3 -0
- package/packages/locale/lang/nb-NO.ts +3 -0
- package/packages/locale/lang/pt-BR.ts +3 -0
- package/packages/locale/lang/ru-RU.ts +3 -0
- package/packages/locale/lang/th-TH.ts +3 -0
- package/packages/locale/lang/ug-CN.ts +3 -0
- package/packages/locale/lang/uk-UA.ts +3 -0
- package/packages/locale/lang/vi-VN.ts +3 -0
- package/packages/locale/lang/zh-CHT.ts +3 -0
- package/packages/locale/lang/zh-CN.ts +3 -0
- package/packages/table/module/custom/panel.ts +25 -27
- package/packages/table/module/export/export-panel.ts +22 -24
- package/packages/table/module/export/import-panel.ts +14 -16
- package/packages/table/module/export/mixin.ts +15 -31
- package/packages/table/module/filter/panel.ts +12 -2
- package/packages/table/module/keyboard/mixin.ts +94 -27
- package/packages/table/module/validator/mixin.ts +1 -3
- package/packages/table/render/index.ts +89 -59
- package/packages/table/src/body.ts +10 -5
- package/packages/table/src/columnInfo.ts +30 -32
- package/packages/table/src/footer.ts +7 -2
- package/packages/table/src/methods.ts +468 -234
- package/packages/table/src/props.ts +16 -12
- package/packages/table/src/table.ts +49 -21
- package/packages/table/src/util.ts +43 -11
- package/packages/toolbar/src/toolbar.ts +18 -26
- /package/es/{iconfont.1741051885975.ttf → iconfont.1741687543075.ttf} +0 -0
- /package/es/{iconfont.1741051885975.woff → iconfont.1741687543075.woff} +0 -0
- /package/es/{iconfont.1741051885975.woff2 → iconfont.1741687543075.woff2} +0 -0
- /package/lib/{iconfont.1741051885975.ttf → iconfont.1741687543075.ttf} +0 -0
- /package/lib/{iconfont.1741051885975.woff → iconfont.1741687543075.woff} +0 -0
- /package/lib/{iconfont.1741051885975.woff2 → iconfont.1741687543075.woff2} +0 -0
package/es/grid/src/grid.js
CHANGED
|
@@ -66,9 +66,7 @@ function getFuncSlot($xeGrid, optSlots, slotKey) {
|
|
|
66
66
|
return slots[funcSlot];
|
|
67
67
|
}
|
|
68
68
|
else {
|
|
69
|
-
|
|
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
|
|
254
|
-
const
|
|
255
|
-
const
|
|
256
|
-
const
|
|
257
|
-
|
|
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 }
|
|
281
|
+
? pagerSlot.call($xeGrid, { $grid: $xeGrid })
|
|
264
282
|
: [
|
|
265
283
|
VxeUIPagerComponent
|
|
266
284
|
? h(VxeUIPagerComponent, {
|
|
267
|
-
|
|
285
|
+
ref: 'refPager',
|
|
286
|
+
props: Object.assign(Object.assign({}, pagerOpts), (proxyConfig && isEnableConf(proxyOpts) ? reactData.tablePage : {})),
|
|
268
287
|
on: {
|
|
269
|
-
'page-change'
|
|
288
|
+
'page-change'(params) {
|
|
289
|
+
pageChangeEvent($xeGrid, params);
|
|
290
|
+
}
|
|
270
291
|
},
|
|
271
|
-
scopedSlots:
|
|
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
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
if (
|
|
551
|
-
|
|
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
|
-
|
|
556
|
-
|
|
557
|
-
|
|
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
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 (
|
|
886
|
-
|
|
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 (
|
|
908
|
-
|
|
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 (
|
|
925
|
-
|
|
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
|
-
|
|
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 (
|
|
976
|
-
|
|
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 (
|
|
998
|
-
|
|
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 (
|
|
1014
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 (
|
|
1068
|
-
|
|
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 (
|
|
1121
|
-
|
|
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;
|
package/es/locale/lang/ar-EG.js
CHANGED
package/es/locale/lang/de-DE.js
CHANGED
package/es/locale/lang/en-US.js
CHANGED
package/es/locale/lang/es-ES.js
CHANGED
package/es/locale/lang/fr-FR.js
CHANGED
package/es/locale/lang/hu-HU.js
CHANGED
package/es/locale/lang/hy-AM.js
CHANGED
package/es/locale/lang/id-ID.js
CHANGED
package/es/locale/lang/it-IT.js
CHANGED
package/es/locale/lang/ja-JP.js
CHANGED
package/es/locale/lang/ko-KR.js
CHANGED
package/es/locale/lang/nb-NO.js
CHANGED
package/es/locale/lang/pt-BR.js
CHANGED
package/es/locale/lang/ru-RU.js
CHANGED
package/es/locale/lang/th-TH.js
CHANGED
package/es/locale/lang/ug-CN.js
CHANGED
package/es/locale/lang/uk-UA.js
CHANGED
package/es/locale/lang/vi-VN.js
CHANGED
package/es/locale/lang/zh-CHT.js
CHANGED