vxe-table 3.20.13 → 3.20.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/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/module/menu/mixin.js +3 -2
- package/es/table/src/cell.js +4 -3
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +34 -15
- 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/module/menu/mixin.js +3 -2
- package/lib/table/module/menu/mixin.min.js +1 -1
- package/lib/table/src/cell.js +4 -4
- package/lib/table/src/cell.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/module/menu/mixin.ts +3 -2
- package/packages/table/src/cell.ts +4 -3
- /package/es/{iconfont.1776926445391.ttf → iconfont.1780199621509.ttf} +0 -0
- /package/es/{iconfont.1776926445391.woff → iconfont.1780199621509.woff} +0 -0
- /package/es/{iconfont.1776926445391.woff2 → iconfont.1780199621509.woff2} +0 -0
- /package/lib/{iconfont.1776926445391.ttf → iconfont.1780199621509.ttf} +0 -0
- /package/lib/{iconfont.1776926445391.woff → iconfont.1780199621509.woff} +0 -0
- /package/lib/{iconfont.1776926445391.woff2 → iconfont.1780199621509.woff2} +0 -0
|
@@ -309,8 +309,9 @@ export default {
|
|
|
309
309
|
if (!menu.loading && !menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
|
|
310
310
|
const gMenuOpts = menus.get(menu.code);
|
|
311
311
|
const params = Object.assign({}, internalData._currMenuParams, { menu, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt, $event: evnt });
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
const tmMethod = gMenuOpts ? (gMenuOpts.tableMenuMethod || gMenuOpts.menuMethod) : null;
|
|
313
|
+
if (tmMethod) {
|
|
314
|
+
tmMethod(params, evnt);
|
|
314
315
|
}
|
|
315
316
|
// 在 v4 中废弃事件 context-menu-click
|
|
316
317
|
if ($xeTable.$listeners['context-menu-click']) {
|
package/es/table/src/cell.js
CHANGED
|
@@ -370,7 +370,7 @@ export const Cell = {
|
|
|
370
370
|
const tableInternalData = $table;
|
|
371
371
|
const { isRowGroupStatus } = tableReactData;
|
|
372
372
|
const { editConfig } = tableProps;
|
|
373
|
-
const { field, slots, editRender, cellRender, rowGroupNode, aggFunc
|
|
373
|
+
const { field, slots, editRender, cellRender, rowGroupNode, aggFunc } = column;
|
|
374
374
|
const isEnableEdit = editConfig && isEnableConf(editConfig);
|
|
375
375
|
const editRenderOpts = isEnableEdit && isEnableConf(editRender) ? editRender : null;
|
|
376
376
|
const cellRenderOpts = isEnableConf(cellRender) ? cellRender : null;
|
|
@@ -445,8 +445,9 @@ export const Cell = {
|
|
|
445
445
|
return renderCellBaseVNs(h, params, $table.callSlot(defaultSlot, params, h));
|
|
446
446
|
}
|
|
447
447
|
const renderOpts = editRenderOpts || cellRenderOpts;
|
|
448
|
-
//
|
|
449
|
-
|
|
448
|
+
// 如果是编辑表格:renderTableCell > formatter
|
|
449
|
+
// 如果是查看表格:renderTableDefault > formatter
|
|
450
|
+
if (renderOpts) {
|
|
450
451
|
const compConf = renderer.get(renderOpts.name);
|
|
451
452
|
if (compConf) {
|
|
452
453
|
const renderFn = editRenderOpts ? (compConf.renderTableCell || compConf.renderCell) : (compConf.renderTableDefault || compConf.renderDefault);
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -3311,7 +3311,7 @@ function getClass(property, params) {
|
|
|
3311
3311
|
/* unused harmony import specifier */ var VxeUI;
|
|
3312
3312
|
|
|
3313
3313
|
|
|
3314
|
-
const version = "3.20.
|
|
3314
|
+
const version = "3.20.15";
|
|
3315
3315
|
core_.VxeUI.version = version;
|
|
3316
3316
|
core_.VxeUI.tableVersion = version;
|
|
3317
3317
|
core_.VxeUI.setConfig({
|
|
@@ -4067,7 +4067,7 @@ var es_iterator_reduce = __webpack_require__(8237);
|
|
|
4067
4067
|
const {
|
|
4068
4068
|
log: log_log
|
|
4069
4069
|
} = core_.VxeUI;
|
|
4070
|
-
const log_version = `table v${"3.20.
|
|
4070
|
+
const log_version = `table v${"3.20.15"}`;
|
|
4071
4071
|
const warnLog = log_log.create('warn', log_version);
|
|
4072
4072
|
const errLog = log_log.create('error', log_version);
|
|
4073
4073
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -5821,8 +5821,7 @@ const Cell = {
|
|
|
5821
5821
|
editRender,
|
|
5822
5822
|
cellRender,
|
|
5823
5823
|
rowGroupNode,
|
|
5824
|
-
aggFunc
|
|
5825
|
-
formatter
|
|
5824
|
+
aggFunc
|
|
5826
5825
|
} = column;
|
|
5827
5826
|
const isEnableEdit = editConfig && isEnableConf(editConfig);
|
|
5828
5827
|
const editRenderOpts = isEnableEdit && isEnableConf(editRender) ? editRender : null;
|
|
@@ -5920,8 +5919,9 @@ const Cell = {
|
|
|
5920
5919
|
return renderCellBaseVNs(h, params, $table.callSlot(defaultSlot, params, h));
|
|
5921
5920
|
}
|
|
5922
5921
|
const renderOpts = editRenderOpts || cellRenderOpts;
|
|
5923
|
-
//
|
|
5924
|
-
|
|
5922
|
+
// 如果是编辑表格:renderTableCell > formatter
|
|
5923
|
+
// 如果是查看表格:renderTableDefault > formatter
|
|
5924
|
+
if (renderOpts) {
|
|
5925
5925
|
const compConf = cell_renderer.get(renderOpts.name);
|
|
5926
5926
|
if (compConf) {
|
|
5927
5927
|
const renderFn = editRenderOpts ? compConf.renderTableCell || compConf.renderCell : compConf.renderTableDefault || compConf.renderDefault;
|
|
@@ -14222,8 +14222,9 @@ const {
|
|
|
14222
14222
|
$gantt: $xeGantt,
|
|
14223
14223
|
$event: evnt
|
|
14224
14224
|
});
|
|
14225
|
-
|
|
14226
|
-
|
|
14225
|
+
const tmMethod = gMenuOpts ? gMenuOpts.tableMenuMethod || gMenuOpts.menuMethod : null;
|
|
14226
|
+
if (tmMethod) {
|
|
14227
|
+
tmMethod(params, evnt);
|
|
14227
14228
|
}
|
|
14228
14229
|
// 在 v4 中废弃事件 context-menu-click
|
|
14229
14230
|
if ($xeTable.$listeners['context-menu-click']) {
|
|
@@ -26616,7 +26617,7 @@ const Toolbar = VxeToolbar;
|
|
|
26616
26617
|
useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
|
|
26617
26618
|
barUnableLink: '工具栏无法关联表格',
|
|
26618
26619
|
expandContent: '展开行的插槽应该是 "content",请检查是否正确',
|
|
26619
|
-
reqComp: '缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useGlobal',
|
|
26620
|
+
reqComp: '缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useUI/useGlobal',
|
|
26620
26621
|
reqModule: '缺少 "{0}" 模块',
|
|
26621
26622
|
reqProp: '缺少必要的 "{0}" 参数,这可能会导致出现错误',
|
|
26622
26623
|
emptyProp: '参数 "{0}" 不允许为空',
|
|
@@ -26647,7 +26648,7 @@ const Toolbar = VxeToolbar;
|
|
|
26647
26648
|
treeNotImp: '树表格不支持导入',
|
|
26648
26649
|
treeCrossDrag: '只能拖拽第一层级',
|
|
26649
26650
|
treeDragChild: '父级不能拖拽到自己的子级中',
|
|
26650
|
-
reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/
|
|
26651
|
+
reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/start/npmInstall',
|
|
26651
26652
|
errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误',
|
|
26652
26653
|
useNew: '不建议使用 {0},请使用 {1}',
|
|
26653
26654
|
errorVersion: '版本不匹配,当前版本 {0},最低支持版本为 {1}'
|
|
@@ -26695,7 +26696,8 @@ const Toolbar = VxeToolbar;
|
|
|
26695
26696
|
select: {
|
|
26696
26697
|
clear: '清除',
|
|
26697
26698
|
allChecked: '全选',
|
|
26698
|
-
total: '{0}
|
|
26699
|
+
total: '已选 {0} 项',
|
|
26700
|
+
close: '关闭',
|
|
26699
26701
|
search: '搜索',
|
|
26700
26702
|
loadingText: '加载中...',
|
|
26701
26703
|
emptyText: '暂无数据',
|
|
@@ -26712,7 +26714,8 @@ const Toolbar = VxeToolbar;
|
|
|
26712
26714
|
allChecked: '全选',
|
|
26713
26715
|
allExpand: '全部展开',
|
|
26714
26716
|
clearExpand: '全部收起',
|
|
26715
|
-
total: '已选 {0}',
|
|
26717
|
+
total: '已选 {0} 项',
|
|
26718
|
+
close: '关闭',
|
|
26716
26719
|
search: '搜索',
|
|
26717
26720
|
emptyText: '暂无数据'
|
|
26718
26721
|
},
|
|
@@ -26755,7 +26758,7 @@ const Toolbar = VxeToolbar;
|
|
|
26755
26758
|
cstmDragTarget: '移动:{0}',
|
|
26756
26759
|
setting: {
|
|
26757
26760
|
colSort: '排序',
|
|
26758
|
-
sortHelpTip: '
|
|
26761
|
+
sortHelpTip: '点击图标开始拖动',
|
|
26759
26762
|
colTitle: '列标题',
|
|
26760
26763
|
colResizable: '列宽(像素)',
|
|
26761
26764
|
colVisible: '是否显示',
|
|
@@ -26763,7 +26766,15 @@ const Toolbar = VxeToolbar;
|
|
|
26763
26766
|
colFixedMax: '冻结列(最多 {0} 列)',
|
|
26764
26767
|
fixedLeft: '左侧',
|
|
26765
26768
|
fixedUnset: '不设置',
|
|
26766
|
-
fixedRight: '右侧'
|
|
26769
|
+
fixedRight: '右侧',
|
|
26770
|
+
moveUp: '上移',
|
|
26771
|
+
moveDn: '下移',
|
|
26772
|
+
putTop: '置顶',
|
|
26773
|
+
putBottom: '置尾',
|
|
26774
|
+
moveUpTitle: '点击向上移动',
|
|
26775
|
+
moveDnTitle: '点击向下移动',
|
|
26776
|
+
putTopTitle: '点击置顶',
|
|
26777
|
+
putBottomTitle: '点击置尾'
|
|
26767
26778
|
}
|
|
26768
26779
|
},
|
|
26769
26780
|
import: {
|
|
@@ -26821,6 +26832,10 @@ const Toolbar = VxeToolbar;
|
|
|
26821
26832
|
expMergeTitle: '如果存在,则支持带有合并结构的单元格',
|
|
26822
26833
|
expOptAllExpand: '展开树',
|
|
26823
26834
|
expAllExpandTitle: '如果存在,则支持将带有层级结构的数据全部展开',
|
|
26835
|
+
expOptTreeAllExpand: '展开树',
|
|
26836
|
+
expTreeAllExpandTitle: '如果存在,则自动展开所有树层级',
|
|
26837
|
+
expOptRowGroupAllExpand: '展开分组',
|
|
26838
|
+
expRowGroupAllExpandTitle: '如果存在,则自动展开所有分组层级',
|
|
26824
26839
|
expOptUseStyle: '样式',
|
|
26825
26840
|
expUseStyleTitle: '如果存在,则支持带样式的单元格',
|
|
26826
26841
|
expOptOriginal: '源数据',
|
|
@@ -27139,6 +27154,10 @@ const Toolbar = VxeToolbar;
|
|
|
27139
27154
|
contextMenu: {
|
|
27140
27155
|
loadingText: '加载中...'
|
|
27141
27156
|
},
|
|
27157
|
+
switch: {
|
|
27158
|
+
onText: '打开',
|
|
27159
|
+
offText: '关闭'
|
|
27160
|
+
},
|
|
27142
27161
|
gantt: {
|
|
27143
27162
|
tFullFormat: {
|
|
27144
27163
|
year: '{yyyy}年',
|
|
@@ -27229,7 +27248,7 @@ const Toolbar = VxeToolbar;
|
|
|
27229
27248
|
groupPlaceholder: '拖至此处进行分组',
|
|
27230
27249
|
valuesPlaceholder: '拖至此处进行聚合',
|
|
27231
27250
|
dragExistCol: '该列已存在',
|
|
27232
|
-
sortHelpTip: '
|
|
27251
|
+
sortHelpTip: '点击图标开始拖动'
|
|
27233
27252
|
},
|
|
27234
27253
|
aggFuncs: {
|
|
27235
27254
|
sum: '求和',
|