vxe-table 4.17.25 → 4.17.26
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 +73 -91
- package/es/toolbar/style.css +10 -1
- 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 +10 -1
- 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 +117 -143
- 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 +117 -143
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/toolbar/style/style.css +10 -1
- 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 +10 -1
- package/lib/vxe-toolbar/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/toolbar/src/toolbar.ts +87 -117
- package/styles/components/toolbar.scss +10 -1
- /package/es/{iconfont.1764811572357.ttf → iconfont.1764834414498.ttf} +0 -0
- /package/es/{iconfont.1764811572357.woff → iconfont.1764834414498.woff} +0 -0
- /package/es/{iconfont.1764811572357.woff2 → iconfont.1764834414498.woff2} +0 -0
- /package/lib/{iconfont.1764811572357.ttf → iconfont.1764834414498.ttf} +0 -0
- /package/lib/{iconfont.1764811572357.woff → iconfont.1764834414498.woff} +0 -0
- /package/lib/{iconfont.1764811572357.woff2 → iconfont.1764834414498.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.26";
|
|
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.26"}`;
|
|
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
|
|
@@ -20420,79 +20420,66 @@ function toolbar_createInternalData() {
|
|
|
20420
20420
|
const buttonsSlot = slots.buttons;
|
|
20421
20421
|
const buttonPrefixSlot = slots.buttonPrefix || slots['button-prefix'];
|
|
20422
20422
|
const buttonSuffixSlot = slots.buttonSuffix || slots['button-suffix'];
|
|
20423
|
-
const
|
|
20424
|
-
if (
|
|
20425
|
-
|
|
20426
|
-
|
|
20427
|
-
|
|
20428
|
-
|
|
20429
|
-
|
|
20430
|
-
|
|
20431
|
-
|
|
20432
|
-
|
|
20433
|
-
|
|
20434
|
-
|
|
20435
|
-
|
|
20436
|
-
|
|
20437
|
-
|
|
20438
|
-
|
|
20439
|
-
|
|
20440
|
-
|
|
20441
|
-
|
|
20442
|
-
|
|
20443
|
-
|
|
20444
|
-
|
|
20445
|
-
if (
|
|
20446
|
-
|
|
20447
|
-
|
|
20448
|
-
|
|
20449
|
-
|
|
20450
|
-
|
|
20451
|
-
|
|
20452
|
-
|
|
20453
|
-
|
|
20454
|
-
|
|
20455
|
-
|
|
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
|
-
}
|
|
20423
|
+
const btnVNs = [];
|
|
20424
|
+
if (buttons) {
|
|
20425
|
+
buttons.forEach((item, index) => {
|
|
20426
|
+
const {
|
|
20427
|
+
dropdowns,
|
|
20428
|
+
buttonRender
|
|
20429
|
+
} = item;
|
|
20430
|
+
if (item.visible !== false) {
|
|
20431
|
+
const compConf = buttonRender ? toolbar_renderer.get(buttonRender.name) : null;
|
|
20432
|
+
if (buttonRender && compConf && compConf.renderToolbarButton) {
|
|
20433
|
+
const toolbarButtonClassName = compConf.toolbarButtonClassName;
|
|
20434
|
+
const params = {
|
|
20435
|
+
$grid: $xeGrid,
|
|
20436
|
+
$gantt: $xeGantt,
|
|
20437
|
+
$table: $table,
|
|
20438
|
+
button: item
|
|
20439
|
+
};
|
|
20440
|
+
btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
20441
|
+
key: `br${item.code || index}`,
|
|
20442
|
+
class: ['vxe-button--item', toolbarButtonClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarButtonClassName) ? toolbarButtonClassName(params) : toolbarButtonClassName : '']
|
|
20443
|
+
}, getSlotVNs(compConf.renderToolbarButton(buttonRender, params))));
|
|
20444
|
+
} else {
|
|
20445
|
+
if (VxeUIButtonComponent) {
|
|
20446
|
+
btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
20447
|
+
key: `bd${item.code || index}`,
|
|
20448
|
+
...Object.assign({}, item, {
|
|
20449
|
+
content: item.content || item.name,
|
|
20450
|
+
options: undefined
|
|
20451
|
+
}),
|
|
20452
|
+
onClick: eventParams => btnEvent(eventParams, item)
|
|
20453
|
+
}, dropdowns && dropdowns.length ? {
|
|
20454
|
+
dropdowns: () => renderDropdowns(item, true)
|
|
20455
|
+
} : {}));
|
|
20470
20456
|
}
|
|
20471
20457
|
}
|
|
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));
|
|
20483
|
-
}
|
|
20484
|
-
if (buttonSuffixSlot) {
|
|
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({
|
|
20489
|
-
buttons: buttons || [],
|
|
20490
|
-
$grid: $xeGrid,
|
|
20491
|
-
$gantt: $xeGantt,
|
|
20492
|
-
$table: $table
|
|
20493
|
-
}))));
|
|
20458
|
+
}
|
|
20459
|
+
});
|
|
20494
20460
|
}
|
|
20495
|
-
return
|
|
20461
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
20462
|
+
class: 'vxe-button--prefix-wrapper'
|
|
20463
|
+
}, buttonPrefixSlot ? getSlotVNs(buttonPrefixSlot({
|
|
20464
|
+
buttons: buttons || [],
|
|
20465
|
+
$grid: $xeGrid,
|
|
20466
|
+
$gantt: $xeGantt,
|
|
20467
|
+
$table: $table
|
|
20468
|
+
})) : []), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
20469
|
+
class: 'vxe-button--item-wrapper'
|
|
20470
|
+
}, buttonsSlot ? getSlotVNs(buttonsSlot({
|
|
20471
|
+
buttons: buttons || [],
|
|
20472
|
+
$grid: $xeGrid,
|
|
20473
|
+
$gantt: $xeGantt,
|
|
20474
|
+
$table: $table
|
|
20475
|
+
})) : btnVNs), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
20476
|
+
class: 'vxe-button--suffix-wrapper'
|
|
20477
|
+
}, buttonSuffixSlot ? getSlotVNs(buttonSuffixSlot({
|
|
20478
|
+
buttons: buttons || [],
|
|
20479
|
+
$grid: $xeGrid,
|
|
20480
|
+
$gantt: $xeGantt,
|
|
20481
|
+
$table: $table
|
|
20482
|
+
})) : [])];
|
|
20496
20483
|
};
|
|
20497
20484
|
/**
|
|
20498
20485
|
* 渲染右侧工具
|
|
@@ -20508,80 +20495,67 @@ function toolbar_createInternalData() {
|
|
|
20508
20495
|
const toolsSlot = slots.tools;
|
|
20509
20496
|
const toolPrefixSlot = slots.toolPrefix || slots['tool-prefix'];
|
|
20510
20497
|
const toolSuffixSlot = slots.toolSuffix || slots['tool-suffix'];
|
|
20511
|
-
const
|
|
20512
|
-
if (
|
|
20513
|
-
|
|
20514
|
-
|
|
20515
|
-
|
|
20516
|
-
|
|
20517
|
-
|
|
20518
|
-
|
|
20519
|
-
|
|
20520
|
-
|
|
20521
|
-
|
|
20522
|
-
|
|
20523
|
-
|
|
20524
|
-
|
|
20525
|
-
|
|
20526
|
-
|
|
20527
|
-
|
|
20528
|
-
|
|
20529
|
-
|
|
20530
|
-
|
|
20531
|
-
|
|
20532
|
-
|
|
20533
|
-
|
|
20534
|
-
if (
|
|
20535
|
-
|
|
20536
|
-
|
|
20537
|
-
|
|
20538
|
-
|
|
20539
|
-
|
|
20540
|
-
|
|
20541
|
-
|
|
20542
|
-
|
|
20543
|
-
|
|
20544
|
-
|
|
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
|
-
}
|
|
20498
|
+
const btnVNs = [];
|
|
20499
|
+
if (tools) {
|
|
20500
|
+
tools.forEach((item, tIndex) => {
|
|
20501
|
+
const {
|
|
20502
|
+
dropdowns,
|
|
20503
|
+
toolRender
|
|
20504
|
+
} = item;
|
|
20505
|
+
if (item.visible !== false) {
|
|
20506
|
+
const rdName = toolRender ? toolRender.name : null;
|
|
20507
|
+
const compConf = toolRender ? toolbar_renderer.get(rdName) : null;
|
|
20508
|
+
if (toolRender && compConf && compConf.renderToolbarTool) {
|
|
20509
|
+
const toolbarToolClassName = compConf.toolbarToolClassName;
|
|
20510
|
+
const params = {
|
|
20511
|
+
$grid: $xeGrid,
|
|
20512
|
+
$gantt: $xeGantt,
|
|
20513
|
+
$table: $table,
|
|
20514
|
+
tool: item
|
|
20515
|
+
};
|
|
20516
|
+
btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
20517
|
+
key: rdName,
|
|
20518
|
+
class: ['vxe-tool--item', toolbarToolClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarToolClassName) ? toolbarToolClassName(params) : toolbarToolClassName : '']
|
|
20519
|
+
}, getSlotVNs(compConf.renderToolbarTool(toolRender, params))));
|
|
20520
|
+
} else {
|
|
20521
|
+
if (VxeUIButtonComponent) {
|
|
20522
|
+
btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
20523
|
+
key: tIndex,
|
|
20524
|
+
...Object.assign({}, item, {
|
|
20525
|
+
content: item.content || item.name,
|
|
20526
|
+
options: undefined
|
|
20527
|
+
}),
|
|
20528
|
+
onClick: eventParams => tolEvent(eventParams, item)
|
|
20529
|
+
}, dropdowns && dropdowns.length ? {
|
|
20530
|
+
dropdowns: () => renderDropdowns(item, false)
|
|
20531
|
+
} : {}));
|
|
20559
20532
|
}
|
|
20560
20533
|
}
|
|
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));
|
|
20572
|
-
}
|
|
20573
|
-
if (toolSuffixSlot) {
|
|
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({
|
|
20578
|
-
tools: tools || [],
|
|
20579
|
-
$grid: $xeGrid,
|
|
20580
|
-
$gantt: $xeGantt,
|
|
20581
|
-
$table: $table
|
|
20582
|
-
}))));
|
|
20534
|
+
}
|
|
20535
|
+
});
|
|
20583
20536
|
}
|
|
20584
|
-
return
|
|
20537
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
20538
|
+
class: 'vxe-tool--prefix-wrapper'
|
|
20539
|
+
}, toolPrefixSlot ? getSlotVNs(toolPrefixSlot({
|
|
20540
|
+
tools: tools || [],
|
|
20541
|
+
$grid: $xeGrid,
|
|
20542
|
+
$gantt: $xeGantt,
|
|
20543
|
+
$table: $table
|
|
20544
|
+
})) : []), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
20545
|
+
class: 'vxe-tool--item-wrapper'
|
|
20546
|
+
}, toolsSlot ? getSlotVNs(toolsSlot({
|
|
20547
|
+
tools: tools || [],
|
|
20548
|
+
$grid: $xeGrid,
|
|
20549
|
+
$gantt: $xeGantt,
|
|
20550
|
+
$table: $table
|
|
20551
|
+
})) : btnVNs), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
20552
|
+
class: 'vxe-tool--suffix-wrapper'
|
|
20553
|
+
}, toolSuffixSlot ? getSlotVNs(toolSuffixSlot({
|
|
20554
|
+
tools: tools || [],
|
|
20555
|
+
$grid: $xeGrid,
|
|
20556
|
+
$gantt: $xeGantt,
|
|
20557
|
+
$table: $table
|
|
20558
|
+
})) : [])];
|
|
20585
20559
|
};
|
|
20586
20560
|
const renderToolImport = () => {
|
|
20587
20561
|
const importOpts = computeImportOpts.value;
|