vxe-table 3.16.0-beta.8 → 3.16.0
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/README.md +1 -1
- 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/ms-MY.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/uz-UZ.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/src/cell.js +6 -3
- package/es/table/src/methods.js +9 -4
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +21 -11
- 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/ar-EG.umd.js +1 -0
- package/lib/locale/lang/de-DE.js +1 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +1 -0
- 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/fr-FR.umd.js +1 -0
- 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/hy-AM.umd.js +1 -0
- package/lib/locale/lang/id-ID.js +1 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +1 -0
- package/lib/locale/lang/it-IT.js +1 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +1 -0
- 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/ms-MY.js +1 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.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/nb-NO.umd.js +1 -0
- 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/th-TH.umd.js +1 -0
- package/lib/locale/lang/ug-CN.js +1 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +1 -0
- 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/uz-UZ.js +1 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.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/vi-VN.umd.js +1 -0
- 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/src/cell.js +8 -7
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/methods.js +13 -4
- 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 +3 -3
- 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/ms-MY.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/uz-UZ.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/src/cell.ts +3 -3
- package/packages/table/src/methods.ts +9 -4
- package/types/all.d.ts +3 -2
- /package/es/{iconfont.1751529199254.ttf → iconfont.1751975474036.ttf} +0 -0
- /package/es/{iconfont.1751529199254.woff → iconfont.1751975474036.woff} +0 -0
- /package/es/{iconfont.1751529199254.woff2 → iconfont.1751975474036.woff2} +0 -0
- /package/lib/{iconfont.1751529199254.ttf → iconfont.1751975474036.ttf} +0 -0
- /package/lib/{iconfont.1751529199254.woff → iconfont.1751975474036.woff} +0 -0
- /package/lib/{iconfont.1751529199254.woff2 → iconfont.1751975474036.woff2} +0 -0
package/es/table/src/cell.js
CHANGED
|
@@ -166,14 +166,14 @@ function getRenderDefaultColumnTitle(h, column, content) {
|
|
|
166
166
|
}
|
|
167
167
|
function renderTitleContent(h, params, content) {
|
|
168
168
|
const { $table, column } = params;
|
|
169
|
-
const { showHeaderOverflow } = column;
|
|
170
169
|
const tableProps = $table;
|
|
171
170
|
const tableReactData = $table;
|
|
172
171
|
const { showHeaderOverflow: allColumnHeaderOverflow } = tableProps;
|
|
173
172
|
const { isRowGroupStatus } = tableReactData;
|
|
173
|
+
const { showHeaderOverflow } = column;
|
|
174
174
|
const tooltipOpts = $table.computeTooltipOpts;
|
|
175
175
|
const showAllTip = tooltipOpts.showAll;
|
|
176
|
-
const headOverflow = XEUtils.
|
|
176
|
+
const headOverflow = XEUtils.eqNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
|
|
177
177
|
const showTitle = headOverflow === 'title';
|
|
178
178
|
const showTooltip = headOverflow === true || headOverflow === 'tooltip';
|
|
179
179
|
const ons = {};
|
|
@@ -202,7 +202,10 @@ function renderTitleContent(h, params, content) {
|
|
|
202
202
|
}
|
|
203
203
|
const titleVN = getRenderDefaultColumnTitle(h, column, content);
|
|
204
204
|
return [
|
|
205
|
-
h('span',
|
|
205
|
+
h('span', {
|
|
206
|
+
class: 'vxe-cell--title',
|
|
207
|
+
on: ons
|
|
208
|
+
}, isRowGroupStatus && column.aggFunc && $table.getPivotTableAggregateRenderColTitles
|
|
206
209
|
? $table.getPivotTableAggregateRenderColTitles(h, column, titleVN)
|
|
207
210
|
: [
|
|
208
211
|
titleVN
|
package/es/table/src/methods.js
CHANGED
|
@@ -10378,25 +10378,30 @@ const Methods = {
|
|
|
10378
10378
|
});
|
|
10379
10379
|
},
|
|
10380
10380
|
/**
|
|
10381
|
-
* 设置合并单元格
|
|
10382
|
-
* @param {TableMergeConfig[]} merges { row: Row|number, column: ColumnInfo|number, rowspan: number, colspan: number }
|
|
10381
|
+
* 设置合并单元格 [{ row: Row|number, column: ColumnInfo|number, rowspan: number, colspan: number }]
|
|
10383
10382
|
*/
|
|
10384
10383
|
setMergeCells(merges) {
|
|
10385
10384
|
const $xeTable = this;
|
|
10386
10385
|
const props = $xeTable;
|
|
10386
|
+
const reactData = $xeTable;
|
|
10387
|
+
const internalData = $xeTable;
|
|
10387
10388
|
if (props.spanMethod) {
|
|
10388
10389
|
errLog('vxe.error.errConflicts', ['merge-cells', 'span-method']);
|
|
10389
10390
|
}
|
|
10390
10391
|
handleBodyMerge($xeTable, merges);
|
|
10391
10392
|
$xeTable.handleUpdateBodyMerge();
|
|
10392
10393
|
return $xeTable.$nextTick().then(() => {
|
|
10394
|
+
const { expandColumn } = reactData;
|
|
10395
|
+
const { mergeBodyList } = internalData;
|
|
10396
|
+
if (expandColumn && mergeBodyList.length) {
|
|
10397
|
+
warnLog('vxe.error.errConflicts', ['type=expand', 'merge-cells | span-method']);
|
|
10398
|
+
}
|
|
10393
10399
|
$xeTable.updateCellAreas();
|
|
10394
10400
|
return updateStyle($xeTable);
|
|
10395
10401
|
});
|
|
10396
10402
|
},
|
|
10397
10403
|
/**
|
|
10398
|
-
* 移除单元格合并
|
|
10399
|
-
* @param {TableMergeConfig[]} merges 多个或数组 [{row:Row|number, col:ColumnInfo|number}]
|
|
10404
|
+
* 移除单元格合并 [{row:Row|number, col:ColumnInfo|number}]
|
|
10400
10405
|
*/
|
|
10401
10406
|
removeMergeCells(merges) {
|
|
10402
10407
|
const $xeTable = this;
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -2002,7 +2002,7 @@ function getClass(property, params) {
|
|
|
2002
2002
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2003
2003
|
|
|
2004
2004
|
|
|
2005
|
-
const version = "3.16.0
|
|
2005
|
+
const version = "3.16.0";
|
|
2006
2006
|
core_.VxeUI.version = version;
|
|
2007
2007
|
core_.VxeUI.tableVersion = version;
|
|
2008
2008
|
core_.VxeUI.setConfig({
|
|
@@ -2667,7 +2667,7 @@ function isNodeElement(elem) {
|
|
|
2667
2667
|
const {
|
|
2668
2668
|
log: log_log
|
|
2669
2669
|
} = core_.VxeUI;
|
|
2670
|
-
const log_version = `table v${"3.16.0
|
|
2670
|
+
const log_version = `table v${"3.16.0"}`;
|
|
2671
2671
|
const warnLog = log_log.create('warn', log_version);
|
|
2672
2672
|
const errLog = log_log.create('error', log_version);
|
|
2673
2673
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -3687,9 +3687,6 @@ function renderTitleContent(h, params, content) {
|
|
|
3687
3687
|
$table,
|
|
3688
3688
|
column
|
|
3689
3689
|
} = params;
|
|
3690
|
-
const {
|
|
3691
|
-
showHeaderOverflow
|
|
3692
|
-
} = column;
|
|
3693
3690
|
const tableProps = $table;
|
|
3694
3691
|
const tableReactData = $table;
|
|
3695
3692
|
const {
|
|
@@ -3698,9 +3695,12 @@ function renderTitleContent(h, params, content) {
|
|
|
3698
3695
|
const {
|
|
3699
3696
|
isRowGroupStatus
|
|
3700
3697
|
} = tableReactData;
|
|
3698
|
+
const {
|
|
3699
|
+
showHeaderOverflow
|
|
3700
|
+
} = column;
|
|
3701
3701
|
const tooltipOpts = $table.computeTooltipOpts;
|
|
3702
3702
|
const showAllTip = tooltipOpts.showAll;
|
|
3703
|
-
const headOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().
|
|
3703
|
+
const headOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
|
|
3704
3704
|
const showTitle = headOverflow === 'title';
|
|
3705
3705
|
const showTooltip = headOverflow === true || headOverflow === 'tooltip';
|
|
3706
3706
|
const ons = {};
|
|
@@ -3729,7 +3729,7 @@ function renderTitleContent(h, params, content) {
|
|
|
3729
3729
|
const titleVN = getRenderDefaultColumnTitle(h, column, content);
|
|
3730
3730
|
return [h('span', {
|
|
3731
3731
|
class: 'vxe-cell--title',
|
|
3732
|
-
|
|
3732
|
+
on: ons
|
|
3733
3733
|
}, isRowGroupStatus && column.aggFunc && $table.getPivotTableAggregateRenderColTitles ? $table.getPivotTableAggregateRenderColTitles(h, column, titleVN) : [titleVN])];
|
|
3734
3734
|
}
|
|
3735
3735
|
function getFooterContent(h, params) {
|
|
@@ -17338,25 +17338,34 @@ const Methods = {
|
|
|
17338
17338
|
});
|
|
17339
17339
|
},
|
|
17340
17340
|
/**
|
|
17341
|
-
* 设置合并单元格
|
|
17342
|
-
* @param {TableMergeConfig[]} merges { row: Row|number, column: ColumnInfo|number, rowspan: number, colspan: number }
|
|
17341
|
+
* 设置合并单元格 [{ row: Row|number, column: ColumnInfo|number, rowspan: number, colspan: number }]
|
|
17343
17342
|
*/
|
|
17344
17343
|
setMergeCells(merges) {
|
|
17345
17344
|
const $xeTable = this;
|
|
17346
17345
|
const props = $xeTable;
|
|
17346
|
+
const reactData = $xeTable;
|
|
17347
|
+
const internalData = $xeTable;
|
|
17347
17348
|
if (props.spanMethod) {
|
|
17348
17349
|
errLog('vxe.error.errConflicts', ['merge-cells', 'span-method']);
|
|
17349
17350
|
}
|
|
17350
17351
|
handleBodyMerge($xeTable, merges);
|
|
17351
17352
|
$xeTable.handleUpdateBodyMerge();
|
|
17352
17353
|
return $xeTable.$nextTick().then(() => {
|
|
17354
|
+
const {
|
|
17355
|
+
expandColumn
|
|
17356
|
+
} = reactData;
|
|
17357
|
+
const {
|
|
17358
|
+
mergeBodyList
|
|
17359
|
+
} = internalData;
|
|
17360
|
+
if (expandColumn && mergeBodyList.length) {
|
|
17361
|
+
warnLog('vxe.error.errConflicts', ['type=expand', 'merge-cells | span-method']);
|
|
17362
|
+
}
|
|
17353
17363
|
$xeTable.updateCellAreas();
|
|
17354
17364
|
return updateStyle($xeTable);
|
|
17355
17365
|
});
|
|
17356
17366
|
},
|
|
17357
17367
|
/**
|
|
17358
|
-
* 移除单元格合并
|
|
17359
|
-
* @param {TableMergeConfig[]} merges 多个或数组 [{row:Row|number, col:ColumnInfo|number}]
|
|
17368
|
+
* 移除单元格合并 [{row:Row|number, col:ColumnInfo|number}]
|
|
17360
17369
|
*/
|
|
17361
17370
|
removeMergeCells(merges) {
|
|
17362
17371
|
const $xeTable = this;
|
|
@@ -34440,6 +34449,7 @@ const Toolbar = VxeToolbar;
|
|
|
34440
34449
|
overCountErr: '最多只能选择{0}个文件!',
|
|
34441
34450
|
overCountExtraErr: '已超出最大数量{0}个,超出的{1}个文件将被忽略!',
|
|
34442
34451
|
overSizeErr: '文件大小最大不能超过{0}!',
|
|
34452
|
+
manualUpload: '点击上传',
|
|
34443
34453
|
reUpload: '重新上传',
|
|
34444
34454
|
uploadProgress: '上传中 {0}%',
|
|
34445
34455
|
uploadErr: '上传失败',
|