vxe-table 3.21.16 → 3.21.17
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 +17 -19
- package/es/style.css +1 -1
- package/es/table/module/custom/panel.js +2 -1
- package/es/table/module/edit/mixin.js +2 -1
- package/es/table/module/export/export-panel.js +2 -1
- package/es/table/module/export/import-panel.js +2 -1
- package/es/table/module/export/mixin.js +2 -1
- package/es/table/module/filter/panel.js +2 -1
- package/es/table/module/menu/mixin.js +2 -1
- package/es/table/module/validator/mixin.js +2 -1
- package/es/table/render/index.js +2 -1
- package/es/table/src/columnInfo.js +2 -1
- package/es/table/src/methods.js +2 -1
- package/es/table/src/table.js +2 -1
- package/es/table/src/util.js +2 -1
- package/es/toolbar/src/toolbar.js +19 -21
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +12 -3
- package/lib/grid/src/grid.js +24 -21
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +278 -219
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/custom/panel.js +8 -5
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/mixin.js +19 -15
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/module/export/export-panel.js +8 -5
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/import-panel.js +6 -3
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/table/module/export/mixin.js +18 -14
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/module/filter/panel.js +4 -1
- package/lib/table/module/filter/panel.min.js +1 -1
- package/lib/table/module/menu/mixin.js +5 -2
- package/lib/table/module/menu/mixin.min.js +1 -1
- package/lib/table/module/validator/mixin.js +8 -4
- package/lib/table/module/validator/mixin.min.js +1 -1
- package/lib/table/render/index.js +4 -1
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/columnInfo.js +15 -11
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/methods.js +40 -40
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +78 -74
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +6 -2
- package/lib/table/src/util.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +24 -21
- 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 +13 -3
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +20 -16
- package/packages/table/module/custom/panel.ts +3 -1
- package/packages/table/module/edit/mixin.ts +3 -1
- package/packages/table/module/export/export-panel.ts +3 -1
- package/packages/table/module/export/import-panel.ts +3 -1
- package/packages/table/module/export/mixin.ts +3 -1
- package/packages/table/module/filter/panel.ts +3 -1
- package/packages/table/module/menu/mixin.ts +3 -1
- package/packages/table/module/validator/mixin.ts +3 -1
- package/packages/table/render/index.ts +3 -1
- package/packages/table/src/columnInfo.ts +3 -1
- package/packages/table/src/methods.ts +3 -1
- package/packages/table/src/table.ts +3 -1
- package/packages/table/src/util.ts +3 -1
- package/packages/toolbar/src/toolbar.ts +23 -18
- package/packages/ui/src/log.ts +13 -3
- /package/es/{iconfont.1781753790081.ttf → iconfont.1781876872867.ttf} +0 -0
- /package/es/{iconfont.1781753790081.woff → iconfont.1781876872867.woff} +0 -0
- /package/es/{iconfont.1781753790081.woff2 → iconfont.1781876872867.woff2} +0 -0
- /package/lib/{iconfont.1781753790081.ttf → iconfont.1781876872867.ttf} +0 -0
- /package/lib/{iconfont.1781753790081.woff → iconfont.1781876872867.woff} +0 -0
- /package/lib/{iconfont.1781753790081.woff2 → iconfont.1781876872867.woff2} +0 -0
package/es/grid/src/grid.js
CHANGED
|
@@ -4,10 +4,11 @@ import { getLastZIndex, nextZIndex, isEnableConf } from '../../ui/src/utils';
|
|
|
4
4
|
import { getOffsetHeight, getPaddingTopBottomSize, getDomNode, toCssUnit } from '../../ui/src/dom';
|
|
5
5
|
import { VxeUI } from '../../ui';
|
|
6
6
|
import { getSlotVNs } from '../../ui/src/vn';
|
|
7
|
-
import {
|
|
7
|
+
import { createComponentLog } from '../../ui/src/log';
|
|
8
8
|
import { tableProps } from '../../table/src/props';
|
|
9
9
|
import VxeTableComponent from '../../table/src/table';
|
|
10
10
|
import VxeToolbarComponent from '../../toolbar/src/toolbar';
|
|
11
|
+
const { warnLog, errLog } = createComponentLog('grid');
|
|
11
12
|
const { getConfig, getI18n, commands, globalEvents, globalMixins, createEvent, GLOBAL_EVENT_KEYS, renderEmptyElement } = VxeUI;
|
|
12
13
|
const tableMethods = {};
|
|
13
14
|
const propKeys = Object.keys(tableProps);
|
|
@@ -83,12 +84,8 @@ export default {
|
|
|
83
84
|
data() {
|
|
84
85
|
const xID = XEUtils.uniqueId();
|
|
85
86
|
const reactData = createReactData();
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
xID,
|
|
89
|
-
reactData,
|
|
90
|
-
internalData
|
|
91
|
-
};
|
|
87
|
+
return Object.assign(Object.assign({}, {}), { xID,
|
|
88
|
+
reactData });
|
|
92
89
|
},
|
|
93
90
|
computed: Object.assign(Object.assign({}, {}), { isRespMsg() {
|
|
94
91
|
const $xeGrid = this;
|
|
@@ -768,7 +765,7 @@ export default {
|
|
|
768
765
|
});
|
|
769
766
|
}
|
|
770
767
|
else {
|
|
771
|
-
errLog('vxe.error.notFunc', ['
|
|
768
|
+
errLog('vxe.error.notFunc', ['proxy-config.ajax.query']);
|
|
772
769
|
}
|
|
773
770
|
break;
|
|
774
771
|
}
|
|
@@ -808,7 +805,7 @@ export default {
|
|
|
808
805
|
});
|
|
809
806
|
}
|
|
810
807
|
else {
|
|
811
|
-
errLog('vxe.error.notFunc', ['
|
|
808
|
+
errLog('vxe.error.notFunc', ['proxy-config.ajax.queryFooter']);
|
|
812
809
|
}
|
|
813
810
|
break;
|
|
814
811
|
}
|
|
@@ -883,7 +880,7 @@ export default {
|
|
|
883
880
|
}
|
|
884
881
|
}
|
|
885
882
|
else {
|
|
886
|
-
errLog('vxe.error.notFunc', ['
|
|
883
|
+
errLog('vxe.error.notFunc', ['proxy-config.ajax.delete']);
|
|
887
884
|
}
|
|
888
885
|
break;
|
|
889
886
|
}
|
|
@@ -971,7 +968,7 @@ export default {
|
|
|
971
968
|
});
|
|
972
969
|
}
|
|
973
970
|
else {
|
|
974
|
-
errLog('vxe.error.notFunc', ['
|
|
971
|
+
errLog('vxe.error.notFunc', ['proxy-config.ajax.save']);
|
|
975
972
|
}
|
|
976
973
|
break;
|
|
977
974
|
}
|
|
@@ -983,7 +980,7 @@ export default {
|
|
|
983
980
|
tCommandMethod({ code, button, $grid: $xeGrid, $table: $xeTable, $gantt: null }, ...args);
|
|
984
981
|
}
|
|
985
982
|
else {
|
|
986
|
-
errLog('vxe.error.notCommands', [
|
|
983
|
+
errLog('vxe.error.notCommands', [code]);
|
|
987
984
|
}
|
|
988
985
|
}
|
|
989
986
|
}
|
|
@@ -1359,7 +1356,7 @@ export default {
|
|
|
1359
1356
|
XEUtils.each(column.slots, (func) => {
|
|
1360
1357
|
if (!XEUtils.isFunction(func)) {
|
|
1361
1358
|
if (!slots[func]) {
|
|
1362
|
-
errLog('vxe.error.notSlot', [
|
|
1359
|
+
errLog('vxe.error.notSlot', [func]);
|
|
1363
1360
|
}
|
|
1364
1361
|
}
|
|
1365
1362
|
});
|
|
@@ -1383,7 +1380,7 @@ export default {
|
|
|
1383
1380
|
slotConf[slotKey] = slots[slotFunc];
|
|
1384
1381
|
}
|
|
1385
1382
|
else {
|
|
1386
|
-
errLog('vxe.error.notSlot', [
|
|
1383
|
+
errLog('vxe.error.notSlot', [slotFunc]);
|
|
1387
1384
|
}
|
|
1388
1385
|
}
|
|
1389
1386
|
else {
|
|
@@ -1443,7 +1440,7 @@ export default {
|
|
|
1443
1440
|
return slots[funcSlot];
|
|
1444
1441
|
}
|
|
1445
1442
|
else {
|
|
1446
|
-
errLog('vxe.error.notSlot', [
|
|
1443
|
+
errLog('vxe.error.notSlot', [funcSlot]);
|
|
1447
1444
|
}
|
|
1448
1445
|
}
|
|
1449
1446
|
else {
|
|
@@ -1671,7 +1668,7 @@ export default {
|
|
|
1671
1668
|
childVNs.push($xeGrid.renderPager(h));
|
|
1672
1669
|
break;
|
|
1673
1670
|
default:
|
|
1674
|
-
errLog('vxe.error.notProp', [`
|
|
1671
|
+
errLog('vxe.error.notProp', [`layouts -> ${key}`]);
|
|
1675
1672
|
break;
|
|
1676
1673
|
}
|
|
1677
1674
|
});
|
|
@@ -1738,19 +1735,20 @@ export default {
|
|
|
1738
1735
|
const VxeUIPagerComponent = VxeUI.getComponent('VxePager');
|
|
1739
1736
|
const $xeGrid = this;
|
|
1740
1737
|
const props = $xeGrid;
|
|
1738
|
+
$xeGrid.internalData = createInternalData();
|
|
1741
1739
|
const proxyOpts = $xeGrid.computeProxyOpts;
|
|
1742
1740
|
// const { data, formOpts, proxyOpts, proxyConfig } = this
|
|
1743
1741
|
// if (proxyConfig && (data || (proxyOpts.form && formOpts.data))) {
|
|
1744
1742
|
// errLog('vxe.error.errConflicts', ['[grid] data', 'proxy-config'])
|
|
1745
1743
|
// }
|
|
1746
1744
|
if (props.toolbar) {
|
|
1747
|
-
errLog('vxe.error.delProp', ['
|
|
1745
|
+
errLog('vxe.error.delProp', ['toolbar', 'toolbar-config']);
|
|
1748
1746
|
}
|
|
1749
1747
|
if (props.toolbarConfig && !XEUtils.isObject(props.toolbarConfig)) {
|
|
1750
|
-
errLog('vxe.error.errProp', [`
|
|
1748
|
+
errLog('vxe.error.errProp', [`toolbar-config=${props.toolbarConfig}`, 'toolbar-config={}']);
|
|
1751
1749
|
}
|
|
1752
1750
|
if (proxyOpts.props) {
|
|
1753
|
-
warnLog('vxe.error.delProp', ['
|
|
1751
|
+
warnLog('vxe.error.delProp', ['proxy-config.props', 'proxy-config.response']);
|
|
1754
1752
|
}
|
|
1755
1753
|
$xeGrid.$nextTick(() => {
|
|
1756
1754
|
if (props.formConfig) {
|