vxe-table 3.19.25 → 3.19.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 +85 -103
- 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 +121 -147
- 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 +121 -147
- 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 +91 -121
- package/styles/components/toolbar.scss +10 -1
- /package/es/{iconfont.1764811551687.ttf → iconfont.1764834392345.ttf} +0 -0
- /package/es/{iconfont.1764811551687.woff → iconfont.1764834392345.woff} +0 -0
- /package/es/{iconfont.1764811551687.woff2 → iconfont.1764834392345.woff2} +0 -0
- /package/lib/{iconfont.1764811551687.ttf → iconfont.1764834392345.ttf} +0 -0
- /package/lib/{iconfont.1764811551687.woff → iconfont.1764834392345.woff} +0 -0
- /package/lib/{iconfont.1764811551687.woff2 → iconfont.1764834392345.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.26";
|
|
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.26"}`;
|
|
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
|
|
@@ -20248,80 +20248,67 @@ function toolbar_createInternalData() {
|
|
|
20248
20248
|
const buttonsSlot = slots.buttons;
|
|
20249
20249
|
const buttonPrefixSlot = slots.buttonPrefix || slots['button-prefix'];
|
|
20250
20250
|
const buttonSuffixSlot = slots.buttonSuffix || slots['button-suffix'];
|
|
20251
|
-
const
|
|
20252
|
-
if (
|
|
20253
|
-
|
|
20254
|
-
|
|
20255
|
-
|
|
20256
|
-
|
|
20257
|
-
|
|
20258
|
-
|
|
20259
|
-
|
|
20260
|
-
|
|
20261
|
-
|
|
20262
|
-
|
|
20263
|
-
|
|
20264
|
-
|
|
20265
|
-
|
|
20266
|
-
|
|
20267
|
-
|
|
20268
|
-
|
|
20269
|
-
|
|
20270
|
-
|
|
20271
|
-
|
|
20272
|
-
|
|
20273
|
-
|
|
20274
|
-
|
|
20275
|
-
|
|
20276
|
-
|
|
20277
|
-
|
|
20278
|
-
|
|
20279
|
-
|
|
20280
|
-
|
|
20281
|
-
|
|
20282
|
-
|
|
20283
|
-
|
|
20284
|
-
|
|
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
|
-
}
|
|
20251
|
+
const btnVNs = [];
|
|
20252
|
+
if (buttons) {
|
|
20253
|
+
buttons.forEach(item => {
|
|
20254
|
+
const {
|
|
20255
|
+
dropdowns,
|
|
20256
|
+
buttonRender
|
|
20257
|
+
} = item;
|
|
20258
|
+
if (item.visible !== false) {
|
|
20259
|
+
const compConf = buttonRender ? toolbar_renderer.get(buttonRender.name) : null;
|
|
20260
|
+
if (buttonRender && compConf && compConf.renderToolbarButton) {
|
|
20261
|
+
const toolbarButtonClassName = compConf.toolbarButtonClassName;
|
|
20262
|
+
const params = {
|
|
20263
|
+
$grid: $xeGrid,
|
|
20264
|
+
$gantt: $xeGantt,
|
|
20265
|
+
$table: $table,
|
|
20266
|
+
button: item
|
|
20267
|
+
};
|
|
20268
|
+
btnVNs.push(h('span', {
|
|
20269
|
+
class: ['vxe-button--item', toolbarButtonClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarButtonClassName) ? toolbarButtonClassName(params) : toolbarButtonClassName : '']
|
|
20270
|
+
}, getSlotVNs(compConf.renderToolbarButton(h, buttonRender, params))));
|
|
20271
|
+
} else {
|
|
20272
|
+
if (VxeUIButtonComponent) {
|
|
20273
|
+
btnVNs.push(h(VxeUIButtonComponent, {
|
|
20274
|
+
props: Object.assign({}, item, {
|
|
20275
|
+
content: item.content || item.name,
|
|
20276
|
+
options: undefined
|
|
20277
|
+
}),
|
|
20278
|
+
on: {
|
|
20279
|
+
click: eventParams => $xeToolbar.btnEvent(eventParams, item)
|
|
20280
|
+
},
|
|
20281
|
+
scopedSlots: dropdowns && dropdowns.length ? {
|
|
20282
|
+
dropdowns: () => $xeToolbar.renderDropdowns(h, item, true)
|
|
20283
|
+
} : {}
|
|
20284
|
+
}));
|
|
20299
20285
|
}
|
|
20300
20286
|
}
|
|
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));
|
|
20312
|
-
}
|
|
20313
|
-
if (buttonSuffixSlot) {
|
|
20314
|
-
lbVNs.push(h('span', {
|
|
20315
|
-
key: 'tbs',
|
|
20316
|
-
class: 'vxe-button--suffix-wrapper'
|
|
20317
|
-
}, getSlotVNs(buttonSuffixSlot.call($xeToolbar, {
|
|
20318
|
-
buttons: buttons || [],
|
|
20319
|
-
$grid: $xeGrid,
|
|
20320
|
-
$gantt: $xeGantt,
|
|
20321
|
-
$table: $table
|
|
20322
|
-
}))));
|
|
20287
|
+
}
|
|
20288
|
+
});
|
|
20323
20289
|
}
|
|
20324
|
-
return
|
|
20290
|
+
return [h('div', {
|
|
20291
|
+
class: 'vxe-button--prefix-wrapper'
|
|
20292
|
+
}, buttonPrefixSlot ? getSlotVNs(buttonPrefixSlot.call($xeToolbar, {
|
|
20293
|
+
buttons: buttons || [],
|
|
20294
|
+
$grid: $xeGrid,
|
|
20295
|
+
$gantt: $xeGantt,
|
|
20296
|
+
$table: $table
|
|
20297
|
+
})) : []), h('div', {
|
|
20298
|
+
class: 'vxe-button--item-wrapper'
|
|
20299
|
+
}, buttonsSlot ? getSlotVNs(buttonsSlot.call($xeToolbar, {
|
|
20300
|
+
buttons: buttons || [],
|
|
20301
|
+
$grid: $xeGrid,
|
|
20302
|
+
$gantt: $xeGantt,
|
|
20303
|
+
$table: $table
|
|
20304
|
+
})) : btnVNs), h('div', {
|
|
20305
|
+
class: 'vxe-button--suffix-wrapper'
|
|
20306
|
+
}, buttonSuffixSlot ? getSlotVNs(buttonSuffixSlot.call($xeToolbar, {
|
|
20307
|
+
buttons: buttons || [],
|
|
20308
|
+
$grid: $xeGrid,
|
|
20309
|
+
$gantt: $xeGantt,
|
|
20310
|
+
$table: $table
|
|
20311
|
+
})) : [])];
|
|
20325
20312
|
},
|
|
20326
20313
|
/**
|
|
20327
20314
|
* 渲染右侧工具
|
|
@@ -20345,83 +20332,70 @@ function toolbar_createInternalData() {
|
|
|
20345
20332
|
const toolsSlot = slots.tools;
|
|
20346
20333
|
const toolPrefixSlot = slots.toolPrefix || slots['tool-prefix'];
|
|
20347
20334
|
const toolSuffixSlot = slots.toolSuffix || slots['tool-suffix'];
|
|
20348
|
-
const
|
|
20349
|
-
if (
|
|
20350
|
-
|
|
20351
|
-
|
|
20352
|
-
|
|
20353
|
-
|
|
20354
|
-
|
|
20355
|
-
|
|
20356
|
-
|
|
20357
|
-
|
|
20358
|
-
|
|
20359
|
-
|
|
20360
|
-
|
|
20361
|
-
|
|
20362
|
-
|
|
20363
|
-
|
|
20364
|
-
|
|
20365
|
-
|
|
20366
|
-
|
|
20367
|
-
|
|
20368
|
-
|
|
20369
|
-
|
|
20370
|
-
|
|
20371
|
-
if (
|
|
20372
|
-
|
|
20373
|
-
|
|
20374
|
-
|
|
20375
|
-
|
|
20376
|
-
|
|
20377
|
-
|
|
20378
|
-
|
|
20379
|
-
|
|
20380
|
-
|
|
20381
|
-
|
|
20382
|
-
|
|
20383
|
-
|
|
20384
|
-
|
|
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
|
-
}
|
|
20335
|
+
const btnVNs = [];
|
|
20336
|
+
if (tools) {
|
|
20337
|
+
tools.forEach((item, tIndex) => {
|
|
20338
|
+
const {
|
|
20339
|
+
dropdowns,
|
|
20340
|
+
toolRender
|
|
20341
|
+
} = item;
|
|
20342
|
+
if (item.visible !== false) {
|
|
20343
|
+
const rdName = toolRender ? toolRender.name : null;
|
|
20344
|
+
const compConf = toolRender ? toolbar_renderer.get(rdName) : null;
|
|
20345
|
+
if (toolRender && compConf && compConf.renderToolbarTool) {
|
|
20346
|
+
const toolbarToolClassName = compConf.toolbarToolClassName;
|
|
20347
|
+
const params = {
|
|
20348
|
+
$grid: $xeGrid,
|
|
20349
|
+
$gantt: $xeGantt,
|
|
20350
|
+
$table: $table,
|
|
20351
|
+
tool: item
|
|
20352
|
+
};
|
|
20353
|
+
btnVNs.push(h('span', {
|
|
20354
|
+
key: rdName,
|
|
20355
|
+
class: ['vxe-tool--item', toolbarToolClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(toolbarToolClassName) ? toolbarToolClassName(params) : toolbarToolClassName : '']
|
|
20356
|
+
}, getSlotVNs(compConf.renderToolbarTool(h, toolRender, params))));
|
|
20357
|
+
} else {
|
|
20358
|
+
if (VxeUIButtonComponent) {
|
|
20359
|
+
btnVNs.push(h(VxeUIButtonComponent, {
|
|
20360
|
+
key: tIndex,
|
|
20361
|
+
props: Object.assign({}, item, {
|
|
20362
|
+
content: item.content || item.name,
|
|
20363
|
+
options: undefined
|
|
20364
|
+
}),
|
|
20365
|
+
on: {
|
|
20366
|
+
click: eventParams => $xeToolbar.tolEvent(eventParams, item)
|
|
20367
|
+
},
|
|
20368
|
+
scopedSlots: dropdowns && dropdowns.length ? {
|
|
20369
|
+
dropdowns: () => $xeToolbar.renderDropdowns(h, item, false)
|
|
20370
|
+
} : {}
|
|
20371
|
+
}));
|
|
20399
20372
|
}
|
|
20400
20373
|
}
|
|
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));
|
|
20412
|
-
}
|
|
20413
|
-
if (toolSuffixSlot) {
|
|
20414
|
-
rtVNs.push(h('span', {
|
|
20415
|
-
key: 'tts',
|
|
20416
|
-
class: 'vxe-tool--suffix-wrapper'
|
|
20417
|
-
}, getSlotVNs(toolSuffixSlot.call($xeToolbar, {
|
|
20418
|
-
tools: tools || [],
|
|
20419
|
-
$grid: $xeGrid,
|
|
20420
|
-
$gantt: $xeGantt,
|
|
20421
|
-
$table: $table
|
|
20422
|
-
}))));
|
|
20374
|
+
}
|
|
20375
|
+
});
|
|
20423
20376
|
}
|
|
20424
|
-
return
|
|
20377
|
+
return [h('div', {
|
|
20378
|
+
class: 'vxe-tool--prefix-wrapper'
|
|
20379
|
+
}, toolPrefixSlot ? getSlotVNs(toolPrefixSlot.call($xeToolbar, {
|
|
20380
|
+
tools: tools || [],
|
|
20381
|
+
$grid: $xeGrid,
|
|
20382
|
+
$gantt: $xeGantt,
|
|
20383
|
+
$table: $table
|
|
20384
|
+
})) : []), h('div', {
|
|
20385
|
+
class: 'vxe-tool--item-wrapper'
|
|
20386
|
+
}, toolsSlot ? getSlotVNs(toolsSlot.call($xeToolbar, {
|
|
20387
|
+
tools: tools || [],
|
|
20388
|
+
$grid: $xeGrid,
|
|
20389
|
+
$gantt: $xeGantt,
|
|
20390
|
+
$table: $table
|
|
20391
|
+
})) : btnVNs), h('div', {
|
|
20392
|
+
class: 'vxe-tool--suffix-wrapper'
|
|
20393
|
+
}, toolSuffixSlot ? getSlotVNs(toolSuffixSlot.call($xeToolbar, {
|
|
20394
|
+
tools: tools || [],
|
|
20395
|
+
$grid: $xeGrid,
|
|
20396
|
+
$gantt: $xeGantt,
|
|
20397
|
+
$table: $table
|
|
20398
|
+
})) : [])];
|
|
20425
20399
|
},
|
|
20426
20400
|
renderToolImport(h) {
|
|
20427
20401
|
// 使用已安装的组件,如果未安装则不渲染
|