vxe-table 3.20.14 → 3.20.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 +27 -9
- package/es/locale/lang/de-DE.js +25 -7
- package/es/locale/lang/en-US.js +26 -8
- package/es/locale/lang/es-ES.js +25 -7
- package/es/locale/lang/fr-FR.js +27 -9
- package/es/locale/lang/hu-HU.js +26 -8
- package/es/locale/lang/hy-AM.js +26 -8
- package/es/locale/lang/id-ID.js +27 -9
- package/es/locale/lang/it-IT.js +26 -8
- package/es/locale/lang/ja-JP.js +25 -7
- package/es/locale/lang/ko-KR.js +26 -8
- package/es/locale/lang/ms-MY.js +27 -9
- package/es/locale/lang/nb-NO.js +27 -9
- package/es/locale/lang/pt-BR.js +27 -9
- package/es/locale/lang/ru-RU.js +25 -7
- package/es/locale/lang/th-TH.js +26 -8
- package/es/locale/lang/ug-CN.js +26 -8
- package/es/locale/lang/uk-UA.js +26 -8
- package/es/locale/lang/uz-UZ.js +26 -8
- package/es/locale/lang/vi-VN.js +25 -7
- package/es/locale/lang/zh-CHT.js +25 -7
- package/es/locale/lang/zh-CN.js +25 -7
- package/es/style.css +1 -1
- package/es/table/src/cell.js +4 -3
- package/es/table/src/methods.js +13 -6
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +36 -18
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +27 -9
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +27 -9
- package/lib/locale/lang/de-DE.js +25 -7
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +25 -7
- package/lib/locale/lang/en-US.js +26 -8
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +26 -8
- package/lib/locale/lang/es-ES.js +25 -7
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +25 -7
- package/lib/locale/lang/fr-FR.js +27 -9
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +27 -9
- package/lib/locale/lang/hu-HU.js +26 -8
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +26 -8
- package/lib/locale/lang/hy-AM.js +26 -8
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +26 -8
- package/lib/locale/lang/id-ID.js +27 -9
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +27 -9
- package/lib/locale/lang/it-IT.js +26 -8
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +26 -8
- package/lib/locale/lang/ja-JP.js +25 -7
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +25 -7
- package/lib/locale/lang/ko-KR.js +26 -8
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +26 -8
- package/lib/locale/lang/ms-MY.js +27 -9
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +27 -9
- package/lib/locale/lang/nb-NO.js +27 -9
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +27 -9
- package/lib/locale/lang/pt-BR.js +27 -9
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +27 -9
- package/lib/locale/lang/ru-RU.js +25 -7
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +25 -7
- package/lib/locale/lang/th-TH.js +26 -8
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +26 -8
- package/lib/locale/lang/ug-CN.js +26 -8
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +26 -8
- package/lib/locale/lang/uk-UA.js +26 -8
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +26 -8
- package/lib/locale/lang/uz-UZ.js +26 -8
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +26 -8
- package/lib/locale/lang/vi-VN.js +25 -7
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +25 -7
- package/lib/locale/lang/zh-CHT.js +25 -7
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +25 -7
- package/lib/locale/lang/zh-CN.js +25 -7
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +25 -7
- package/lib/style.css +1 -1
- package/lib/table/src/cell.js +4 -4
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/methods.js +5 -5
- package/lib/table/src/methods.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 +1 -1
- package/packages/locale/lang/ar-EG.ts +850 -832
- package/packages/locale/lang/de-DE.ts +850 -832
- package/packages/locale/lang/en-US.ts +850 -832
- package/packages/locale/lang/es-ES.ts +850 -832
- package/packages/locale/lang/fr-FR.ts +850 -832
- package/packages/locale/lang/hu-HU.ts +850 -832
- package/packages/locale/lang/hy-AM.ts +850 -832
- package/packages/locale/lang/id-ID.ts +850 -832
- package/packages/locale/lang/it-IT.ts +850 -832
- package/packages/locale/lang/ja-JP.ts +850 -832
- package/packages/locale/lang/ko-KR.ts +850 -832
- package/packages/locale/lang/ms-MY.ts +850 -832
- package/packages/locale/lang/nb-NO.ts +850 -832
- package/packages/locale/lang/pt-BR.ts +850 -832
- package/packages/locale/lang/ru-RU.ts +850 -832
- package/packages/locale/lang/th-TH.ts +850 -832
- package/packages/locale/lang/ug-CN.ts +850 -832
- package/packages/locale/lang/uk-UA.ts +850 -832
- package/packages/locale/lang/uz-UZ.ts +850 -832
- package/packages/locale/lang/vi-VN.ts +850 -832
- package/packages/locale/lang/zh-CHT.ts +850 -832
- package/packages/locale/lang/zh-CN.ts +25 -7
- package/packages/table/src/cell.ts +4 -3
- package/packages/table/src/methods.ts +15 -6
- /package/es/{iconfont.1779778138885.ttf → iconfont.1780641120770.ttf} +0 -0
- /package/es/{iconfont.1779778138885.woff → iconfont.1780641120770.woff} +0 -0
- /package/es/{iconfont.1779778138885.woff2 → iconfont.1780641120770.woff2} +0 -0
- /package/lib/{iconfont.1779778138885.ttf → iconfont.1780641120770.ttf} +0 -0
- /package/lib/{iconfont.1779778138885.woff → iconfont.1780641120770.woff} +0 -0
- /package/lib/{iconfont.1779778138885.woff2 → iconfont.1780641120770.woff2} +0 -0
|
@@ -25,7 +25,7 @@ export default {
|
|
|
25
25
|
useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
|
|
26
26
|
barUnableLink: '工具栏无法关联表格',
|
|
27
27
|
expandContent: '展开行的插槽应该是 "content",请检查是否正确',
|
|
28
|
-
reqComp: '缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useGlobal',
|
|
28
|
+
reqComp: '缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useUI/useGlobal',
|
|
29
29
|
reqModule: '缺少 "{0}" 模块',
|
|
30
30
|
reqProp: '缺少必要的 "{0}" 参数,这可能会导致出现错误',
|
|
31
31
|
emptyProp: '参数 "{0}" 不允许为空',
|
|
@@ -56,7 +56,7 @@ export default {
|
|
|
56
56
|
treeNotImp: '树表格不支持导入',
|
|
57
57
|
treeCrossDrag: '只能拖拽第一层级',
|
|
58
58
|
treeDragChild: '父级不能拖拽到自己的子级中',
|
|
59
|
-
reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/
|
|
59
|
+
reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/start/npmInstall',
|
|
60
60
|
errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误',
|
|
61
61
|
useNew: '不建议使用 {0},请使用 {1}',
|
|
62
62
|
errorVersion: '版本不匹配,当前版本 {0},最低支持版本为 {1}'
|
|
@@ -104,7 +104,8 @@ export default {
|
|
|
104
104
|
select: {
|
|
105
105
|
clear: '清除',
|
|
106
106
|
allChecked: '全选',
|
|
107
|
-
total: '{0}
|
|
107
|
+
total: '已选 {0} 项',
|
|
108
|
+
close: '关闭',
|
|
108
109
|
search: '搜索',
|
|
109
110
|
loadingText: '加载中...',
|
|
110
111
|
emptyText: '暂无数据',
|
|
@@ -121,7 +122,8 @@ export default {
|
|
|
121
122
|
allChecked: '全选',
|
|
122
123
|
allExpand: '全部展开',
|
|
123
124
|
clearExpand: '全部收起',
|
|
124
|
-
total: '已选 {0}',
|
|
125
|
+
total: '已选 {0} 项',
|
|
126
|
+
close: '关闭',
|
|
125
127
|
search: '搜索',
|
|
126
128
|
emptyText: '暂无数据'
|
|
127
129
|
},
|
|
@@ -164,7 +166,7 @@ export default {
|
|
|
164
166
|
cstmDragTarget: '移动:{0}',
|
|
165
167
|
setting: {
|
|
166
168
|
colSort: '排序',
|
|
167
|
-
sortHelpTip: '
|
|
169
|
+
sortHelpTip: '点击图标开始拖动',
|
|
168
170
|
colTitle: '列标题',
|
|
169
171
|
colResizable: '列宽(像素)',
|
|
170
172
|
colVisible: '是否显示',
|
|
@@ -172,7 +174,15 @@ export default {
|
|
|
172
174
|
colFixedMax: '冻结列(最多 {0} 列)',
|
|
173
175
|
fixedLeft: '左侧',
|
|
174
176
|
fixedUnset: '不设置',
|
|
175
|
-
fixedRight: '右侧'
|
|
177
|
+
fixedRight: '右侧',
|
|
178
|
+
moveUp: '上移',
|
|
179
|
+
moveDn: '下移',
|
|
180
|
+
putTop: '置顶',
|
|
181
|
+
putBottom: '置尾',
|
|
182
|
+
moveUpTitle: '点击向上移动',
|
|
183
|
+
moveDnTitle: '点击向下移动',
|
|
184
|
+
putTopTitle: '点击置顶',
|
|
185
|
+
putBottomTitle: '点击置尾'
|
|
176
186
|
}
|
|
177
187
|
},
|
|
178
188
|
import: {
|
|
@@ -230,6 +240,10 @@ export default {
|
|
|
230
240
|
expMergeTitle: '如果存在,则支持带有合并结构的单元格',
|
|
231
241
|
expOptAllExpand: '展开树',
|
|
232
242
|
expAllExpandTitle: '如果存在,则支持将带有层级结构的数据全部展开',
|
|
243
|
+
expOptTreeAllExpand: '展开树',
|
|
244
|
+
expTreeAllExpandTitle: '如果存在,则自动展开所有树层级',
|
|
245
|
+
expOptRowGroupAllExpand: '展开分组',
|
|
246
|
+
expRowGroupAllExpandTitle: '如果存在,则自动展开所有分组层级',
|
|
233
247
|
expOptUseStyle: '样式',
|
|
234
248
|
expUseStyleTitle: '如果存在,则支持带样式的单元格',
|
|
235
249
|
expOptOriginal: '源数据',
|
|
@@ -548,6 +562,10 @@ export default {
|
|
|
548
562
|
contextMenu: {
|
|
549
563
|
loadingText: '加载中...'
|
|
550
564
|
},
|
|
565
|
+
switch: {
|
|
566
|
+
onText: '打开',
|
|
567
|
+
offText: '关闭'
|
|
568
|
+
},
|
|
551
569
|
gantt: {
|
|
552
570
|
tFullFormat: {
|
|
553
571
|
year: '{yyyy}年',
|
|
@@ -638,7 +656,7 @@ export default {
|
|
|
638
656
|
groupPlaceholder: '拖至此处进行分组',
|
|
639
657
|
valuesPlaceholder: '拖至此处进行聚合',
|
|
640
658
|
dragExistCol: '该列已存在',
|
|
641
|
-
sortHelpTip: '
|
|
659
|
+
sortHelpTip: '点击图标开始拖动'
|
|
642
660
|
},
|
|
643
661
|
aggFuncs: {
|
|
644
662
|
sum: '求和',
|
|
@@ -391,7 +391,7 @@ export const Cell = {
|
|
|
391
391
|
const tableInternalData = $table as unknown as TableInternalData
|
|
392
392
|
const { isRowGroupStatus } = tableReactData
|
|
393
393
|
const { editConfig } = tableProps
|
|
394
|
-
const { field, slots, editRender, cellRender, rowGroupNode, aggFunc
|
|
394
|
+
const { field, slots, editRender, cellRender, rowGroupNode, aggFunc } = column
|
|
395
395
|
const isEnableEdit = editConfig && isEnableConf(editConfig)
|
|
396
396
|
const editRenderOpts = isEnableEdit && isEnableConf(editRender) ? editRender : null
|
|
397
397
|
const cellRenderOpts = isEnableConf(cellRender) ? cellRender : null
|
|
@@ -464,8 +464,9 @@ export const Cell = {
|
|
|
464
464
|
return renderCellBaseVNs(h, params, $table.callSlot(defaultSlot, params, h))
|
|
465
465
|
}
|
|
466
466
|
const renderOpts = editRenderOpts || cellRenderOpts
|
|
467
|
-
//
|
|
468
|
-
|
|
467
|
+
// 如果是编辑表格:renderTableCell > formatter
|
|
468
|
+
// 如果是查看表格:renderTableDefault > formatter
|
|
469
|
+
if (renderOpts) {
|
|
469
470
|
const compConf = renderer.get(renderOpts.name)
|
|
470
471
|
if (compConf) {
|
|
471
472
|
const renderFn = editRenderOpts ? (compConf.renderTableCell || compConf.renderCell) : (compConf.renderTableDefault || compConf.renderDefault)
|
|
@@ -432,13 +432,22 @@ function updateScrollXStatus ($xeTable: VxeTableConstructor & VxeTablePrivateMet
|
|
|
432
432
|
return scrollXLoad
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
+
function syncGanttScrollYStatus ($xeTable: VxeTableConstructor & VxeTablePrivateMethods) {
|
|
436
|
+
const reactData = $xeTable as unknown as TableReactData
|
|
437
|
+
const internalData = $xeTable as unknown as TableInternalData
|
|
438
|
+
|
|
439
|
+
const $xeGanttView = internalData.xeGanttView
|
|
440
|
+
if ($xeGanttView && $xeGanttView.handleUpdateSYStatus) {
|
|
441
|
+
$xeGanttView.handleUpdateSYStatus(reactData.scrollYLoad)
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
435
445
|
function updateScrollYStatus ($xeTable: VxeTableConstructor & VxeTablePrivateMethods, fullData?: any[]) {
|
|
436
446
|
const props = $xeTable
|
|
437
447
|
const reactData = $xeTable as unknown as TableReactData
|
|
438
448
|
const internalData = $xeTable as unknown as TableInternalData
|
|
439
449
|
|
|
440
450
|
const { treeConfig } = props
|
|
441
|
-
const $xeGanttView = internalData.xeGanttView
|
|
442
451
|
const virtualYOpts = $xeTable.computeVirtualYOpts
|
|
443
452
|
const treeOpts = $xeTable.computeTreeOpts
|
|
444
453
|
const { transform } = treeOpts
|
|
@@ -446,9 +455,7 @@ function updateScrollYStatus ($xeTable: VxeTableConstructor & VxeTablePrivateMet
|
|
|
446
455
|
// 如果gt为0,则总是启用
|
|
447
456
|
const scrollYLoad = (transform || !treeConfig) && !!virtualYOpts.enabled && virtualYOpts.gt > -1 && (virtualYOpts.gt === 0 || virtualYOpts.gt < allList.length)
|
|
448
457
|
reactData.scrollYLoad = scrollYLoad
|
|
449
|
-
|
|
450
|
-
$xeGanttView.handleUpdateSYStatus(scrollYLoad)
|
|
451
|
-
}
|
|
458
|
+
syncGanttScrollYStatus($xeTable)
|
|
452
459
|
return scrollYLoad
|
|
453
460
|
}
|
|
454
461
|
|
|
@@ -3509,6 +3516,7 @@ function loadTableData ($xeTable: VxeTableConstructor & VxeTablePrivateMethods,
|
|
|
3509
3516
|
updateStyle($xeTable)
|
|
3510
3517
|
}).then(() => {
|
|
3511
3518
|
computeScrollLoad($xeTable)
|
|
3519
|
+
syncGanttScrollYStatus($xeTable)
|
|
3512
3520
|
}).then(() => {
|
|
3513
3521
|
const virtualYOpts = $xeTable.computeVirtualYOpts
|
|
3514
3522
|
// 是否启用了虚拟滚动
|
|
@@ -3571,6 +3579,7 @@ function loadTableData ($xeTable: VxeTableConstructor & VxeTablePrivateMethods,
|
|
|
3571
3579
|
reactData.isRowLoading = false
|
|
3572
3580
|
handleRecalculateStyle($xeTable, false, false, false)
|
|
3573
3581
|
updateTreeLineStyle($xeTable)
|
|
3582
|
+
syncGanttScrollYStatus($xeTable)
|
|
3574
3583
|
// 如果是自动行高,特殊情况需调用 recalculate 手动刷新
|
|
3575
3584
|
if (!props.showOverflow) {
|
|
3576
3585
|
setTimeout(() => {
|
|
@@ -12373,10 +12382,10 @@ const tableMethods: any = {
|
|
|
12373
12382
|
return updateStyle($xeTable)
|
|
12374
12383
|
})
|
|
12375
12384
|
},
|
|
12376
|
-
updateScrollYStatus () {
|
|
12385
|
+
updateScrollYStatus (fullData: any[]) {
|
|
12377
12386
|
const $xeTable = this
|
|
12378
12387
|
|
|
12379
|
-
return updateScrollYStatus($xeTable)
|
|
12388
|
+
return updateScrollYStatus($xeTable, fullData)
|
|
12380
12389
|
},
|
|
12381
12390
|
/**
|
|
12382
12391
|
* 如果有滚动条,则滚动到对应的位置
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|