vxe-table 3.13.14 → 3.13.16
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/locale/lang/ar-EG.js +1 -0
- package/es/locale/lang/de-DE.js +1 -0
- package/es/locale/lang/en-US.js +3 -2
- package/es/locale/lang/es-ES.js +1 -0
- package/es/locale/lang/fr-FR.js +1 -0
- package/es/locale/lang/hu-HU.js +1 -0
- package/es/locale/lang/hy-AM.js +1 -0
- package/es/locale/lang/id-ID.js +1 -0
- package/es/locale/lang/it-IT.js +1 -0
- package/es/locale/lang/ja-JP.js +1 -0
- package/es/locale/lang/ko-KR.js +1 -0
- package/es/locale/lang/nb-NO.js +1 -0
- package/es/locale/lang/pt-BR.js +1 -0
- package/es/locale/lang/ru-RU.js +1 -0
- package/es/locale/lang/th-TH.js +1 -0
- package/es/locale/lang/ug-CN.js +1 -0
- package/es/locale/lang/uk-UA.js +1 -0
- package/es/locale/lang/vi-VN.js +1 -0
- package/es/locale/lang/zh-CHT.js +1 -0
- package/es/locale/lang/zh-CN.js +1 -0
- package/es/style.css +1 -1
- package/es/table/module/custom/panel.js +18 -16
- package/es/table/module/edit/mixin.js +4 -2
- package/es/table/src/cell.js +2 -1
- package/es/table/src/column.js +2 -2
- package/es/table/src/group.js +2 -2
- package/es/table/src/methods.js +22 -18
- package/es/table/src/table.js +151 -147
- package/es/toolbar/src/toolbar.js +2 -2
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +216 -207
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +1 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/de-DE.js +1 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/en-US.js +3 -2
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +3 -2
- package/lib/locale/lang/es-ES.js +1 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +1 -0
- package/lib/locale/lang/fr-FR.js +1 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/hu-HU.js +1 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +1 -0
- package/lib/locale/lang/hy-AM.js +1 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/id-ID.js +1 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/it-IT.js +1 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +1 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -0
- package/lib/locale/lang/ko-KR.js +1 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +1 -0
- package/lib/locale/lang/nb-NO.js +1 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +1 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +1 -0
- package/lib/locale/lang/ru-RU.js +1 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +1 -0
- package/lib/locale/lang/th-TH.js +1 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/ug-CN.js +1 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/uk-UA.js +1 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +1 -0
- package/lib/locale/lang/vi-VN.js +1 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +1 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +1 -0
- package/lib/locale/lang/zh-CN.js +1 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -0
- package/lib/style.css +1 -1
- package/lib/table/module/custom/panel.js +18 -16
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/mixin.js +4 -2
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/src/cell.js +2 -1
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/column.js +3 -2
- package/lib/table/src/group.js +3 -2
- package/lib/table/src/methods.js +23 -18
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +160 -162
- package/lib/table/src/table.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +3 -2
- 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 +2 -2
- package/packages/locale/lang/ar-EG.ts +1 -0
- package/packages/locale/lang/de-DE.ts +1 -0
- package/packages/locale/lang/en-US.ts +3 -2
- package/packages/locale/lang/es-ES.ts +1 -0
- package/packages/locale/lang/fr-FR.ts +1 -0
- package/packages/locale/lang/hu-HU.ts +1 -0
- package/packages/locale/lang/hy-AM.ts +1 -0
- package/packages/locale/lang/id-ID.ts +1 -0
- package/packages/locale/lang/it-IT.ts +1 -0
- package/packages/locale/lang/ja-JP.ts +1 -0
- package/packages/locale/lang/ko-KR.ts +1 -0
- package/packages/locale/lang/nb-NO.ts +1 -0
- package/packages/locale/lang/pt-BR.ts +1 -0
- package/packages/locale/lang/ru-RU.ts +1 -0
- package/packages/locale/lang/th-TH.ts +1 -0
- package/packages/locale/lang/ug-CN.ts +1 -0
- package/packages/locale/lang/uk-UA.ts +1 -0
- package/packages/locale/lang/vi-VN.ts +1 -0
- package/packages/locale/lang/zh-CHT.ts +1 -0
- package/packages/locale/lang/zh-CN.ts +1 -0
- package/packages/table/module/custom/panel.ts +22 -20
- package/packages/table/module/edit/mixin.ts +4 -2
- package/packages/table/src/cell.ts +2 -1
- package/packages/table/src/column.ts +2 -2
- package/packages/table/src/group.ts +2 -2
- package/packages/table/src/methods.ts +22 -18
- package/packages/table/src/table.ts +152 -147
- package/packages/toolbar/src/toolbar.ts +2 -2
- /package/es/{iconfont.1740640529071.ttf → iconfont.1740799948632.ttf} +0 -0
- /package/es/{iconfont.1740640529071.woff → iconfont.1740799948632.woff} +0 -0
- /package/es/{iconfont.1740640529071.woff2 → iconfont.1740799948632.woff2} +0 -0
- /package/lib/{iconfont.1740640529071.ttf → iconfont.1740799948632.ttf} +0 -0
- /package/lib/{iconfont.1740640529071.woff → iconfont.1740799948632.woff} +0 -0
- /package/lib/{iconfont.1740640529071.woff2 → iconfont.1740799948632.woff2} +0 -0
|
@@ -1289,8 +1289,10 @@ export default {
|
|
|
1289
1289
|
} as any,
|
|
1290
1290
|
created () {
|
|
1291
1291
|
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
1292
|
+
const props = $xeTable
|
|
1293
|
+
const internalData = $xeTable as unknown as TableInternalData
|
|
1292
1294
|
|
|
1293
|
-
|
|
1295
|
+
Object.assign($xeTable, {
|
|
1294
1296
|
tZindex: 0,
|
|
1295
1297
|
elemStore: {},
|
|
1296
1298
|
// 存放横向 X 虚拟滚动相关的信息
|
|
@@ -1358,165 +1360,168 @@ export default {
|
|
|
1358
1360
|
swYTotal: 0
|
|
1359
1361
|
})
|
|
1360
1362
|
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1363
|
+
const { data, exportConfig, importConfig, treeConfig, showOverflow } = props
|
|
1364
|
+
const { scrollXStore, scrollYStore } = internalData
|
|
1365
|
+
const sYOpts = $xeTable.computeSYOpts
|
|
1366
|
+
const editOpts = $xeTable.computeEditOpts
|
|
1367
|
+
const treeOpts = $xeTable.computeTreeOpts
|
|
1368
|
+
const radioOpts = $xeTable.computeRadioOpts
|
|
1369
|
+
const checkboxOpts = $xeTable.computeCheckboxOpts
|
|
1370
|
+
const expandOpts = $xeTable.computeExpandOpts
|
|
1371
|
+
const rowOpts = $xeTable.computeRowOpts
|
|
1372
|
+
const customOpts = $xeTable.computeCustomOpts
|
|
1373
|
+
const mouseOpts = $xeTable.computeMouseOpts
|
|
1374
|
+
const exportOpts = $xeTable.computeExportOpts
|
|
1375
|
+
const importOpts = $xeTable.computeImportOpts
|
|
1376
|
+
|
|
1377
|
+
if (this.rowId) {
|
|
1378
|
+
warnLog('vxe.error.delProp', ['row-id', 'row-config.keyField'])
|
|
1379
|
+
}
|
|
1380
|
+
if (this.rowKey) {
|
|
1381
|
+
warnLog('vxe.error.delProp', ['row-key', 'row-config.useKey'])
|
|
1382
|
+
}
|
|
1383
|
+
if (this.columnKey) {
|
|
1384
|
+
warnLog('vxe.error.delProp', ['column-id', 'column-config.useKey'])
|
|
1385
|
+
}
|
|
1386
|
+
if (!(this.rowId || rowOpts.keyField) && (checkboxOpts.reserve || checkboxOpts.checkRowKeys || radioOpts.reserve || radioOpts.checkRowKey || expandOpts.expandRowKeys || this.treeOpts.expandRowKeys)) {
|
|
1387
|
+
warnLog('vxe.error.reqProp', ['row-config.keyField'])
|
|
1388
|
+
}
|
|
1389
|
+
if (this.editConfig && editOpts.showStatus && !this.keepSource) {
|
|
1390
|
+
warnLog('vxe.error.reqProp', ['keep-source'])
|
|
1391
|
+
}
|
|
1392
|
+
if (treeConfig && (treeOpts.showLine || treeOpts.line) && (!(this.rowKey || rowOpts.useKey) || !showOverflow)) {
|
|
1393
|
+
warnLog('vxe.error.reqProp', ['row-config.useKey | show-overflow'])
|
|
1394
|
+
}
|
|
1395
|
+
if (treeConfig && !treeOpts.transform && this.stripe) {
|
|
1396
|
+
warnLog('vxe.error.noTree', ['stripe'])
|
|
1397
|
+
}
|
|
1398
|
+
if (this.showFooter && !(this.footerMethod || this.footerData)) {
|
|
1399
|
+
warnLog('vxe.error.reqProp', ['footer-data | footer-method'])
|
|
1400
|
+
}
|
|
1401
|
+
if (rowOpts.height) {
|
|
1402
|
+
warnLog('vxe.error.delProp', ['row-config.height', 'cell-config.height'])
|
|
1403
|
+
}
|
|
1404
|
+
if (this.tooltipOpts.enabled) {
|
|
1405
|
+
warnLog('vxe.error.delProp', ['tooltip-config.enabled', 'tooltip-config.showAll'])
|
|
1406
|
+
}
|
|
1407
|
+
if (this.highlightCurrentRow) {
|
|
1408
|
+
warnLog('vxe.error.delProp', ['highlight-current-row', 'row-config.isCurrent'])
|
|
1409
|
+
}
|
|
1410
|
+
if (this.highlightHoverRow) {
|
|
1411
|
+
warnLog('vxe.error.delProp', ['highlight-hover-row', 'row-config.isHover'])
|
|
1412
|
+
}
|
|
1413
|
+
if (this.highlightCurrentColumn) {
|
|
1414
|
+
warnLog('vxe.error.delProp', ['highlight-current-column', 'column-config.isCurrent'])
|
|
1415
|
+
}
|
|
1416
|
+
if (this.highlightHoverColumn) {
|
|
1417
|
+
warnLog('vxe.error.delProp', ['highlight-hover-column', 'column-config.isHover'])
|
|
1418
|
+
}
|
|
1419
|
+
// 检查导入导出类型,如果自定义导入导出方法,则不校验类型
|
|
1420
|
+
if (importConfig && importOpts.types && !importOpts.importMethod && !XEUtils.includeArrays(XEUtils.keys(importOpts._typeMaps), importOpts.types)) {
|
|
1421
|
+
warnLog('vxe.error.errProp', [`export-config.types=${importOpts.types.join(',')}`, importOpts.types.filter((type: string) => XEUtils.includes(XEUtils.keys(importOpts._typeMaps), type)).join(',') || XEUtils.keys(importOpts._typeMaps).join(',')])
|
|
1422
|
+
}
|
|
1423
|
+
if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !XEUtils.includeArrays(XEUtils.keys(exportOpts._typeMaps), exportOpts.types)) {
|
|
1424
|
+
warnLog('vxe.error.errProp', [`export-config.types=${exportOpts.types.join(',')}`, exportOpts.types.filter((type: string) => XEUtils.includes(XEUtils.keys(exportOpts._typeMaps), type)).join(',') || XEUtils.keys(exportOpts._typeMaps).join(',')])
|
|
1412
1425
|
}
|
|
1413
1426
|
|
|
1414
|
-
if (
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
if ((this.customConfig ? isEnableConf(customOpts) : customOpts.enabled) && customOpts.storage) {
|
|
1418
|
-
errLog('vxe.error.reqProp', ['id'])
|
|
1419
|
-
}
|
|
1420
|
-
}
|
|
1421
|
-
if (this.treeConfig && this.checkboxOpts.range) {
|
|
1422
|
-
errLog('vxe.error.noTree', ['checkbox-config.range'])
|
|
1423
|
-
}
|
|
1424
|
-
if (this.rowOpts.height && !this.showOverflow) {
|
|
1425
|
-
warnLog('vxe.error.notProp', ['table.show-overflow'])
|
|
1426
|
-
}
|
|
1427
|
-
if (!this.handleMousedownCellAreaEvent) {
|
|
1428
|
-
if (this.areaConfig) {
|
|
1429
|
-
warnLog('vxe.error.notProp', ['area-config'])
|
|
1430
|
-
}
|
|
1431
|
-
if (this.clipConfig) {
|
|
1432
|
-
warnLog('vxe.error.notProp', ['clip-config'])
|
|
1433
|
-
}
|
|
1434
|
-
if (this.fnrConfig) {
|
|
1435
|
-
warnLog('vxe.error.notProp', ['fnr-config'])
|
|
1436
|
-
}
|
|
1437
|
-
if (this.mouseOpts.area) {
|
|
1438
|
-
errLog('vxe.error.notProp', ['mouse-config.area'])
|
|
1439
|
-
return
|
|
1440
|
-
}
|
|
1441
|
-
}
|
|
1442
|
-
if (this.dragConfig) {
|
|
1443
|
-
warnLog('vxe.error.delProp', ['drag-config', 'row-drag-config'])
|
|
1427
|
+
if (!this.id) {
|
|
1428
|
+
if ((this.customConfig ? isEnableConf(customOpts) : customOpts.enabled) && customOpts.storage) {
|
|
1429
|
+
errLog('vxe.error.reqProp', ['id'])
|
|
1444
1430
|
}
|
|
1445
|
-
|
|
1446
|
-
|
|
1431
|
+
}
|
|
1432
|
+
if (this.treeConfig && this.checkboxOpts.range) {
|
|
1433
|
+
errLog('vxe.error.noTree', ['checkbox-config.range'])
|
|
1434
|
+
}
|
|
1435
|
+
if (this.rowOpts.height && !this.showOverflow) {
|
|
1436
|
+
warnLog('vxe.error.notProp', ['table.show-overflow'])
|
|
1437
|
+
}
|
|
1438
|
+
if (!this.handleMousedownCellAreaEvent) {
|
|
1439
|
+
if (this.areaConfig) {
|
|
1440
|
+
warnLog('vxe.error.notProp', ['area-config'])
|
|
1447
1441
|
}
|
|
1448
|
-
if (this.
|
|
1449
|
-
warnLog('vxe.error.
|
|
1442
|
+
if (this.clipConfig) {
|
|
1443
|
+
warnLog('vxe.error.notProp', ['clip-config'])
|
|
1450
1444
|
}
|
|
1451
|
-
if (this.
|
|
1452
|
-
warnLog('vxe.error.
|
|
1445
|
+
if (this.fnrConfig) {
|
|
1446
|
+
warnLog('vxe.error.notProp', ['fnr-config'])
|
|
1453
1447
|
}
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
if (this.mouseOpts.area && (this.treeConfig && !treeOpts.transform)) {
|
|
1458
|
-
errLog('vxe.error.noTree', ['mouse-config.area'])
|
|
1448
|
+
if (mouseOpts.area) {
|
|
1449
|
+
errLog('vxe.error.notProp', ['mouse-config.area'])
|
|
1450
|
+
return
|
|
1459
1451
|
}
|
|
1460
1452
|
}
|
|
1453
|
+
if (treeConfig && rowOpts.drag && !treeOpts.transform) {
|
|
1454
|
+
warnLog('vxe.error.notSupportProp', ['column-config.drag', 'tree-config.transform=false', 'tree-config.transform=true'])
|
|
1455
|
+
}
|
|
1456
|
+
if (this.dragConfig) {
|
|
1457
|
+
warnLog('vxe.error.delProp', ['drag-config', 'row-drag-config'])
|
|
1458
|
+
}
|
|
1459
|
+
if (this.treeConfig && treeOpts.children) {
|
|
1460
|
+
warnLog('vxe.error.delProp', ['tree-config.children', 'tree-config.childrenField'])
|
|
1461
|
+
}
|
|
1462
|
+
if (this.treeConfig && treeOpts.line) {
|
|
1463
|
+
warnLog('vxe.error.delProp', ['tree-config.line', 'tree-config.showLine'])
|
|
1464
|
+
}
|
|
1465
|
+
if (mouseOpts.area && mouseOpts.selected) {
|
|
1466
|
+
warnLog('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected'])
|
|
1467
|
+
}
|
|
1468
|
+
if (mouseOpts.area && (this.treeConfig && !treeOpts.transform)) {
|
|
1469
|
+
errLog('vxe.error.noTree', ['mouse-config.area'])
|
|
1470
|
+
}
|
|
1461
1471
|
|
|
1462
|
-
//
|
|
1463
|
-
if (
|
|
1464
|
-
|
|
1465
|
-
if (this.contextMenu) {
|
|
1466
|
-
warnLog('vxe.error.
|
|
1467
|
-
if (!XEUtils.isObject(this.contextMenu)) {
|
|
1468
|
-
warnLog('vxe.error.errProp', [`table.context-menu=${this.contextMenu}`, 'table.context-menu={}'])
|
|
1469
|
-
}
|
|
1470
|
-
}
|
|
1471
|
-
if (this.menuConfig && !XEUtils.isObject(this.menuConfig)) {
|
|
1472
|
-
warnLog('vxe.error.errProp', [`table.menu-config=${this.menuConfig}`, 'table.menu-config={}'])
|
|
1473
|
-
}
|
|
1474
|
-
if (this.exportConfig && !XEUtils.isObject(this.exportConfig)) {
|
|
1475
|
-
warnLog('vxe.error.errProp', [`table.export-config=${this.exportConfig}`, 'table.export-config={}'])
|
|
1476
|
-
}
|
|
1477
|
-
if (this.importConfig && !XEUtils.isObject(this.importConfig)) {
|
|
1478
|
-
warnLog('vxe.error.errProp', [`table.import-config=${this.importConfig}`, 'table.import-config={}'])
|
|
1479
|
-
}
|
|
1480
|
-
if (this.printConfig && !XEUtils.isObject(this.printConfig)) {
|
|
1481
|
-
warnLog('vxe.error.errProp', [`table.print-config=${this.printConfig}`, 'table.print-config={}'])
|
|
1482
|
-
}
|
|
1483
|
-
if (this.treeConfig && !XEUtils.isObject(this.treeConfig)) {
|
|
1484
|
-
warnLog('vxe.error.errProp', [`table.tree-config=${this.treeConfig}`, 'table.tree-config={}'])
|
|
1485
|
-
}
|
|
1486
|
-
if (this.customConfig && !XEUtils.isObject(this.customConfig)) {
|
|
1487
|
-
warnLog('vxe.error.errProp', [`table.custom-config=${this.customConfig}`, 'table.custom-config={}'])
|
|
1488
|
-
}
|
|
1489
|
-
if (this.editConfig && !XEUtils.isObject(this.editConfig)) {
|
|
1490
|
-
warnLog('vxe.error.errProp', [`table.edit-config=${this.editConfig}`, 'table.edit-config={}'])
|
|
1491
|
-
}
|
|
1492
|
-
if (this.emptyRender && !XEUtils.isObject(this.emptyRender)) {
|
|
1493
|
-
warnLog('vxe.error.errProp', [`table.empty-render=${this.emptyRender}`, 'table.empty-render={}'])
|
|
1494
|
-
}
|
|
1495
|
-
if (this.editConfig && this.editOpts.activeMethod) {
|
|
1496
|
-
warnLog('vxe.error.delProp', ['table.edit-config.activeMethod', 'table.edit-config.beforeEditMethod'])
|
|
1497
|
-
}
|
|
1498
|
-
if (this.treeConfig && this.checkboxOpts.isShiftKey) {
|
|
1499
|
-
errLog('vxe.error.errConflicts', ['tree-config', 'checkbox-config.isShiftKey'])
|
|
1500
|
-
}
|
|
1501
|
-
if (this.checkboxOpts.halfField) {
|
|
1502
|
-
warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField'])
|
|
1472
|
+
// 在 v3.0 中废弃 context-menu
|
|
1473
|
+
if (this.contextMenu) {
|
|
1474
|
+
warnLog('vxe.error.delProp', ['context-menu', 'menu-config'])
|
|
1475
|
+
if (!XEUtils.isObject(this.contextMenu)) {
|
|
1476
|
+
warnLog('vxe.error.errProp', [`table.context-menu=${this.contextMenu}`, 'table.context-menu={}'])
|
|
1503
1477
|
}
|
|
1504
1478
|
}
|
|
1479
|
+
if (this.menuConfig && !XEUtils.isObject(this.menuConfig)) {
|
|
1480
|
+
warnLog('vxe.error.errProp', [`table.menu-config=${this.menuConfig}`, 'table.menu-config={}'])
|
|
1481
|
+
}
|
|
1482
|
+
if (this.exportConfig && !XEUtils.isObject(this.exportConfig)) {
|
|
1483
|
+
warnLog('vxe.error.errProp', [`table.export-config=${this.exportConfig}`, 'table.export-config={}'])
|
|
1484
|
+
}
|
|
1485
|
+
if (this.importConfig && !XEUtils.isObject(this.importConfig)) {
|
|
1486
|
+
warnLog('vxe.error.errProp', [`table.import-config=${this.importConfig}`, 'table.import-config={}'])
|
|
1487
|
+
}
|
|
1488
|
+
if (this.printConfig && !XEUtils.isObject(this.printConfig)) {
|
|
1489
|
+
warnLog('vxe.error.errProp', [`table.print-config=${this.printConfig}`, 'table.print-config={}'])
|
|
1490
|
+
}
|
|
1491
|
+
if (this.treeConfig && !XEUtils.isObject(this.treeConfig)) {
|
|
1492
|
+
warnLog('vxe.error.errProp', [`table.tree-config=${this.treeConfig}`, 'table.tree-config={}'])
|
|
1493
|
+
}
|
|
1494
|
+
if (this.customConfig && !XEUtils.isObject(this.customConfig)) {
|
|
1495
|
+
warnLog('vxe.error.errProp', [`table.custom-config=${this.customConfig}`, 'table.custom-config={}'])
|
|
1496
|
+
}
|
|
1497
|
+
if (this.editConfig && !XEUtils.isObject(this.editConfig)) {
|
|
1498
|
+
warnLog('vxe.error.errProp', [`table.edit-config=${this.editConfig}`, 'table.edit-config={}'])
|
|
1499
|
+
}
|
|
1500
|
+
if (this.emptyRender && !XEUtils.isObject(this.emptyRender)) {
|
|
1501
|
+
warnLog('vxe.error.errProp', [`table.empty-render=${this.emptyRender}`, 'table.empty-render={}'])
|
|
1502
|
+
}
|
|
1503
|
+
if (this.editConfig && this.editOpts.activeMethod) {
|
|
1504
|
+
warnLog('vxe.error.delProp', ['table.edit-config.activeMethod', 'table.edit-config.beforeEditMethod'])
|
|
1505
|
+
}
|
|
1506
|
+
if (this.treeConfig && this.checkboxOpts.isShiftKey) {
|
|
1507
|
+
errLog('vxe.error.errConflicts', ['tree-config', 'checkbox-config.isShiftKey'])
|
|
1508
|
+
}
|
|
1509
|
+
if (this.checkboxOpts.halfField) {
|
|
1510
|
+
warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField'])
|
|
1511
|
+
}
|
|
1505
1512
|
|
|
1506
1513
|
// 检查是否有安装需要的模块
|
|
1507
|
-
if (
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
errLog('vxe.error.reqModule', ['Export'])
|
|
1519
|
-
}
|
|
1514
|
+
if (this.editConfig && !this._insert) {
|
|
1515
|
+
errLog('vxe.error.reqModule', ['Edit'])
|
|
1516
|
+
}
|
|
1517
|
+
if (this.editRules && !this._validate) {
|
|
1518
|
+
errLog('vxe.error.reqModule', ['Validator'])
|
|
1519
|
+
}
|
|
1520
|
+
if ((this.checkboxOpts.range || this.keyboardConfig || this.mouseConfig) && !this.handleCellMousedownEvent) {
|
|
1521
|
+
errLog('vxe.error.reqModule', ['Keyboard'])
|
|
1522
|
+
}
|
|
1523
|
+
if ((this.printConfig || this.importConfig || this.exportConfig) && !this._exportData) {
|
|
1524
|
+
errLog('vxe.error.reqModule', ['Export'])
|
|
1520
1525
|
}
|
|
1521
1526
|
|
|
1522
1527
|
Object.assign(scrollYStore, {
|
|
@@ -10,7 +10,7 @@ import type { VxeGridConstructor, GridPrivateMethods, ToolbarInternalData, VxeTa
|
|
|
10
10
|
|
|
11
11
|
const { getConfig, getIcon, getI18n, renderer, commands, createEvent, globalMixins, renderEmptyElement } = VxeUI
|
|
12
12
|
|
|
13
|
-
export default defineVxeComponent({
|
|
13
|
+
export default /* define-vxe-component start */ defineVxeComponent({
|
|
14
14
|
name: 'VxeToolbar',
|
|
15
15
|
mixins: [
|
|
16
16
|
globalMixins.sizeMixin
|
|
@@ -762,4 +762,4 @@ export default defineVxeComponent({
|
|
|
762
762
|
render (this: any, h) {
|
|
763
763
|
return this.renderVN(h)
|
|
764
764
|
}
|
|
765
|
-
})
|
|
765
|
+
}) /* define-vxe-component end */
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|