vxe-table 4.18.13 → 4.18.15
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/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/style.min.css +1 -1
- package/es/table/src/cell.js +4 -3
- package/es/table/src/table.js +9 -4
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +35 -17
- 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/style.min.css +1 -1
- package/lib/table/src/cell.js +4 -4
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/table.js +4 -4
- 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 +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/table.ts +10 -4
- /package/es/{iconfont.1776926463538.ttf → iconfont.1780641146761.ttf} +0 -0
- /package/es/{iconfont.1776926463538.woff → iconfont.1780641146761.woff} +0 -0
- /package/es/{iconfont.1776926463538.woff2 → iconfont.1780641146761.woff2} +0 -0
- /package/lib/{iconfont.1776926463538.ttf → iconfont.1780641146761.ttf} +0 -0
- /package/lib/{iconfont.1776926463538.woff → iconfont.1780641146761.woff} +0 -0
- /package/lib/{iconfont.1776926463538.woff2 → iconfont.1780641146761.woff2} +0 -0
package/es/table/src/cell.js
CHANGED
|
@@ -368,7 +368,7 @@ export const Cell = {
|
|
|
368
368
|
const tableInternalData = $table.internalData;
|
|
369
369
|
const { isRowGroupStatus } = tableReactData;
|
|
370
370
|
const { editConfig } = tableProps;
|
|
371
|
-
const { field, slots, editRender, cellRender, rowGroupNode, aggFunc
|
|
371
|
+
const { field, slots, editRender, cellRender, rowGroupNode, aggFunc } = column;
|
|
372
372
|
const isEnableEdit = editConfig && isEnableConf(editConfig);
|
|
373
373
|
const editRenderOpts = isEnableEdit && isEnableConf(editRender) ? editRender : null;
|
|
374
374
|
const cellRenderOpts = isEnableConf(cellRender) ? cellRender : null;
|
|
@@ -444,8 +444,9 @@ export const Cell = {
|
|
|
444
444
|
return renderCellBaseVNs(params, $table.callSlot(defaultSlot, params));
|
|
445
445
|
}
|
|
446
446
|
const renderOpts = editRenderOpts || cellRenderOpts;
|
|
447
|
-
//
|
|
448
|
-
|
|
447
|
+
// 如果是编辑表格:renderTableCell > formatter
|
|
448
|
+
// 如果是查看表格:renderTableDefault > formatter
|
|
449
|
+
if (renderOpts) {
|
|
449
450
|
const compConf = renderer.get(renderOpts.name);
|
|
450
451
|
if (compConf) {
|
|
451
452
|
const renderFn = editRenderOpts ? (compConf.renderTableCell || compConf.renderCell) : (compConf.renderTableDefault || compConf.renderDefault);
|
package/es/table/src/table.js
CHANGED
|
@@ -3650,6 +3650,7 @@ export default defineVxeComponent({
|
|
|
3650
3650
|
updateStyle();
|
|
3651
3651
|
}).then(() => {
|
|
3652
3652
|
computeScrollLoad();
|
|
3653
|
+
syncGanttScrollYStatus();
|
|
3653
3654
|
}).then(() => {
|
|
3654
3655
|
const virtualYOpts = computeVirtualYOpts.value;
|
|
3655
3656
|
// 是否启用了虚拟滚动
|
|
@@ -3709,6 +3710,7 @@ export default defineVxeComponent({
|
|
|
3709
3710
|
reactData.isRowLoading = false;
|
|
3710
3711
|
handleRecalculateStyle(false, false, false);
|
|
3711
3712
|
updateTreeLineStyle();
|
|
3713
|
+
syncGanttScrollYStatus();
|
|
3712
3714
|
// 如果是自动行高,特殊情况需调用 recalculate 手动刷新
|
|
3713
3715
|
if (!props.showOverflow) {
|
|
3714
3716
|
setTimeout(() => {
|
|
@@ -4027,9 +4029,14 @@ export default defineVxeComponent({
|
|
|
4027
4029
|
reactData.scrollXLoad = scrollXLoad;
|
|
4028
4030
|
return scrollXLoad;
|
|
4029
4031
|
};
|
|
4032
|
+
const syncGanttScrollYStatus = () => {
|
|
4033
|
+
const $xeGanttView = internalData.xeGanttView;
|
|
4034
|
+
if ($xeGanttView && $xeGanttView.handleUpdateSYStatus) {
|
|
4035
|
+
$xeGanttView.handleUpdateSYStatus(reactData.scrollYLoad);
|
|
4036
|
+
}
|
|
4037
|
+
};
|
|
4030
4038
|
const updateScrollYStatus = (fullData) => {
|
|
4031
4039
|
const { treeConfig } = props;
|
|
4032
|
-
const $xeGanttView = internalData.xeGanttView;
|
|
4033
4040
|
const virtualYOpts = computeVirtualYOpts.value;
|
|
4034
4041
|
const treeOpts = computeTreeOpts.value;
|
|
4035
4042
|
const { transform } = treeOpts;
|
|
@@ -4037,9 +4044,7 @@ export default defineVxeComponent({
|
|
|
4037
4044
|
// 如果gt为0,则总是启用
|
|
4038
4045
|
const scrollYLoad = (transform || !treeConfig) && !!virtualYOpts.enabled && virtualYOpts.gt > -1 && (virtualYOpts.gt === 0 || virtualYOpts.gt < allList.length);
|
|
4039
4046
|
reactData.scrollYLoad = scrollYLoad;
|
|
4040
|
-
|
|
4041
|
-
$xeGanttView.handleUpdateSYStatus(scrollYLoad);
|
|
4042
|
-
}
|
|
4047
|
+
syncGanttScrollYStatus();
|
|
4043
4048
|
return scrollYLoad;
|
|
4044
4049
|
};
|
|
4045
4050
|
/**
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED