vxe-table 3.19.24 → 3.19.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 +103 -81
- 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 +127 -105
- 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 +127 -105
- 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/toolbar/src/toolbar.ts +117 -83
- package/styles/components/toolbar.scss +11 -4
- /package/es/{iconfont.1764729035952.ttf → iconfont.1764811551687.ttf} +0 -0
- /package/es/{iconfont.1764729035952.woff → iconfont.1764811551687.woff} +0 -0
- /package/es/{iconfont.1764729035952.woff2 → iconfont.1764811551687.woff2} +0 -0
- /package/lib/{iconfont.1764729035952.ttf → iconfont.1764811551687.ttf} +0 -0
- /package/lib/{iconfont.1764729035952.woff → iconfont.1764811551687.woff} +0 -0
- /package/lib/{iconfont.1764729035952.woff2 → iconfont.1764811551687.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2005,7 +2005,7 @@ function getClass(property, params) {
|
|
|
2005
2005
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2006
2006
|
|
|
2007
2007
|
|
|
2008
|
-
const version = "3.19.
|
|
2008
|
+
const version = "3.19.25";
|
|
2009
2009
|
core_.VxeUI.version = version;
|
|
2010
2010
|
core_.VxeUI.tableVersion = version;
|
|
2011
2011
|
core_.VxeUI.setConfig({
|
|
@@ -2715,7 +2715,7 @@ function isNodeElement(elem) {
|
|
|
2715
2715
|
const {
|
|
2716
2716
|
log: log_log
|
|
2717
2717
|
} = core_.VxeUI;
|
|
2718
|
-
const log_version = `table v${"3.19.
|
|
2718
|
+
const log_version = `table v${"3.19.25"}`;
|
|
2719
2719
|
const warnLog = log_log.create('warn', log_version);
|
|
2720
2720
|
const errLog = log_log.create('error', log_version);
|
|
2721
2721
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -20245,64 +20245,83 @@ function toolbar_createInternalData() {
|
|
|
20245
20245
|
connectTable
|
|
20246
20246
|
} = internalData;
|
|
20247
20247
|
const $table = connectTable;
|
|
20248
|
+
const buttonsSlot = slots.buttons;
|
|
20248
20249
|
const buttonPrefixSlot = slots.buttonPrefix || slots['button-prefix'];
|
|
20249
20250
|
const buttonSuffixSlot = slots.buttonSuffix || slots['button-suffix'];
|
|
20250
|
-
const
|
|
20251
|
+
const lbVNs = [];
|
|
20251
20252
|
if (buttonPrefixSlot) {
|
|
20252
|
-
|
|
20253
|
+
lbVNs.push(h('span', {
|
|
20254
|
+
key: 'tbp',
|
|
20255
|
+
class: 'vxe-button--prefix-wrapper'
|
|
20256
|
+
}, getSlotVNs(buttonPrefixSlot.call($xeToolbar, {
|
|
20253
20257
|
buttons: buttons || [],
|
|
20254
20258
|
$grid: $xeGrid,
|
|
20255
20259
|
$gantt: $xeGantt,
|
|
20256
20260
|
$table: $table
|
|
20257
|
-
})));
|
|
20261
|
+
}))));
|
|
20258
20262
|
}
|
|
20259
|
-
if (buttons) {
|
|
20260
|
-
|
|
20261
|
-
|
|
20262
|
-
|
|
20263
|
-
|
|
20264
|
-
|
|
20265
|
-
|
|
20266
|
-
|
|
20267
|
-
if (
|
|
20268
|
-
const
|
|
20269
|
-
|
|
20270
|
-
|
|
20271
|
-
|
|
20272
|
-
|
|
20273
|
-
|
|
20274
|
-
|
|
20275
|
-
|
|
20276
|
-
|
|
20277
|
-
|
|
20278
|
-
|
|
20279
|
-
|
|
20280
|
-
|
|
20281
|
-
|
|
20282
|
-
|
|
20283
|
-
|
|
20284
|
-
|
|
20285
|
-
|
|
20286
|
-
|
|
20287
|
-
|
|
20288
|
-
|
|
20289
|
-
|
|
20290
|
-
|
|
20291
|
-
|
|
20263
|
+
if (buttons || buttonsSlot) {
|
|
20264
|
+
const btnVNs = [];
|
|
20265
|
+
if (buttons) {
|
|
20266
|
+
buttons.forEach(item => {
|
|
20267
|
+
const {
|
|
20268
|
+
dropdowns,
|
|
20269
|
+
buttonRender
|
|
20270
|
+
} = item;
|
|
20271
|
+
if (item.visible !== false) {
|
|
20272
|
+
const compConf = buttonRender ? toolbar_renderer.get(buttonRender.name) : null;
|
|
20273
|
+
if (buttonRender && compConf && compConf.renderToolbarButton) {
|
|
20274
|
+
const toolbarButtonClassName = compConf.toolbarButtonClassName;
|
|
20275
|
+
const params = {
|
|
20276
|
+
$grid: $xeGrid,
|
|
20277
|
+
$gantt: $xeGantt,
|
|
20278
|
+
$table: $table,
|
|
20279
|
+
button: item
|
|
20280
|
+
};
|
|
20281
|
+
btnVNs.push(h('span', {
|
|
20282
|
+
class: ['vxe-button--item', toolbarButtonClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarButtonClassName) ? toolbarButtonClassName(params) : toolbarButtonClassName : '']
|
|
20283
|
+
}, getSlotVNs(compConf.renderToolbarButton(h, buttonRender, params))));
|
|
20284
|
+
} else {
|
|
20285
|
+
if (VxeUIButtonComponent) {
|
|
20286
|
+
btnVNs.push(h(VxeUIButtonComponent, {
|
|
20287
|
+
props: Object.assign({}, item, {
|
|
20288
|
+
content: item.content || item.name,
|
|
20289
|
+
options: undefined
|
|
20290
|
+
}),
|
|
20291
|
+
on: {
|
|
20292
|
+
click: eventParams => $xeToolbar.btnEvent(eventParams, item)
|
|
20293
|
+
},
|
|
20294
|
+
scopedSlots: dropdowns && dropdowns.length ? {
|
|
20295
|
+
dropdowns: () => $xeToolbar.renderDropdowns(h, item, true)
|
|
20296
|
+
} : {}
|
|
20297
|
+
}));
|
|
20298
|
+
}
|
|
20292
20299
|
}
|
|
20293
20300
|
}
|
|
20294
|
-
}
|
|
20295
|
-
}
|
|
20301
|
+
});
|
|
20302
|
+
}
|
|
20303
|
+
lbVNs.push(h('span', {
|
|
20304
|
+
key: 'tti',
|
|
20305
|
+
class: 'vxe-button--item-wrapper'
|
|
20306
|
+
}, buttonsSlot ? getSlotVNs(buttonsSlot.call($xeToolbar, {
|
|
20307
|
+
buttons: buttons || [],
|
|
20308
|
+
$grid: $xeGrid,
|
|
20309
|
+
$gantt: $xeGantt,
|
|
20310
|
+
$table: $table
|
|
20311
|
+
})) : btnVNs));
|
|
20296
20312
|
}
|
|
20297
20313
|
if (buttonSuffixSlot) {
|
|
20298
|
-
|
|
20314
|
+
lbVNs.push(h('span', {
|
|
20315
|
+
key: 'tbs',
|
|
20316
|
+
class: 'vxe-button--suffix-wrapper'
|
|
20317
|
+
}, getSlotVNs(buttonSuffixSlot.call($xeToolbar, {
|
|
20299
20318
|
buttons: buttons || [],
|
|
20300
20319
|
$grid: $xeGrid,
|
|
20301
20320
|
$gantt: $xeGantt,
|
|
20302
20321
|
$table: $table
|
|
20303
|
-
})));
|
|
20322
|
+
}))));
|
|
20304
20323
|
}
|
|
20305
|
-
return
|
|
20324
|
+
return lbVNs;
|
|
20306
20325
|
},
|
|
20307
20326
|
/**
|
|
20308
20327
|
* 渲染右侧工具
|
|
@@ -20323,67 +20342,86 @@ function toolbar_createInternalData() {
|
|
|
20323
20342
|
connectTable
|
|
20324
20343
|
} = internalData;
|
|
20325
20344
|
const $table = connectTable;
|
|
20345
|
+
const toolsSlot = slots.tools;
|
|
20326
20346
|
const toolPrefixSlot = slots.toolPrefix || slots['tool-prefix'];
|
|
20327
20347
|
const toolSuffixSlot = slots.toolSuffix || slots['tool-suffix'];
|
|
20328
|
-
const
|
|
20348
|
+
const rtVNs = [];
|
|
20329
20349
|
if (toolPrefixSlot) {
|
|
20330
|
-
|
|
20350
|
+
rtVNs.push(h('span', {
|
|
20351
|
+
key: 'ttp',
|
|
20352
|
+
class: 'vxe-tool--prefix-wrapper'
|
|
20353
|
+
}, getSlotVNs(toolPrefixSlot.call($xeToolbar, {
|
|
20331
20354
|
tools: tools || [],
|
|
20332
20355
|
$grid: $xeGrid,
|
|
20333
20356
|
$gantt: $xeGantt,
|
|
20334
20357
|
$table: $table
|
|
20335
|
-
})));
|
|
20358
|
+
}))));
|
|
20336
20359
|
}
|
|
20337
|
-
if (tools) {
|
|
20338
|
-
|
|
20339
|
-
|
|
20340
|
-
|
|
20341
|
-
|
|
20342
|
-
|
|
20343
|
-
|
|
20344
|
-
|
|
20345
|
-
|
|
20346
|
-
|
|
20347
|
-
const
|
|
20348
|
-
|
|
20349
|
-
|
|
20350
|
-
|
|
20351
|
-
|
|
20352
|
-
|
|
20353
|
-
|
|
20354
|
-
|
|
20355
|
-
|
|
20356
|
-
|
|
20357
|
-
|
|
20358
|
-
|
|
20359
|
-
|
|
20360
|
-
|
|
20361
|
-
|
|
20362
|
-
|
|
20363
|
-
|
|
20364
|
-
|
|
20365
|
-
|
|
20366
|
-
|
|
20367
|
-
|
|
20368
|
-
|
|
20369
|
-
|
|
20370
|
-
|
|
20371
|
-
|
|
20372
|
-
|
|
20360
|
+
if (tools || toolsSlot) {
|
|
20361
|
+
const btnVNs = [];
|
|
20362
|
+
if (tools) {
|
|
20363
|
+
tools.forEach((item, tIndex) => {
|
|
20364
|
+
const {
|
|
20365
|
+
dropdowns,
|
|
20366
|
+
toolRender
|
|
20367
|
+
} = item;
|
|
20368
|
+
if (item.visible !== false) {
|
|
20369
|
+
const rdName = toolRender ? toolRender.name : null;
|
|
20370
|
+
const compConf = toolRender ? toolbar_renderer.get(rdName) : null;
|
|
20371
|
+
if (toolRender && compConf && compConf.renderToolbarTool) {
|
|
20372
|
+
const toolbarToolClassName = compConf.toolbarToolClassName;
|
|
20373
|
+
const params = {
|
|
20374
|
+
$grid: $xeGrid,
|
|
20375
|
+
$gantt: $xeGantt,
|
|
20376
|
+
$table: $table,
|
|
20377
|
+
tool: item
|
|
20378
|
+
};
|
|
20379
|
+
btnVNs.push(h('span', {
|
|
20380
|
+
key: rdName,
|
|
20381
|
+
class: ['vxe-tool--item', toolbarToolClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarToolClassName) ? toolbarToolClassName(params) : toolbarToolClassName : '']
|
|
20382
|
+
}, getSlotVNs(compConf.renderToolbarTool(h, toolRender, params))));
|
|
20383
|
+
} else {
|
|
20384
|
+
if (VxeUIButtonComponent) {
|
|
20385
|
+
btnVNs.push(h(VxeUIButtonComponent, {
|
|
20386
|
+
key: tIndex,
|
|
20387
|
+
props: Object.assign({}, item, {
|
|
20388
|
+
content: item.content || item.name,
|
|
20389
|
+
options: undefined
|
|
20390
|
+
}),
|
|
20391
|
+
on: {
|
|
20392
|
+
click: eventParams => $xeToolbar.tolEvent(eventParams, item)
|
|
20393
|
+
},
|
|
20394
|
+
scopedSlots: dropdowns && dropdowns.length ? {
|
|
20395
|
+
dropdowns: () => $xeToolbar.renderDropdowns(h, item, false)
|
|
20396
|
+
} : {}
|
|
20397
|
+
}));
|
|
20398
|
+
}
|
|
20373
20399
|
}
|
|
20374
20400
|
}
|
|
20375
|
-
}
|
|
20376
|
-
}
|
|
20401
|
+
});
|
|
20402
|
+
}
|
|
20403
|
+
rtVNs.push(h('span', {
|
|
20404
|
+
key: 'tti',
|
|
20405
|
+
class: 'vxe-tool--item-wrapper'
|
|
20406
|
+
}, toolsSlot ? getSlotVNs(toolsSlot.call($xeToolbar, {
|
|
20407
|
+
tools: tools || [],
|
|
20408
|
+
$grid: $xeGrid,
|
|
20409
|
+
$gantt: $xeGantt,
|
|
20410
|
+
$table: $table
|
|
20411
|
+
})) : btnVNs));
|
|
20377
20412
|
}
|
|
20378
20413
|
if (toolSuffixSlot) {
|
|
20379
|
-
|
|
20414
|
+
rtVNs.push(h('span', {
|
|
20415
|
+
key: 'tts',
|
|
20416
|
+
class: 'vxe-tool--suffix-wrapper'
|
|
20417
|
+
}, getSlotVNs(toolSuffixSlot.call($xeToolbar, {
|
|
20380
20418
|
tools: tools || [],
|
|
20381
20419
|
$grid: $xeGrid,
|
|
20382
20420
|
$gantt: $xeGantt,
|
|
20383
20421
|
$table: $table
|
|
20384
|
-
})));
|
|
20422
|
+
}))));
|
|
20385
20423
|
}
|
|
20386
|
-
return
|
|
20424
|
+
return rtVNs;
|
|
20387
20425
|
},
|
|
20388
20426
|
renderToolImport(h) {
|
|
20389
20427
|
// 使用已安装的组件,如果未安装则不渲染
|
|
@@ -20505,8 +20543,6 @@ function toolbar_createInternalData() {
|
|
|
20505
20543
|
renderVN(h) {
|
|
20506
20544
|
const $xeToolbar = this;
|
|
20507
20545
|
const props = $xeToolbar;
|
|
20508
|
-
const slots = $xeToolbar.$scopedSlots;
|
|
20509
|
-
const internalData = $xeToolbar.internalData;
|
|
20510
20546
|
const $xeGrid = $xeToolbar.$xeGrid;
|
|
20511
20547
|
const $xeGantt = $xeToolbar.$xeGantt;
|
|
20512
20548
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
@@ -20518,12 +20554,6 @@ function toolbar_createInternalData() {
|
|
|
20518
20554
|
custom,
|
|
20519
20555
|
className
|
|
20520
20556
|
} = props;
|
|
20521
|
-
const {
|
|
20522
|
-
connectTable
|
|
20523
|
-
} = internalData;
|
|
20524
|
-
const $table = connectTable;
|
|
20525
|
-
const toolsSlot = slots.tools;
|
|
20526
|
-
const buttonsSlot = slots.buttons;
|
|
20527
20557
|
const vSize = $xeToolbar.computeSize;
|
|
20528
20558
|
return h('div', {
|
|
20529
20559
|
ref: 'refElem',
|
|
@@ -20536,17 +20566,9 @@ function toolbar_createInternalData() {
|
|
|
20536
20566
|
}]
|
|
20537
20567
|
}, [h('div', {
|
|
20538
20568
|
class: 'vxe-buttons--wrapper'
|
|
20539
|
-
},
|
|
20540
|
-
$grid: $xeGrid,
|
|
20541
|
-
$gantt: $xeGantt,
|
|
20542
|
-
$table: $table
|
|
20543
|
-
}) : $xeToolbar.renderLeftBtns(h)), h('div', {
|
|
20569
|
+
}, $xeToolbar.renderLeftBtns(h)), h('div', {
|
|
20544
20570
|
class: 'vxe-tools--wrapper'
|
|
20545
|
-
},
|
|
20546
|
-
$grid: $xeGrid,
|
|
20547
|
-
$gantt: $xeGantt,
|
|
20548
|
-
$table: $table
|
|
20549
|
-
}) : $xeToolbar.renderRightTools(h)), h('div', {
|
|
20571
|
+
}, $xeToolbar.renderRightTools(h)), h('div', {
|
|
20550
20572
|
class: 'vxe-tools--operate'
|
|
20551
20573
|
}, [props.import ? $xeToolbar.renderToolImport(h) : toolbar_renderEmptyElement($xeToolbar), props.export ? $xeToolbar.renderToolExport(h) : toolbar_renderEmptyElement($xeToolbar), props.print ? $xeToolbar.renderToolPrint(h) : toolbar_renderEmptyElement($xeToolbar), refresh ? $xeToolbar.renderToolRefresh(h) : toolbar_renderEmptyElement($xeToolbar), zoom && $xeGGWrapper ? $xeToolbar.renderToolZoom(h) : toolbar_renderEmptyElement($xeToolbar), custom ? $xeToolbar.renderToolCustom(h) : toolbar_renderEmptyElement($xeToolbar)])]);
|
|
20552
20574
|
}
|