vxe-table 3.18.12 → 3.18.14
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 +14 -14
- package/es/style.css +1 -1
- package/es/table/render/index.js +27 -0
- package/es/toolbar/src/toolbar.js +23 -65
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +14 -14
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +83 -81
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/render/index.js +42 -0
- package/lib/table/render/index.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +23 -65
- 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 +1 -1
- package/packages/grid/src/grid.ts +14 -14
- package/packages/table/module/keyboard/mixin.ts +2 -2
- package/packages/table/render/index.ts +34 -0
- package/packages/toolbar/src/toolbar.ts +23 -65
- /package/es/{iconfont.1757987563312.ttf → iconfont.1758158482285.ttf} +0 -0
- /package/es/{iconfont.1757987563312.woff → iconfont.1758158482285.woff} +0 -0
- /package/es/{iconfont.1757987563312.woff2 → iconfont.1758158482285.woff2} +0 -0
- /package/lib/{iconfont.1757987563312.ttf → iconfont.1758158482285.ttf} +0 -0
- /package/lib/{iconfont.1757987563312.woff → iconfont.1758158482285.woff} +0 -0
- /package/lib/{iconfont.1757987563312.woff2 → iconfont.1758158482285.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2002,7 +2002,7 @@ function getClass(property, params) {
|
|
|
2002
2002
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2003
2003
|
|
|
2004
2004
|
|
|
2005
|
-
const version = "3.18.
|
|
2005
|
+
const version = "3.18.14";
|
|
2006
2006
|
core_.VxeUI.version = version;
|
|
2007
2007
|
core_.VxeUI.tableVersion = version;
|
|
2008
2008
|
core_.VxeUI.setConfig({
|
|
@@ -2686,7 +2686,7 @@ function isNodeElement(elem) {
|
|
|
2686
2686
|
const {
|
|
2687
2687
|
log: log_log
|
|
2688
2688
|
} = core_.VxeUI;
|
|
2689
|
-
const log_version = `table v${"3.18.
|
|
2689
|
+
const log_version = `table v${"3.18.14"}`;
|
|
2690
2690
|
const warnLog = log_log.create('warn', log_version);
|
|
2691
2691
|
const errLog = log_log.create('error', log_version);
|
|
2692
2692
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -32223,7 +32223,7 @@ function toolbar_createInternalData() {
|
|
|
32223
32223
|
if ($xeGGWrapper) {
|
|
32224
32224
|
$xeGGWrapper.triggerZoomEvent($event);
|
|
32225
32225
|
} else {
|
|
32226
|
-
warnLog('vxe.error.notProp', ['zoom']);
|
|
32226
|
+
warnLog('vxe.error.notProp', ['[toolbar] zoom']);
|
|
32227
32227
|
}
|
|
32228
32228
|
},
|
|
32229
32229
|
importEvent() {
|
|
@@ -32374,7 +32374,7 @@ function toolbar_createInternalData() {
|
|
|
32374
32374
|
if (tCommandMethod) {
|
|
32375
32375
|
tCommandMethod(params);
|
|
32376
32376
|
} else {
|
|
32377
|
-
errLog('vxe.error.notCommands', [code]);
|
|
32377
|
+
errLog('vxe.error.notCommands', [`[toolbar] ${code}`]);
|
|
32378
32378
|
}
|
|
32379
32379
|
}
|
|
32380
32380
|
$xeToolbar.dispatchEvent('button-click', params, $event);
|
|
@@ -32418,7 +32418,7 @@ function toolbar_createInternalData() {
|
|
|
32418
32418
|
if (tCommandMethod) {
|
|
32419
32419
|
tCommandMethod(params);
|
|
32420
32420
|
} else {
|
|
32421
|
-
errLog('vxe.error.notCommands', [code]);
|
|
32421
|
+
errLog('vxe.error.notCommands', [`[toolbar] ${code}`]);
|
|
32422
32422
|
}
|
|
32423
32423
|
}
|
|
32424
32424
|
$xeToolbar.dispatchEvent('tool-click', params, $event);
|
|
@@ -32444,22 +32444,10 @@ function toolbar_createInternalData() {
|
|
|
32444
32444
|
}
|
|
32445
32445
|
return VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
32446
32446
|
key: index,
|
|
32447
|
-
props: {
|
|
32448
|
-
disabled: child.disabled,
|
|
32449
|
-
loading: child.loading,
|
|
32450
|
-
type: child.type,
|
|
32451
|
-
mode: child.mode,
|
|
32452
|
-
icon: child.icon,
|
|
32453
|
-
circle: child.circle,
|
|
32454
|
-
round: child.round,
|
|
32455
|
-
status: child.status,
|
|
32447
|
+
props: Object.assign({}, child, {
|
|
32456
32448
|
content: child.name,
|
|
32457
|
-
|
|
32458
|
-
|
|
32459
|
-
permissionCode: child.permissionCode,
|
|
32460
|
-
prefixTooltip: child.prefixTooltip,
|
|
32461
|
-
suffixTooltip: child.suffixTooltip
|
|
32462
|
-
},
|
|
32449
|
+
options: undefined
|
|
32450
|
+
}),
|
|
32463
32451
|
on: {
|
|
32464
32452
|
click: eventParams => isBtn ? $xeToolbar.btnEvent(eventParams, child) : $xeToolbar.tolEvent(eventParams, child)
|
|
32465
32453
|
}
|
|
@@ -32520,25 +32508,10 @@ function toolbar_createInternalData() {
|
|
|
32520
32508
|
} else {
|
|
32521
32509
|
if (VxeUIButtonComponent) {
|
|
32522
32510
|
btnVNs.push(h(VxeUIButtonComponent, {
|
|
32523
|
-
props: {
|
|
32524
|
-
disabled: item.disabled,
|
|
32525
|
-
loading: item.loading,
|
|
32526
|
-
type: item.type,
|
|
32527
|
-
mode: item.mode,
|
|
32528
|
-
icon: item.icon,
|
|
32529
|
-
circle: item.circle,
|
|
32530
|
-
round: item.round,
|
|
32531
|
-
status: item.status,
|
|
32511
|
+
props: Object.assign({}, item, {
|
|
32532
32512
|
content: item.name,
|
|
32533
|
-
|
|
32534
|
-
|
|
32535
|
-
permissionCode: item.permissionCode,
|
|
32536
|
-
prefixTooltip: item.prefixTooltip,
|
|
32537
|
-
suffixTooltip: item.suffixTooltip,
|
|
32538
|
-
destroyOnClose: item.destroyOnClose,
|
|
32539
|
-
placement: item.placement,
|
|
32540
|
-
transfer: item.transfer
|
|
32541
|
-
},
|
|
32513
|
+
options: undefined
|
|
32514
|
+
}),
|
|
32542
32515
|
on: {
|
|
32543
32516
|
click: eventParams => $xeToolbar.btnEvent(eventParams, item)
|
|
32544
32517
|
},
|
|
@@ -32616,25 +32589,10 @@ function toolbar_createInternalData() {
|
|
|
32616
32589
|
if (VxeUIButtonComponent) {
|
|
32617
32590
|
btnVNs.push(h(VxeUIButtonComponent, {
|
|
32618
32591
|
key: tIndex,
|
|
32619
|
-
props: {
|
|
32620
|
-
disabled: item.disabled,
|
|
32621
|
-
loading: item.loading,
|
|
32622
|
-
type: item.type,
|
|
32623
|
-
mode: item.mode,
|
|
32624
|
-
icon: item.icon,
|
|
32625
|
-
circle: item.circle,
|
|
32626
|
-
round: item.round,
|
|
32627
|
-
status: item.status,
|
|
32592
|
+
props: Object.assign({}, item, {
|
|
32628
32593
|
content: item.name,
|
|
32629
|
-
|
|
32630
|
-
|
|
32631
|
-
permissionCode: item.permissionCode,
|
|
32632
|
-
prefixTooltip: item.prefixTooltip,
|
|
32633
|
-
suffixTooltip: item.suffixTooltip,
|
|
32634
|
-
destroyOnClose: item.destroyOnClose,
|
|
32635
|
-
placement: item.placement,
|
|
32636
|
-
transfer: item.transfer
|
|
32637
|
-
},
|
|
32594
|
+
options: undefined
|
|
32595
|
+
}),
|
|
32638
32596
|
on: {
|
|
32639
32597
|
click: eventParams => $xeToolbar.tolEvent(eventParams, item)
|
|
32640
32598
|
},
|
|
@@ -32834,41 +32792,41 @@ function toolbar_createInternalData() {
|
|
|
32834
32792
|
const $xeTable = $xeToolbar.fintTable();
|
|
32835
32793
|
const queryMethod = refreshOpts.queryMethod || refreshOpts.query;
|
|
32836
32794
|
if (props.refresh && !$xeGGWrapper && !queryMethod) {
|
|
32837
|
-
warnLog('vxe.error.notFunc', ['queryMethod']);
|
|
32795
|
+
warnLog('vxe.error.notFunc', ['[toolbar] queryMethod']);
|
|
32838
32796
|
}
|
|
32839
32797
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.custom)) {
|
|
32840
|
-
warnLog('vxe.error.delProp', ['custom={...}', 'custom=boolean & custom-options={...}']);
|
|
32798
|
+
warnLog('vxe.error.delProp', ['[toolbar] custom={...}', 'custom=boolean & custom-options={...}']);
|
|
32841
32799
|
}
|
|
32842
32800
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.print)) {
|
|
32843
|
-
warnLog('vxe.error.delProp', ['print={...}', 'print=boolean & print-options={...}']);
|
|
32801
|
+
warnLog('vxe.error.delProp', ['[toolbar] print={...}', 'print=boolean & print-options={...}']);
|
|
32844
32802
|
}
|
|
32845
32803
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.export)) {
|
|
32846
|
-
warnLog('vxe.error.delProp', ['export={...}', 'export=boolean & export-options={...}']);
|
|
32804
|
+
warnLog('vxe.error.delProp', ['[toolbar] export={...}', 'export=boolean & export-options={...}']);
|
|
32847
32805
|
}
|
|
32848
32806
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.import)) {
|
|
32849
|
-
warnLog('vxe.error.delProp', ['import={...}', 'import=boolean & import-options={...}']);
|
|
32807
|
+
warnLog('vxe.error.delProp', ['[toolbar] import={...}', 'import=boolean & import-options={...}']);
|
|
32850
32808
|
}
|
|
32851
32809
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.refresh)) {
|
|
32852
|
-
warnLog('vxe.error.delProp', ['refresh={...}', 'refresh=boolean & refresh-options={...}']);
|
|
32810
|
+
warnLog('vxe.error.delProp', ['[toolbar] refresh={...}', 'refresh=boolean & refresh-options={...}']);
|
|
32853
32811
|
}
|
|
32854
32812
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(props.refresh)) {
|
|
32855
|
-
warnLog('vxe.error.delProp', ['zoom={...}', 'zoom=boolean & zoom-options={...}']);
|
|
32813
|
+
warnLog('vxe.error.delProp', ['[toolbar] zoom={...}', 'zoom=boolean & zoom-options={...}']);
|
|
32856
32814
|
}
|
|
32857
32815
|
if ($xeTable) {
|
|
32858
32816
|
$xeTable.connect(this);
|
|
32859
32817
|
}
|
|
32860
32818
|
const customOpts = $xeToolbar.computeCustomOpts;
|
|
32861
32819
|
if (customOpts.isFooter) {
|
|
32862
|
-
warnLog('vxe.error.delProp', ['toolbar.custom.isFooter', 'table.custom-config.showFooter']);
|
|
32820
|
+
warnLog('vxe.error.delProp', ['[toolbar] toolbar.custom.isFooter', 'table.custom-config.showFooter']);
|
|
32863
32821
|
}
|
|
32864
32822
|
if (customOpts.showFooter) {
|
|
32865
|
-
warnLog('vxe.error.delProp', ['toolbar.custom.showFooter', 'table.custom-config.showFooter']);
|
|
32823
|
+
warnLog('vxe.error.delProp', ['[toolbar] toolbar.custom.showFooter', 'table.custom-config.showFooter']);
|
|
32866
32824
|
}
|
|
32867
32825
|
if (customOpts.immediate) {
|
|
32868
|
-
warnLog('vxe.error.delProp', ['toolbar.custom.immediate', 'table.custom-config.immediate']);
|
|
32826
|
+
warnLog('vxe.error.delProp', ['[toolbar] toolbar.custom.immediate', 'table.custom-config.immediate']);
|
|
32869
32827
|
}
|
|
32870
32828
|
if (customOpts.trigger) {
|
|
32871
|
-
warnLog('vxe.error.delProp', ['toolbar.custom.trigger', 'table.custom-config.trigger']);
|
|
32829
|
+
warnLog('vxe.error.delProp', ['[toolbar] toolbar.custom.trigger', 'table.custom-config.trigger']);
|
|
32872
32830
|
}
|
|
32873
32831
|
});
|
|
32874
32832
|
// 使用已安装的组件,如果未安装则不渲染
|
|
@@ -33746,7 +33704,7 @@ function grid_createInternalData() {
|
|
|
33746
33704
|
};
|
|
33747
33705
|
});
|
|
33748
33706
|
} else {
|
|
33749
|
-
errLog('vxe.error.notFunc', ['proxy-config.ajax.query']);
|
|
33707
|
+
errLog('vxe.error.notFunc', ['[grid] proxy-config.ajax.query']);
|
|
33750
33708
|
}
|
|
33751
33709
|
break;
|
|
33752
33710
|
}
|
|
@@ -33843,7 +33801,7 @@ function grid_createInternalData() {
|
|
|
33843
33801
|
}
|
|
33844
33802
|
}
|
|
33845
33803
|
} else {
|
|
33846
|
-
errLog('vxe.error.notFunc', ['proxy-config.ajax.delete']);
|
|
33804
|
+
errLog('vxe.error.notFunc', ['[grid] proxy-config.ajax.delete']);
|
|
33847
33805
|
}
|
|
33848
33806
|
break;
|
|
33849
33807
|
}
|
|
@@ -33956,7 +33914,7 @@ function grid_createInternalData() {
|
|
|
33956
33914
|
}
|
|
33957
33915
|
});
|
|
33958
33916
|
} else {
|
|
33959
|
-
errLog('vxe.error.notFunc', ['proxy-config.ajax.save']);
|
|
33917
|
+
errLog('vxe.error.notFunc', ['[grid] proxy-config.ajax.save']);
|
|
33960
33918
|
}
|
|
33961
33919
|
break;
|
|
33962
33920
|
}
|
|
@@ -33974,7 +33932,7 @@ function grid_createInternalData() {
|
|
|
33974
33932
|
$gantt: null
|
|
33975
33933
|
}, ...args);
|
|
33976
33934
|
} else {
|
|
33977
|
-
errLog('vxe.error.notCommands', [code]);
|
|
33935
|
+
errLog('vxe.error.notCommands', [`[grid] ${code}`]);
|
|
33978
33936
|
}
|
|
33979
33937
|
}
|
|
33980
33938
|
}
|
|
@@ -34364,7 +34322,7 @@ function grid_createInternalData() {
|
|
|
34364
34322
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(column.slots, func => {
|
|
34365
34323
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
34366
34324
|
if (!slots[func]) {
|
|
34367
|
-
errLog('vxe.error.notSlot', [func]);
|
|
34325
|
+
errLog('vxe.error.notSlot', [`[grid] ${func}`]);
|
|
34368
34326
|
}
|
|
34369
34327
|
}
|
|
34370
34328
|
});
|
|
@@ -34387,7 +34345,7 @@ function grid_createInternalData() {
|
|
|
34387
34345
|
if (slots[slotFunc]) {
|
|
34388
34346
|
slotConf[slotKey] = slots[slotFunc];
|
|
34389
34347
|
} else {
|
|
34390
|
-
errLog('vxe.error.notSlot', [slotFunc]);
|
|
34348
|
+
errLog('vxe.error.notSlot', [`[grid] ${slotFunc}`]);
|
|
34391
34349
|
}
|
|
34392
34350
|
} else {
|
|
34393
34351
|
slotConf[slotKey] = slotFunc;
|
|
@@ -34403,10 +34361,10 @@ function grid_createInternalData() {
|
|
|
34403
34361
|
const toolbarOptSlots = toolbarOpts.slots;
|
|
34404
34362
|
const toolbarSlots = {};
|
|
34405
34363
|
if (slots.buttons && (!toolbarOptSlots || toolbarOptSlots.buttons !== 'buttons')) {
|
|
34406
|
-
warnLog('vxe.error.reqProp', ['toolbar-config.slots.buttons']);
|
|
34364
|
+
warnLog('vxe.error.reqProp', ['[grid] toolbar-config.slots.buttons']);
|
|
34407
34365
|
}
|
|
34408
34366
|
if (slots.tools && (!toolbarOptSlots || toolbarOptSlots.tools !== 'tools')) {
|
|
34409
|
-
warnLog('vxe.error.reqProp', ['toolbar-config.slots.tools']);
|
|
34367
|
+
warnLog('vxe.error.reqProp', ['[grid] toolbar-config.slots.tools']);
|
|
34410
34368
|
}
|
|
34411
34369
|
if (toolbarOptSlots) {
|
|
34412
34370
|
const buttonsSlot = $xeGrid.getFuncSlot(toolbarOptSlots, 'buttons');
|
|
@@ -34445,7 +34403,7 @@ function grid_createInternalData() {
|
|
|
34445
34403
|
if (slots[funcSlot]) {
|
|
34446
34404
|
return slots[funcSlot];
|
|
34447
34405
|
} else {
|
|
34448
|
-
errLog('vxe.error.notSlot', [funcSlot]);
|
|
34406
|
+
errLog('vxe.error.notSlot', [`[grid] ${funcSlot}`]);
|
|
34449
34407
|
}
|
|
34450
34408
|
} else {
|
|
34451
34409
|
return funcSlot;
|
|
@@ -34689,7 +34647,7 @@ function grid_createInternalData() {
|
|
|
34689
34647
|
childVNs.push($xeGrid.renderPager(h));
|
|
34690
34648
|
break;
|
|
34691
34649
|
default:
|
|
34692
|
-
errLog('vxe.error.notProp', [`layouts -> ${key}`]);
|
|
34650
|
+
errLog('vxe.error.notProp', [`[grid] layouts -> ${key}`]);
|
|
34693
34651
|
break;
|
|
34694
34652
|
}
|
|
34695
34653
|
});
|
|
@@ -34749,16 +34707,16 @@ function grid_createInternalData() {
|
|
|
34749
34707
|
const proxyOpts = $xeGrid.computeProxyOpts;
|
|
34750
34708
|
// const { data, formOpts, proxyOpts, proxyConfig } = this
|
|
34751
34709
|
// if (proxyConfig && (data || (proxyOpts.form && formOpts.data))) {
|
|
34752
|
-
// errLog('vxe.error.errConflicts', ['grid
|
|
34710
|
+
// errLog('vxe.error.errConflicts', ['[grid] data', 'proxy-config'])
|
|
34753
34711
|
// }
|
|
34754
34712
|
if (props.toolbar) {
|
|
34755
|
-
errLog('vxe.error.delProp', ['grid
|
|
34713
|
+
errLog('vxe.error.delProp', ['[grid] toolbar', 'toolbar-config']);
|
|
34756
34714
|
}
|
|
34757
34715
|
if (props.toolbarConfig && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(props.toolbarConfig)) {
|
|
34758
|
-
errLog('vxe.error.errProp', [`grid
|
|
34716
|
+
errLog('vxe.error.errProp', [`[grid] toolbar-config=${props.toolbarConfig}`, 'toolbar-config={}']);
|
|
34759
34717
|
}
|
|
34760
34718
|
if (proxyOpts.props) {
|
|
34761
|
-
warnLog('vxe.error.delProp', ['proxy-config.props', 'proxy-config.response']);
|
|
34719
|
+
warnLog('vxe.error.delProp', ['[grid] proxy-config.props', 'proxy-config.response']);
|
|
34762
34720
|
}
|
|
34763
34721
|
$xeGrid.$nextTick(() => {
|
|
34764
34722
|
if (props.formConfig) {
|
|
@@ -35899,6 +35857,50 @@ render_renderer.mixin({
|
|
|
35899
35857
|
tableFilterDefaultMethod: handleFilterMethod,
|
|
35900
35858
|
tableExportMethod: handleExportSelectMethod
|
|
35901
35859
|
},
|
|
35860
|
+
VxeText: {
|
|
35861
|
+
renderTableDefault(h, renderOpts, params) {
|
|
35862
|
+
const {
|
|
35863
|
+
$table,
|
|
35864
|
+
row,
|
|
35865
|
+
column
|
|
35866
|
+
} = params;
|
|
35867
|
+
const {
|
|
35868
|
+
props
|
|
35869
|
+
} = renderOpts;
|
|
35870
|
+
const cellLabel = $table.getCellLabel(row, column);
|
|
35871
|
+
return [h(getDefaultComponent(renderOpts), {
|
|
35872
|
+
props: {
|
|
35873
|
+
...(props || {}),
|
|
35874
|
+
content: cellLabel
|
|
35875
|
+
},
|
|
35876
|
+
on: getComponentOns(renderOpts, params)
|
|
35877
|
+
})];
|
|
35878
|
+
}
|
|
35879
|
+
},
|
|
35880
|
+
VxeLink: {
|
|
35881
|
+
renderTableDefault(h, renderOpts, params) {
|
|
35882
|
+
const {
|
|
35883
|
+
$table,
|
|
35884
|
+
row,
|
|
35885
|
+
column
|
|
35886
|
+
} = params;
|
|
35887
|
+
const {
|
|
35888
|
+
props
|
|
35889
|
+
} = renderOpts;
|
|
35890
|
+
const {
|
|
35891
|
+
href
|
|
35892
|
+
} = props || {};
|
|
35893
|
+
const cellLabel = $table.getCellLabel(row, column);
|
|
35894
|
+
return [h(getDefaultComponent(renderOpts), {
|
|
35895
|
+
props: {
|
|
35896
|
+
...(props || {}),
|
|
35897
|
+
content: cellLabel,
|
|
35898
|
+
href: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFormatString(href, params)
|
|
35899
|
+
},
|
|
35900
|
+
on: getComponentOns(renderOpts, params)
|
|
35901
|
+
})];
|
|
35902
|
+
}
|
|
35903
|
+
},
|
|
35902
35904
|
/**
|
|
35903
35905
|
* 已废弃,被 FormatSelect 替换
|
|
35904
35906
|
* @deprecated
|