vxe-table 3.14.3 → 3.14.4
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 +1 -0
- 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/keyboard/mixin.js +27 -9
- package/es/table/src/table.js +42 -17
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +75 -28
- 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 +1 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +1 -0
- 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/keyboard/mixin.js +28 -9
- package/lib/table/module/keyboard/mixin.min.js +1 -1
- package/lib/table/src/table.js +44 -17
- package/lib/table/src/table.min.js +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/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 +1 -0
- 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/keyboard/mixin.ts +25 -9
- package/packages/table/src/table.ts +44 -17
- /package/es/{iconfont.1743389110592.ttf → iconfont.1743393991959.ttf} +0 -0
- /package/es/{iconfont.1743389110592.woff → iconfont.1743393991959.woff} +0 -0
- /package/es/{iconfont.1743389110592.woff2 → iconfont.1743393991959.woff2} +0 -0
- /package/lib/{iconfont.1743389110592.ttf → iconfont.1743393991959.ttf} +0 -0
- /package/lib/{iconfont.1743389110592.woff → iconfont.1743393991959.woff} +0 -0
- /package/lib/{iconfont.1743389110592.woff2 → iconfont.1743393991959.woff2} +0 -0
|
@@ -18,6 +18,7 @@ export default {
|
|
|
18
18
|
scrollErrProp: '启用虚拟滚动后不支持该参数 "{0}"',
|
|
19
19
|
errConflicts: '参数 "{0}" 与 "{1}" 有冲突',
|
|
20
20
|
notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
|
|
21
|
+
notConflictProp: '当使用 "{0}" 时,应该设置 "{1}",否则可能会存在功能冲突',
|
|
21
22
|
unableInsert: '无法插入到指定位置,请检查参数是否正确',
|
|
22
23
|
useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
|
|
23
24
|
barUnableLink: '工具栏无法关联表格',
|
|
@@ -294,29 +294,45 @@ export default {
|
|
|
294
294
|
|
|
295
295
|
const { highlightCurrentRow, highlightCurrentColumn } = props
|
|
296
296
|
const rowOpts = $xeTable.computeRowOpts
|
|
297
|
+
const currentRowOpts = $xeTable.computeCurrentRowOpts
|
|
297
298
|
const columnOpts = $xeTable.computeColumnOpts
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
if (
|
|
301
|
-
|
|
299
|
+
const currentColumnOpts = $xeTable.computeCurrentColumnOpts
|
|
300
|
+
const params = handleMoveSelected($xeTable, evnt, args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow)
|
|
301
|
+
if (rowOpts.isCurrent || highlightCurrentRow) {
|
|
302
|
+
if (currentRowOpts.isFollowSelected) {
|
|
303
|
+
$xeTable.triggerCurrentRowEvent(evnt, params)
|
|
304
|
+
} else {
|
|
305
|
+
// 当前行按键上下移动
|
|
306
|
+
if ((isUpArrow || isDwArrow) && (rowOpts.isCurrent || highlightCurrentRow)) {
|
|
307
|
+
$xeTable.moveCurrentRow(isUpArrow, isDwArrow, evnt)
|
|
308
|
+
}
|
|
309
|
+
}
|
|
302
310
|
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
311
|
+
if (columnOpts.isCurrent || highlightCurrentColumn) {
|
|
312
|
+
if (currentColumnOpts.isFollowSelected) {
|
|
313
|
+
$xeTable.triggerCurrentColumnEvent(evnt, params)
|
|
314
|
+
} else {
|
|
315
|
+
// 当前行按键左右移动
|
|
316
|
+
if ((isLeftArrow || isRightArrow) && (columnOpts.isCurrent || highlightCurrentColumn)) {
|
|
317
|
+
$xeTable.moveCurrentColumn(isLeftArrow, isRightArrow, evnt)
|
|
318
|
+
}
|
|
319
|
+
}
|
|
306
320
|
}
|
|
307
321
|
},
|
|
308
322
|
moveEnterSelected (args: any, isLeftArrow: boolean, isUpArrow: boolean, isRightArrow: boolean, isDwArrow: boolean, evnt: any) {
|
|
309
323
|
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
324
|
+
const props = $xeTable
|
|
310
325
|
|
|
326
|
+
const { highlightCurrentRow, highlightCurrentColumn } = props
|
|
311
327
|
const rowOpts = $xeTable.computeRowOpts
|
|
312
328
|
const currentRowOpts = $xeTable.computeCurrentRowOpts
|
|
313
329
|
const columnOpts = $xeTable.computeColumnOpts
|
|
314
330
|
const currentColumnOpts = $xeTable.computeCurrentColumnOpts
|
|
315
331
|
const params = handleMoveSelected($xeTable, evnt, args, isLeftArrow, isUpArrow, isRightArrow, isDwArrow)
|
|
316
|
-
if ((rowOpts.isCurrent && currentRowOpts.isFollowSelected)) {
|
|
332
|
+
if (((rowOpts.isCurrent || highlightCurrentRow) && currentRowOpts.isFollowSelected)) {
|
|
317
333
|
$xeTable.triggerCurrentRowEvent(evnt, params)
|
|
318
334
|
}
|
|
319
|
-
if (columnOpts.isCurrent && currentColumnOpts.isFollowSelected) {
|
|
335
|
+
if ((columnOpts.isCurrent || highlightCurrentColumn) && currentColumnOpts.isFollowSelected) {
|
|
320
336
|
$xeTable.triggerCurrentColumnEvent(evnt, params)
|
|
321
337
|
}
|
|
322
338
|
},
|
|
@@ -1415,8 +1415,9 @@ export default {
|
|
|
1415
1415
|
swYTotal: 0
|
|
1416
1416
|
})
|
|
1417
1417
|
|
|
1418
|
-
const { data, exportConfig, importConfig, treeConfig, showOverflow } = props
|
|
1418
|
+
const { data, exportConfig, importConfig, treeConfig, showOverflow, highlightCurrentRow, highlightCurrentColumn } = props
|
|
1419
1419
|
const { scrollXStore, scrollYStore } = internalData
|
|
1420
|
+
const columnOpts = $xeTable.computeColumnOpts
|
|
1420
1421
|
const editOpts = $xeTable.computeEditOpts
|
|
1421
1422
|
const treeOpts = $xeTable.computeTreeOpts
|
|
1422
1423
|
const radioOpts = $xeTable.computeRadioOpts
|
|
@@ -1427,6 +1428,10 @@ export default {
|
|
|
1427
1428
|
const mouseOpts = $xeTable.computeMouseOpts
|
|
1428
1429
|
const exportOpts = $xeTable.computeExportOpts
|
|
1429
1430
|
const importOpts = $xeTable.computeImportOpts
|
|
1431
|
+
const currentRowOpts = $xeTable.computeCurrentRowOpts
|
|
1432
|
+
const currentColumnOpts = $xeTable.computeCurrentColumnOpts
|
|
1433
|
+
const virtualXOpts = $xeTable.computeVirtualXOpts
|
|
1434
|
+
const virtualYOpts = $xeTable.computeVirtualYOpts
|
|
1430
1435
|
|
|
1431
1436
|
if (props.rowId) {
|
|
1432
1437
|
warnLog('vxe.error.delProp', ['row-id', 'row-config.keyField'])
|
|
@@ -1539,29 +1544,51 @@ export default {
|
|
|
1539
1544
|
warnLog('vxe.error.errProp', [`table.context-menu=${this.contextMenu}`, 'table.context-menu={}'])
|
|
1540
1545
|
}
|
|
1541
1546
|
}
|
|
1542
|
-
if (
|
|
1543
|
-
warnLog('vxe.error.errProp', [`table.menu-config=${
|
|
1547
|
+
if (props.menuConfig && !XEUtils.isObject(props.menuConfig)) {
|
|
1548
|
+
warnLog('vxe.error.errProp', [`table.menu-config=${props.menuConfig}`, 'table.menu-config={}'])
|
|
1549
|
+
}
|
|
1550
|
+
if (props.exportConfig && !XEUtils.isObject(props.exportConfig)) {
|
|
1551
|
+
warnLog('vxe.error.errProp', [`table.export-config=${props.exportConfig}`, 'table.export-config={}'])
|
|
1552
|
+
}
|
|
1553
|
+
if (props.importConfig && !XEUtils.isObject(props.importConfig)) {
|
|
1554
|
+
warnLog('vxe.error.errProp', [`table.import-config=${props.importConfig}`, 'table.import-config={}'])
|
|
1555
|
+
}
|
|
1556
|
+
if (props.printConfig && !XEUtils.isObject(props.printConfig)) {
|
|
1557
|
+
warnLog('vxe.error.errProp', [`table.print-config=${props.printConfig}`, 'table.print-config={}'])
|
|
1558
|
+
}
|
|
1559
|
+
if (props.treeConfig && !XEUtils.isObject(props.treeConfig)) {
|
|
1560
|
+
warnLog('vxe.error.errProp', [`table.tree-config=${props.treeConfig}`, 'table.tree-config={}'])
|
|
1544
1561
|
}
|
|
1545
|
-
if (
|
|
1546
|
-
warnLog('vxe.error.errProp', [`table.
|
|
1562
|
+
if (props.customConfig && !XEUtils.isObject(props.customConfig)) {
|
|
1563
|
+
warnLog('vxe.error.errProp', [`table.custom-config=${props.customConfig}`, 'table.custom-config={}'])
|
|
1547
1564
|
}
|
|
1548
|
-
if (
|
|
1549
|
-
warnLog('vxe.error.errProp', [`table.
|
|
1565
|
+
if (props.editConfig && !XEUtils.isObject(props.editConfig)) {
|
|
1566
|
+
warnLog('vxe.error.errProp', [`table.edit-config=${props.editConfig}`, 'table.edit-config={}'])
|
|
1550
1567
|
}
|
|
1551
|
-
if (
|
|
1552
|
-
warnLog('vxe.error.errProp', [`table.
|
|
1568
|
+
if (props.emptyRender && !XEUtils.isObject(props.emptyRender)) {
|
|
1569
|
+
warnLog('vxe.error.errProp', [`table.empty-render=${props.emptyRender}`, 'table.empty-render={}'])
|
|
1553
1570
|
}
|
|
1554
|
-
|
|
1555
|
-
|
|
1571
|
+
|
|
1572
|
+
if ((rowOpts.isCurrent || highlightCurrentRow) && !XEUtils.isBoolean(currentRowOpts.isFollowSelected)) {
|
|
1573
|
+
warnLog('vxe.error.notConflictProp', ['row-config.isCurrent', 'current-row-config.isFollowSelected'])
|
|
1556
1574
|
}
|
|
1557
|
-
if (
|
|
1558
|
-
warnLog('vxe.error.
|
|
1575
|
+
if ((columnOpts.isCurrent || highlightCurrentColumn) && !XEUtils.isBoolean(currentColumnOpts.isFollowSelected)) {
|
|
1576
|
+
warnLog('vxe.error.notConflictProp', ['column-config.isCurrent', 'current-column-config.isFollowSelected'])
|
|
1559
1577
|
}
|
|
1560
|
-
|
|
1561
|
-
|
|
1578
|
+
|
|
1579
|
+
// 如果不支持虚拟滚动
|
|
1580
|
+
if (props.spanMethod) {
|
|
1581
|
+
if (virtualXOpts.enabled) {
|
|
1582
|
+
warnLog('vxe.error.notConflictProp', ['span-method', 'virtual-x-config.enabled=false'])
|
|
1583
|
+
}
|
|
1584
|
+
if (virtualYOpts.enabled) {
|
|
1585
|
+
warnLog('vxe.error.notConflictProp', ['span-method', 'virtual-y-config.enabled=false'])
|
|
1586
|
+
}
|
|
1562
1587
|
}
|
|
1563
|
-
if (
|
|
1564
|
-
|
|
1588
|
+
if (props.footerSpanMethod) {
|
|
1589
|
+
if (virtualXOpts.enabled) {
|
|
1590
|
+
warnLog('vxe.error.notConflictProp', ['footer-span-method', 'virtual-x-config.enabled=false'])
|
|
1591
|
+
}
|
|
1565
1592
|
}
|
|
1566
1593
|
|
|
1567
1594
|
// 检查是否有安装需要的模块
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|