vxe-table 4.17.24 → 4.17.25
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/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/toolbar/src/toolbar.js +91 -67
- package/es/toolbar/style.css +11 -4
- package/es/toolbar/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-toolbar/style.css +11 -4
- package/es/vxe-toolbar/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +123 -99
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +123 -99
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/toolbar/style/style.css +11 -4
- package/lib/toolbar/style/style.min.css +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/lib/vxe-toolbar/style/style.css +11 -4
- package/lib/vxe-toolbar/style/style.min.css +1 -1
- package/package.json +2 -3
- package/packages/table/src/table.ts +1 -1
- package/packages/toolbar/src/toolbar.ts +115 -79
- package/styles/components/toolbar.scss +11 -4
- /package/es/{iconfont.1764729060815.ttf → iconfont.1764811572357.ttf} +0 -0
- /package/es/{iconfont.1764729060815.woff → iconfont.1764811572357.woff} +0 -0
- /package/es/{iconfont.1764729060815.woff2 → iconfont.1764811572357.woff2} +0 -0
- /package/lib/{iconfont.1764729060815.ttf → iconfont.1764811572357.ttf} +0 -0
- /package/lib/{iconfont.1764729060815.woff → iconfont.1764811572357.woff} +0 -0
- /package/lib/{iconfont.1764729060815.woff2 → iconfont.1764811572357.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3141,7 +3141,7 @@ function eqEmptyValue(cellValue) {
|
|
|
3141
3141
|
;// ./packages/ui/index.ts
|
|
3142
3142
|
|
|
3143
3143
|
|
|
3144
|
-
const version = "4.17.
|
|
3144
|
+
const version = "4.17.25";
|
|
3145
3145
|
core_.VxeUI.version = version;
|
|
3146
3146
|
core_.VxeUI.tableVersion = version;
|
|
3147
3147
|
core_.VxeUI.setConfig({
|
|
@@ -3656,7 +3656,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3656
3656
|
const {
|
|
3657
3657
|
log: log_log
|
|
3658
3658
|
} = core_.VxeUI;
|
|
3659
|
-
const log_version = `table v${"4.17.
|
|
3659
|
+
const log_version = `table v${"4.17.25"}`;
|
|
3660
3660
|
const warnLog = log_log.create('warn', log_version);
|
|
3661
3661
|
const errLog = log_log.create('error', log_version);
|
|
3662
3662
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -20417,63 +20417,82 @@ function toolbar_createInternalData() {
|
|
|
20417
20417
|
connectTable
|
|
20418
20418
|
} = internalData;
|
|
20419
20419
|
const $table = connectTable;
|
|
20420
|
+
const buttonsSlot = slots.buttons;
|
|
20420
20421
|
const buttonPrefixSlot = slots.buttonPrefix || slots['button-prefix'];
|
|
20421
20422
|
const buttonSuffixSlot = slots.buttonSuffix || slots['button-suffix'];
|
|
20422
|
-
const
|
|
20423
|
+
const lbVNs = [];
|
|
20423
20424
|
if (buttonPrefixSlot) {
|
|
20424
|
-
|
|
20425
|
+
lbVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
20426
|
+
key: 'tbp',
|
|
20427
|
+
class: 'vxe-button--prefix-wrapper'
|
|
20428
|
+
}, getSlotVNs(buttonPrefixSlot({
|
|
20425
20429
|
buttons: buttons || [],
|
|
20426
20430
|
$grid: $xeGrid,
|
|
20427
20431
|
$gantt: $xeGantt,
|
|
20428
20432
|
$table: $table
|
|
20429
|
-
})));
|
|
20433
|
+
}))));
|
|
20430
20434
|
}
|
|
20431
|
-
if (buttons) {
|
|
20432
|
-
|
|
20433
|
-
|
|
20434
|
-
|
|
20435
|
-
|
|
20436
|
-
|
|
20437
|
-
|
|
20438
|
-
|
|
20439
|
-
if (
|
|
20440
|
-
const
|
|
20441
|
-
|
|
20442
|
-
|
|
20443
|
-
|
|
20444
|
-
|
|
20445
|
-
|
|
20446
|
-
|
|
20447
|
-
|
|
20448
|
-
|
|
20449
|
-
|
|
20450
|
-
|
|
20451
|
-
|
|
20452
|
-
|
|
20453
|
-
|
|
20454
|
-
|
|
20455
|
-
|
|
20456
|
-
|
|
20457
|
-
|
|
20458
|
-
|
|
20459
|
-
|
|
20460
|
-
|
|
20461
|
-
|
|
20462
|
-
|
|
20435
|
+
if (buttons || buttonsSlot) {
|
|
20436
|
+
const btnVNs = [];
|
|
20437
|
+
if (buttons) {
|
|
20438
|
+
buttons.forEach((item, index) => {
|
|
20439
|
+
const {
|
|
20440
|
+
dropdowns,
|
|
20441
|
+
buttonRender
|
|
20442
|
+
} = item;
|
|
20443
|
+
if (item.visible !== false) {
|
|
20444
|
+
const compConf = buttonRender ? toolbar_renderer.get(buttonRender.name) : null;
|
|
20445
|
+
if (buttonRender && compConf && compConf.renderToolbarButton) {
|
|
20446
|
+
const toolbarButtonClassName = compConf.toolbarButtonClassName;
|
|
20447
|
+
const params = {
|
|
20448
|
+
$grid: $xeGrid,
|
|
20449
|
+
$gantt: $xeGantt,
|
|
20450
|
+
$table: $table,
|
|
20451
|
+
button: item
|
|
20452
|
+
};
|
|
20453
|
+
btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
20454
|
+
key: `br${item.code || index}`,
|
|
20455
|
+
class: ['vxe-button--item', toolbarButtonClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarButtonClassName) ? toolbarButtonClassName(params) : toolbarButtonClassName : '']
|
|
20456
|
+
}, getSlotVNs(compConf.renderToolbarButton(buttonRender, params))));
|
|
20457
|
+
} else {
|
|
20458
|
+
if (VxeUIButtonComponent) {
|
|
20459
|
+
btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
20460
|
+
key: `bd${item.code || index}`,
|
|
20461
|
+
...Object.assign({}, item, {
|
|
20462
|
+
content: item.content || item.name,
|
|
20463
|
+
options: undefined
|
|
20464
|
+
}),
|
|
20465
|
+
onClick: eventParams => btnEvent(eventParams, item)
|
|
20466
|
+
}, dropdowns && dropdowns.length ? {
|
|
20467
|
+
dropdowns: () => renderDropdowns(item, true)
|
|
20468
|
+
} : {}));
|
|
20469
|
+
}
|
|
20463
20470
|
}
|
|
20464
20471
|
}
|
|
20465
|
-
}
|
|
20466
|
-
}
|
|
20472
|
+
});
|
|
20473
|
+
}
|
|
20474
|
+
lbVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
20475
|
+
key: 'tti',
|
|
20476
|
+
class: 'vxe-button--item-wrapper'
|
|
20477
|
+
}, buttonsSlot ? getSlotVNs(buttonsSlot({
|
|
20478
|
+
buttons: buttons || [],
|
|
20479
|
+
$grid: $xeGrid,
|
|
20480
|
+
$gantt: $xeGantt,
|
|
20481
|
+
$table: $table
|
|
20482
|
+
})) : btnVNs));
|
|
20467
20483
|
}
|
|
20468
20484
|
if (buttonSuffixSlot) {
|
|
20469
|
-
|
|
20485
|
+
lbVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
20486
|
+
key: 'tbs',
|
|
20487
|
+
class: 'vxe-button--suffix-wrapper'
|
|
20488
|
+
}, getSlotVNs(buttonSuffixSlot({
|
|
20470
20489
|
buttons: buttons || [],
|
|
20471
20490
|
$grid: $xeGrid,
|
|
20472
20491
|
$gantt: $xeGantt,
|
|
20473
20492
|
$table: $table
|
|
20474
|
-
})));
|
|
20493
|
+
}))));
|
|
20475
20494
|
}
|
|
20476
|
-
return
|
|
20495
|
+
return lbVNs;
|
|
20477
20496
|
};
|
|
20478
20497
|
/**
|
|
20479
20498
|
* 渲染右侧工具
|
|
@@ -20486,64 +20505,83 @@ function toolbar_createInternalData() {
|
|
|
20486
20505
|
connectTable
|
|
20487
20506
|
} = internalData;
|
|
20488
20507
|
const $table = connectTable;
|
|
20508
|
+
const toolsSlot = slots.tools;
|
|
20489
20509
|
const toolPrefixSlot = slots.toolPrefix || slots['tool-prefix'];
|
|
20490
20510
|
const toolSuffixSlot = slots.toolSuffix || slots['tool-suffix'];
|
|
20491
|
-
const
|
|
20511
|
+
const rtVNs = [];
|
|
20492
20512
|
if (toolPrefixSlot) {
|
|
20493
|
-
|
|
20513
|
+
rtVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
20514
|
+
key: 'ttp',
|
|
20515
|
+
class: 'vxe-tool--prefix-wrapper'
|
|
20516
|
+
}, getSlotVNs(toolPrefixSlot({
|
|
20494
20517
|
tools: tools || [],
|
|
20495
20518
|
$grid: $xeGrid,
|
|
20496
20519
|
$gantt: $xeGantt,
|
|
20497
20520
|
$table: $table
|
|
20498
|
-
})));
|
|
20521
|
+
}))));
|
|
20499
20522
|
}
|
|
20500
|
-
if (tools) {
|
|
20501
|
-
|
|
20502
|
-
|
|
20503
|
-
|
|
20504
|
-
|
|
20505
|
-
|
|
20506
|
-
|
|
20507
|
-
|
|
20508
|
-
|
|
20509
|
-
|
|
20510
|
-
const
|
|
20511
|
-
|
|
20512
|
-
|
|
20513
|
-
|
|
20514
|
-
|
|
20515
|
-
|
|
20516
|
-
|
|
20517
|
-
|
|
20518
|
-
|
|
20519
|
-
|
|
20520
|
-
|
|
20521
|
-
|
|
20522
|
-
|
|
20523
|
-
|
|
20524
|
-
|
|
20525
|
-
|
|
20526
|
-
|
|
20527
|
-
|
|
20528
|
-
|
|
20529
|
-
|
|
20530
|
-
|
|
20531
|
-
|
|
20532
|
-
|
|
20523
|
+
if (tools || toolsSlot) {
|
|
20524
|
+
const btnVNs = [];
|
|
20525
|
+
if (tools) {
|
|
20526
|
+
tools.forEach((item, tIndex) => {
|
|
20527
|
+
const {
|
|
20528
|
+
dropdowns,
|
|
20529
|
+
toolRender
|
|
20530
|
+
} = item;
|
|
20531
|
+
if (item.visible !== false) {
|
|
20532
|
+
const rdName = toolRender ? toolRender.name : null;
|
|
20533
|
+
const compConf = toolRender ? toolbar_renderer.get(rdName) : null;
|
|
20534
|
+
if (toolRender && compConf && compConf.renderToolbarTool) {
|
|
20535
|
+
const toolbarToolClassName = compConf.toolbarToolClassName;
|
|
20536
|
+
const params = {
|
|
20537
|
+
$grid: $xeGrid,
|
|
20538
|
+
$gantt: $xeGantt,
|
|
20539
|
+
$table: $table,
|
|
20540
|
+
tool: item
|
|
20541
|
+
};
|
|
20542
|
+
btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
20543
|
+
key: rdName,
|
|
20544
|
+
class: ['vxe-tool--item', toolbarToolClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarToolClassName) ? toolbarToolClassName(params) : toolbarToolClassName : '']
|
|
20545
|
+
}, getSlotVNs(compConf.renderToolbarTool(toolRender, params))));
|
|
20546
|
+
} else {
|
|
20547
|
+
if (VxeUIButtonComponent) {
|
|
20548
|
+
btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
20549
|
+
key: tIndex,
|
|
20550
|
+
...Object.assign({}, item, {
|
|
20551
|
+
content: item.content || item.name,
|
|
20552
|
+
options: undefined
|
|
20553
|
+
}),
|
|
20554
|
+
onClick: eventParams => tolEvent(eventParams, item)
|
|
20555
|
+
}, dropdowns && dropdowns.length ? {
|
|
20556
|
+
dropdowns: () => renderDropdowns(item, false)
|
|
20557
|
+
} : {}));
|
|
20558
|
+
}
|
|
20533
20559
|
}
|
|
20534
20560
|
}
|
|
20535
|
-
}
|
|
20536
|
-
}
|
|
20561
|
+
});
|
|
20562
|
+
}
|
|
20563
|
+
rtVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
20564
|
+
key: 'tti',
|
|
20565
|
+
class: 'vxe-tool--item-wrapper'
|
|
20566
|
+
}, toolsSlot ? getSlotVNs(toolsSlot({
|
|
20567
|
+
tools: tools || [],
|
|
20568
|
+
$grid: $xeGrid,
|
|
20569
|
+
$gantt: $xeGantt,
|
|
20570
|
+
$table: $table
|
|
20571
|
+
})) : btnVNs));
|
|
20537
20572
|
}
|
|
20538
20573
|
if (toolSuffixSlot) {
|
|
20539
|
-
|
|
20574
|
+
rtVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
20575
|
+
key: 'tts',
|
|
20576
|
+
class: 'vxe-tool--suffix-wrapper'
|
|
20577
|
+
}, getSlotVNs(toolSuffixSlot({
|
|
20540
20578
|
tools: tools || [],
|
|
20541
20579
|
$grid: $xeGrid,
|
|
20542
20580
|
$gantt: $xeGantt,
|
|
20543
20581
|
$table: $table
|
|
20544
|
-
})));
|
|
20582
|
+
}))));
|
|
20545
20583
|
}
|
|
20546
|
-
return
|
|
20584
|
+
return rtVNs;
|
|
20547
20585
|
};
|
|
20548
20586
|
const renderToolImport = () => {
|
|
20549
20587
|
const importOpts = computeImportOpts.value;
|
|
@@ -20627,13 +20665,7 @@ function toolbar_createInternalData() {
|
|
|
20627
20665
|
custom,
|
|
20628
20666
|
className
|
|
20629
20667
|
} = props;
|
|
20630
|
-
const {
|
|
20631
|
-
connectTable
|
|
20632
|
-
} = internalData;
|
|
20633
20668
|
const vSize = computeSize.value;
|
|
20634
|
-
const toolsSlot = slots.tools;
|
|
20635
|
-
const buttonsSlot = slots.buttons;
|
|
20636
|
-
const $table = connectTable;
|
|
20637
20669
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
20638
20670
|
ref: refElem,
|
|
20639
20671
|
class: ['vxe-toolbar', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
|
|
@@ -20645,17 +20677,9 @@ function toolbar_createInternalData() {
|
|
|
20645
20677
|
}]
|
|
20646
20678
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
20647
20679
|
class: 'vxe-buttons--wrapper'
|
|
20648
|
-
},
|
|
20649
|
-
$grid: $xeGrid,
|
|
20650
|
-
$gantt: $xeGantt,
|
|
20651
|
-
$table: $table
|
|
20652
|
-
}) : renderLeftBtns()), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
20680
|
+
}, renderLeftBtns()), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
20653
20681
|
class: 'vxe-tools--wrapper'
|
|
20654
|
-
},
|
|
20655
|
-
$grid: $xeGrid,
|
|
20656
|
-
$gantt: $xeGantt,
|
|
20657
|
-
$table: $table
|
|
20658
|
-
}) : renderRightTools()), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
20682
|
+
}, renderRightTools()), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
20659
20683
|
class: 'vxe-tools--operate'
|
|
20660
20684
|
}, [props.import ? renderToolImport() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), props.export ? renderToolExport() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), props.print ? renderToolPrint() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), refresh ? renderToolRefresh() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), zoom && $xeGGWrapper ? renderToolZoom() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), custom ? renderToolCustom() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()])]);
|
|
20661
20685
|
};
|