vxe-table 4.19.14 → 4.19.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/dist/all.esm.js +139 -35
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +7 -0
- package/es/locale/lang/de-DE.js +7 -0
- package/es/locale/lang/en-US.js +7 -0
- package/es/locale/lang/es-ES.js +7 -0
- package/es/locale/lang/fr-FR.js +7 -0
- package/es/locale/lang/hu-HU.js +7 -0
- package/es/locale/lang/hy-AM.js +7 -0
- package/es/locale/lang/id-ID.js +7 -0
- package/es/locale/lang/it-IT.js +7 -0
- package/es/locale/lang/ja-JP.js +7 -0
- package/es/locale/lang/ko-KR.js +7 -0
- package/es/locale/lang/ms-MY.js +7 -0
- package/es/locale/lang/nb-NO.js +7 -0
- package/es/locale/lang/pt-BR.js +7 -0
- package/es/locale/lang/ru-RU.js +7 -0
- package/es/locale/lang/th-TH.js +7 -0
- package/es/locale/lang/ug-CN.js +7 -0
- package/es/locale/lang/uk-UA.js +7 -0
- package/es/locale/lang/uz-UZ.js +7 -0
- package/es/locale/lang/vi-VN.js +7 -0
- package/es/locale/lang/zh-CHT.js +7 -0
- package/es/locale/lang/zh-CN.js +7 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/export/hook.js +22 -3
- package/es/table/render/index.js +46 -18
- package/es/table/src/header.js +6 -3
- package/es/table/src/table.js +56 -9
- package/es/table/style.css +10 -5
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +10 -5
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +113 -30
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +7 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +7 -0
- package/lib/locale/lang/de-DE.js +7 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +7 -0
- package/lib/locale/lang/en-US.js +7 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +7 -0
- package/lib/locale/lang/es-ES.js +7 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +7 -0
- package/lib/locale/lang/fr-FR.js +7 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +7 -0
- package/lib/locale/lang/hu-HU.js +7 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +7 -0
- package/lib/locale/lang/hy-AM.js +7 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +7 -0
- package/lib/locale/lang/id-ID.js +7 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +7 -0
- package/lib/locale/lang/it-IT.js +7 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +7 -0
- package/lib/locale/lang/ja-JP.js +7 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +7 -0
- package/lib/locale/lang/ko-KR.js +7 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +7 -0
- package/lib/locale/lang/ms-MY.js +7 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +7 -0
- package/lib/locale/lang/nb-NO.js +7 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +7 -0
- package/lib/locale/lang/pt-BR.js +7 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +7 -0
- package/lib/locale/lang/ru-RU.js +7 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +7 -0
- package/lib/locale/lang/th-TH.js +7 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +7 -0
- package/lib/locale/lang/ug-CN.js +7 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +7 -0
- package/lib/locale/lang/uk-UA.js +7 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +7 -0
- package/lib/locale/lang/uz-UZ.js +7 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +7 -0
- package/lib/locale/lang/vi-VN.js +7 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +7 -0
- package/lib/locale/lang/zh-CHT.js +7 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +7 -0
- package/lib/locale/lang/zh-CN.js +7 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +7 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/export/hook.js +26 -3
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/render/index.js +62 -18
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/header.js +7 -3
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/table.js +9 -4
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +10 -5
- package/lib/table/style/style.min.css +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/lib/vxe-table/style/style.css +10 -5
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/locale/lang/ar-EG.ts +7 -0
- package/packages/locale/lang/de-DE.ts +7 -0
- package/packages/locale/lang/en-US.ts +7 -0
- package/packages/locale/lang/es-ES.ts +7 -0
- package/packages/locale/lang/fr-FR.ts +7 -0
- package/packages/locale/lang/hu-HU.ts +7 -0
- package/packages/locale/lang/hy-AM.ts +7 -0
- package/packages/locale/lang/id-ID.ts +7 -0
- package/packages/locale/lang/it-IT.ts +7 -0
- package/packages/locale/lang/ja-JP.ts +7 -0
- package/packages/locale/lang/ko-KR.ts +7 -0
- package/packages/locale/lang/ms-MY.ts +7 -0
- package/packages/locale/lang/nb-NO.ts +7 -0
- package/packages/locale/lang/pt-BR.ts +7 -0
- package/packages/locale/lang/ru-RU.ts +7 -0
- package/packages/locale/lang/th-TH.ts +7 -0
- package/packages/locale/lang/ug-CN.ts +7 -0
- package/packages/locale/lang/uk-UA.ts +7 -0
- package/packages/locale/lang/uz-UZ.ts +7 -0
- package/packages/locale/lang/vi-VN.ts +7 -0
- package/packages/locale/lang/zh-CHT.ts +7 -0
- package/packages/locale/lang/zh-CN.ts +7 -0
- package/packages/table/module/export/hook.ts +23 -4
- package/packages/table/render/index.ts +46 -18
- package/packages/table/src/header.ts +6 -3
- package/packages/table/src/table.ts +57 -10
- package/styles/components/table.scss +8 -4
- /package/es/{iconfont.1781257692019.ttf → iconfont.1781753820219.ttf} +0 -0
- /package/es/{iconfont.1781257692019.woff → iconfont.1781753820219.woff} +0 -0
- /package/es/{iconfont.1781257692019.woff2 → iconfont.1781753820219.woff2} +0 -0
- /package/lib/{iconfont.1781257692019.ttf → iconfont.1781753820219.ttf} +0 -0
- /package/lib/{iconfont.1781257692019.woff → iconfont.1781753820219.woff} +0 -0
- /package/lib/{iconfont.1781257692019.woff2 → iconfont.1781753820219.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -44,7 +44,7 @@ function eqEmptyValue(cellValue) {
|
|
|
44
44
|
return cellValue === '' || XEUtils.eqNull(cellValue);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
const version$1 = "4.19.
|
|
47
|
+
const version$1 = "4.19.16";
|
|
48
48
|
VxeUI.version = version$1;
|
|
49
49
|
VxeUI.tableVersion = version$1;
|
|
50
50
|
VxeUI.setConfig({
|
|
@@ -743,7 +743,7 @@ function wheelScrollTopTo(diffNum, cb) {
|
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
const { log } = VxeUI;
|
|
746
|
-
const version = `table v${"4.19.
|
|
746
|
+
const version = `table v${"4.19.16"}`;
|
|
747
747
|
const warnLog = log.create('warn', version);
|
|
748
748
|
const errLog = log.create('error', version);
|
|
749
749
|
|
|
@@ -5061,6 +5061,8 @@ var TableHeaderComponent = defineVxeComponent({
|
|
|
5061
5061
|
const cellOpts = computeCellOpts.value;
|
|
5062
5062
|
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
5063
5063
|
const headerCellOpts = computeHeaderCellOpts.value;
|
|
5064
|
+
const floatingFilterOpts = computeFloatingFilterOpts.value;
|
|
5065
|
+
const { cellClassName } = floatingFilterOpts;
|
|
5064
5066
|
const currCellHeight = getCalcHeight(headerCellOpts.height) || defaultRowHeight;
|
|
5065
5067
|
return cols.map((column, $columnIndex) => {
|
|
5066
5068
|
const { type, showHeaderOverflow, headerAlign, align, filters, editRender, cellRender, floatingFilters, filterRender, slots } = column;
|
|
@@ -5114,7 +5116,7 @@ var TableHeaderComponent = defineVxeComponent({
|
|
|
5114
5116
|
else {
|
|
5115
5117
|
tcStyle.minHeight = `${currCellHeight}px`;
|
|
5116
5118
|
}
|
|
5117
|
-
return h('th', Object.assign({ class: ['vxe-table--column vxe-header--column', colid, fixedHiddenColumn ? 'fixed--hidden' : 'fixed--visible', {
|
|
5119
|
+
return h('th', Object.assign({ class: ['vxe-table--column vxe-header--column is--floating-filters', colid, fixedHiddenColumn ? 'fixed--hidden' : 'fixed--visible', {
|
|
5118
5120
|
[`col--${headAlign}`]: headAlign,
|
|
5119
5121
|
[`col--${type}`]: type,
|
|
5120
5122
|
'col--last': isLastColumn,
|
|
@@ -5127,7 +5129,7 @@ var TableHeaderComponent = defineVxeComponent({
|
|
|
5127
5129
|
}
|
|
5128
5130
|
], key: colid }, thAttrs), [
|
|
5129
5131
|
h('div', {
|
|
5130
|
-
class: ['vxe-cell', {
|
|
5132
|
+
class: ['vxe-cell', '' + (cellClassName || ''), {
|
|
5131
5133
|
'c--title': showTitle,
|
|
5132
5134
|
'c--tooltip': showTooltip,
|
|
5133
5135
|
'c--ellipsis': showEllipsis
|
|
@@ -5167,7 +5169,8 @@ var TableHeaderComponent = defineVxeComponent({
|
|
|
5167
5169
|
rowVNs.push(h('tr', {
|
|
5168
5170
|
key: 'ff',
|
|
5169
5171
|
class: [
|
|
5170
|
-
'vxe-header--row'
|
|
5172
|
+
'vxe-header--row is--floating-filters',
|
|
5173
|
+
'' + (floatingFilterOpts.rowClassName || '')
|
|
5171
5174
|
]
|
|
5172
5175
|
}, renderFilterRows(isOptimizeMode, renderColumnList)));
|
|
5173
5176
|
}
|
|
@@ -10867,7 +10870,7 @@ hooks$4.add('tableExportModule', {
|
|
|
10867
10870
|
const toHtml = (opts, columns, datas) => {
|
|
10868
10871
|
const { id, border, treeConfig, headerAlign: allHeaderAlign, align: allAlign, footerAlign: allFooterAlign, showOverflow: allColumnOverflow, showHeaderOverflow: allColumnHeaderOverflow } = props;
|
|
10869
10872
|
const { isAllSelected, isIndeterminate } = reactData;
|
|
10870
|
-
const { mergeBodyCellMaps } = internalData;
|
|
10873
|
+
const { mergeBodyCellMaps, mergeFooterCellMaps } = internalData;
|
|
10871
10874
|
const treeOpts = computeTreeOpts.value;
|
|
10872
10875
|
const { print: isPrint, isHeader, isFooter, isColgroup, isMerge, colgroups, original } = opts;
|
|
10873
10876
|
const allCls = 'check-all';
|
|
@@ -11005,15 +11008,34 @@ hooks$4.add('tableExportModule', {
|
|
|
11005
11008
|
const footers = getFooterData($xeTable, opts, footerTableData);
|
|
11006
11009
|
if (footers.length) {
|
|
11007
11010
|
tables.push('<tfoot>');
|
|
11008
|
-
footers.forEach((row) => {
|
|
11011
|
+
footers.forEach((row, rIndex) => {
|
|
11009
11012
|
tables.push(`<tr>${columns.map((column) => {
|
|
11010
11013
|
const footAlign = column.footerAlign || column.align || allFooterAlign || allAlign;
|
|
11011
11014
|
const classNames = hasEllipsis(column, 'showOverflow', allColumnOverflow) ? ['col--ellipsis'] : [];
|
|
11012
11015
|
const cellValue = getFooterCellValue(opts, row, column);
|
|
11016
|
+
let rowSpan = 1;
|
|
11017
|
+
let colSpan = 1;
|
|
11018
|
+
if (isMerge) {
|
|
11019
|
+
const _rowIndex = rIndex;
|
|
11020
|
+
const _columnIndex = $xeTable.getVTColumnIndex(column);
|
|
11021
|
+
const spanRest = mergeFooterCellMaps[`${_rowIndex}:${_columnIndex}`];
|
|
11022
|
+
if (spanRest) {
|
|
11023
|
+
const { rowspan, colspan } = spanRest;
|
|
11024
|
+
if (!rowspan || !colspan) {
|
|
11025
|
+
return '';
|
|
11026
|
+
}
|
|
11027
|
+
if (rowspan > 1) {
|
|
11028
|
+
rowSpan = rowspan;
|
|
11029
|
+
}
|
|
11030
|
+
if (colspan > 1) {
|
|
11031
|
+
colSpan = colspan;
|
|
11032
|
+
}
|
|
11033
|
+
}
|
|
11034
|
+
}
|
|
11013
11035
|
if (footAlign) {
|
|
11014
11036
|
classNames.push(`col--${footAlign}`);
|
|
11015
11037
|
}
|
|
11016
|
-
return `<td class="${classNames.join(' ')}" title="${cellValue}"><div ${isPrint ? '' : `style="width: ${column.renderWidth}px"`}>${formatText(cellValue, true)}</div></td>`;
|
|
11038
|
+
return `<td class="${classNames.join(' ')}" rowspan="${rowSpan}" colspan="${colSpan}" title="${cellValue}"><div ${isPrint ? '' : `style="width: ${column.renderWidth}px"`}>${formatText(cellValue, true)}</div></td>`;
|
|
11017
11039
|
}).join('')}</tr>`);
|
|
11018
11040
|
});
|
|
11019
11041
|
tables.push('</tfoot>');
|
|
@@ -14218,7 +14240,7 @@ function handleSetTreeSelectValue(renderOpts, params) {
|
|
|
14218
14240
|
*/
|
|
14219
14241
|
renderer$2.mixin({
|
|
14220
14242
|
input: {
|
|
14221
|
-
tableAutoFocus:
|
|
14243
|
+
tableAutoFocus: true,
|
|
14222
14244
|
renderTableEdit: nativeEditRender,
|
|
14223
14245
|
renderTableDefault: nativeEditRender,
|
|
14224
14246
|
createTableFilterOptions: defaultFilterOptions,
|
|
@@ -14226,7 +14248,7 @@ renderer$2.mixin({
|
|
|
14226
14248
|
tableFilterDefaultMethod: handleInputFilterMethod
|
|
14227
14249
|
},
|
|
14228
14250
|
textarea: {
|
|
14229
|
-
tableAutoFocus:
|
|
14251
|
+
tableAutoFocus: true,
|
|
14230
14252
|
renderTableEdit: nativeEditRender
|
|
14231
14253
|
},
|
|
14232
14254
|
select: {
|
|
@@ -14266,7 +14288,7 @@ renderer$2.mixin({
|
|
|
14266
14288
|
tableExportMethod: handleExportSelectMethod
|
|
14267
14289
|
},
|
|
14268
14290
|
VxeInput: {
|
|
14269
|
-
tableAutoFocus:
|
|
14291
|
+
tableAutoFocus: true,
|
|
14270
14292
|
renderTableEdit: defaultEditRender,
|
|
14271
14293
|
renderTableCell(renderOpts, params) {
|
|
14272
14294
|
const { props = {} } = renderOpts;
|
|
@@ -14306,7 +14328,7 @@ renderer$2.mixin({
|
|
|
14306
14328
|
}
|
|
14307
14329
|
},
|
|
14308
14330
|
VxeNumberInput: {
|
|
14309
|
-
tableAutoFocus:
|
|
14331
|
+
tableAutoFocus: true,
|
|
14310
14332
|
renderTableEdit: defaultEditRender,
|
|
14311
14333
|
renderTableCell: handleNumberCell,
|
|
14312
14334
|
renderTableFooter(renderOpts, params) {
|
|
@@ -14358,7 +14380,7 @@ renderer$2.mixin({
|
|
|
14358
14380
|
}
|
|
14359
14381
|
},
|
|
14360
14382
|
VxeDatePicker: {
|
|
14361
|
-
tableAutoFocus:
|
|
14383
|
+
tableAutoFocus: true,
|
|
14362
14384
|
renderTableEdit: defaultEditRender,
|
|
14363
14385
|
renderTableCell(renderOpts, params) {
|
|
14364
14386
|
const props = renderOpts.props || {};
|
|
@@ -14384,7 +14406,7 @@ renderer$2.mixin({
|
|
|
14384
14406
|
tableFilterDefaultMethod: handleFilterMethod
|
|
14385
14407
|
},
|
|
14386
14408
|
VxeDateRangePicker: {
|
|
14387
|
-
tableAutoFocus:
|
|
14409
|
+
tableAutoFocus: true,
|
|
14388
14410
|
renderTableEdit(renderOpts, params) {
|
|
14389
14411
|
const { startField, endField } = renderOpts;
|
|
14390
14412
|
const { $table, row, column } = params;
|
|
@@ -14484,7 +14506,7 @@ renderer$2.mixin({
|
|
|
14484
14506
|
}
|
|
14485
14507
|
},
|
|
14486
14508
|
VxeTextarea: {
|
|
14487
|
-
tableAutoFocus:
|
|
14509
|
+
tableAutoFocus: true,
|
|
14488
14510
|
renderTableDefault: defaultEditRender,
|
|
14489
14511
|
renderTableEdit: defaultEditRender,
|
|
14490
14512
|
renderTableCell(renderOpts, params) {
|
|
@@ -14505,7 +14527,7 @@ renderer$2.mixin({
|
|
|
14505
14527
|
}
|
|
14506
14528
|
},
|
|
14507
14529
|
VxeSelect: {
|
|
14508
|
-
tableAutoFocus:
|
|
14530
|
+
tableAutoFocus: true,
|
|
14509
14531
|
renderTableEdit: defaultSelectEditRender,
|
|
14510
14532
|
renderTableDefault: defaultSelectEditRender,
|
|
14511
14533
|
renderTableCell(renderOpts, params) {
|
|
@@ -14607,7 +14629,7 @@ renderer$2.mixin({
|
|
|
14607
14629
|
tableExportMethod: handleExportSelectMethod
|
|
14608
14630
|
},
|
|
14609
14631
|
VxeTreeSelect: {
|
|
14610
|
-
tableAutoFocus:
|
|
14632
|
+
tableAutoFocus: true,
|
|
14611
14633
|
renderTableEdit: defaultTableOrTreeSelectEditRender,
|
|
14612
14634
|
renderTableCell(renderOpts, params) {
|
|
14613
14635
|
const { options, optionGroups } = renderOpts;
|
|
@@ -14669,8 +14691,36 @@ renderer$2.mixin({
|
|
|
14669
14691
|
tableCellPasteMethod: handleSetTreeSelectValue,
|
|
14670
14692
|
tableExportMethod: handleExportTreeSelectMethod
|
|
14671
14693
|
},
|
|
14694
|
+
VxeCascader: {
|
|
14695
|
+
tableAutoFocus: true,
|
|
14696
|
+
renderTableEdit: defaultTableOrTreeSelectEditRender,
|
|
14697
|
+
renderTableCell(renderOpts, params) {
|
|
14698
|
+
const { options, optionGroups } = renderOpts;
|
|
14699
|
+
const { $table, row, column } = params;
|
|
14700
|
+
const opSize = options ? options.length : null;
|
|
14701
|
+
const ogSize = optionGroups ? optionGroups.length : null;
|
|
14702
|
+
const { cellResult } = $table.effectCellData(row, column, {
|
|
14703
|
+
key: 'render_table_cell',
|
|
14704
|
+
isChanged({ oldValue, cellValue }) {
|
|
14705
|
+
return oldValue && oldValue[0] === cellValue && oldValue[1] === opSize && oldValue[2] === ogSize;
|
|
14706
|
+
},
|
|
14707
|
+
setValue({ cellValue }) {
|
|
14708
|
+
return [cellValue, opSize, ogSize];
|
|
14709
|
+
},
|
|
14710
|
+
getResult({ cellValue }) {
|
|
14711
|
+
return handleTreeSelectCellValue(cellValue, renderOpts);
|
|
14712
|
+
}
|
|
14713
|
+
});
|
|
14714
|
+
// const cellResult = getTreeSelectCellValue(renderOpts, params)
|
|
14715
|
+
return getCellLabelVNs(renderOpts, params, cellResult);
|
|
14716
|
+
},
|
|
14717
|
+
tableCellFormatter: handleFormatTreeSelect,
|
|
14718
|
+
tableCellCopyMethod: handleFormatTreeSelect,
|
|
14719
|
+
tableCellPasteMethod: handleSetTreeSelectValue,
|
|
14720
|
+
tableExportMethod: handleExportTreeSelectMethod
|
|
14721
|
+
},
|
|
14672
14722
|
VxeTableSelect: {
|
|
14673
|
-
tableAutoFocus:
|
|
14723
|
+
tableAutoFocus: true,
|
|
14674
14724
|
renderTableEdit: defaultTableOrTreeSelectEditRender,
|
|
14675
14725
|
renderTableCell(renderOpts, params) {
|
|
14676
14726
|
const { options, optionGroups } = renderOpts;
|
|
@@ -14698,7 +14748,7 @@ renderer$2.mixin({
|
|
|
14698
14748
|
tableExportMethod: handleExportTreeSelectMethod
|
|
14699
14749
|
},
|
|
14700
14750
|
VxeColorPicker: {
|
|
14701
|
-
tableAutoFocus:
|
|
14751
|
+
tableAutoFocus: true,
|
|
14702
14752
|
renderTableEdit(renderOpts, params) {
|
|
14703
14753
|
const { row, column } = params;
|
|
14704
14754
|
const { options } = renderOpts;
|
|
@@ -14723,7 +14773,7 @@ renderer$2.mixin({
|
|
|
14723
14773
|
}
|
|
14724
14774
|
},
|
|
14725
14775
|
VxeIconPicker: {
|
|
14726
|
-
tableAutoFocus:
|
|
14776
|
+
tableAutoFocus: true,
|
|
14727
14777
|
renderTableEdit(renderOpts, params) {
|
|
14728
14778
|
const { row, column } = params;
|
|
14729
14779
|
const { options } = renderOpts;
|
|
@@ -14797,7 +14847,7 @@ renderer$2.mixin({
|
|
|
14797
14847
|
},
|
|
14798
14848
|
// 以下已废弃
|
|
14799
14849
|
$input: {
|
|
14800
|
-
tableAutoFocus: '
|
|
14850
|
+
tableAutoFocus: 'input',
|
|
14801
14851
|
renderTableEdit: oldEditRender,
|
|
14802
14852
|
renderTableCell(renderOpts, params) {
|
|
14803
14853
|
var _a;
|
|
@@ -14825,7 +14875,7 @@ renderer$2.mixin({
|
|
|
14825
14875
|
tableFilterDefaultMethod: handleInputFilterMethod
|
|
14826
14876
|
},
|
|
14827
14877
|
$textarea: {
|
|
14828
|
-
tableAutoFocus: '
|
|
14878
|
+
tableAutoFocus: 'textarea'
|
|
14829
14879
|
},
|
|
14830
14880
|
$button: {
|
|
14831
14881
|
renderTableDefault: oldButtonEditRender
|
|
@@ -14834,7 +14884,7 @@ renderer$2.mixin({
|
|
|
14834
14884
|
renderTableDefault: oldButtonsEditRender
|
|
14835
14885
|
},
|
|
14836
14886
|
$select: {
|
|
14837
|
-
tableAutoFocus: '
|
|
14887
|
+
tableAutoFocus: 'input',
|
|
14838
14888
|
renderTableEdit: oldSelectEditRender,
|
|
14839
14889
|
renderTableDefault: oldSelectEditRender,
|
|
14840
14890
|
renderTableCell(renderOpts, params) {
|
|
@@ -14852,13 +14902,13 @@ renderer$2.mixin({
|
|
|
14852
14902
|
tableExportMethod: handleExportSelectMethod
|
|
14853
14903
|
},
|
|
14854
14904
|
$radio: {
|
|
14855
|
-
tableAutoFocus: '
|
|
14905
|
+
tableAutoFocus: 'input'
|
|
14856
14906
|
},
|
|
14857
14907
|
$checkbox: {
|
|
14858
|
-
tableAutoFocus: '
|
|
14908
|
+
tableAutoFocus: 'input'
|
|
14859
14909
|
},
|
|
14860
14910
|
$switch: {
|
|
14861
|
-
tableAutoFocus: '
|
|
14911
|
+
tableAutoFocus: 'button',
|
|
14862
14912
|
renderTableEdit: oldEditRender,
|
|
14863
14913
|
renderTableDefault: oldEditRender
|
|
14864
14914
|
}
|
|
@@ -14883,8 +14933,10 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
14883
14933
|
// 使用已安装的组件,如果未安装则不渲染
|
|
14884
14934
|
const VxeUILoadingComponent = VxeUI.getComponent('VxeLoading');
|
|
14885
14935
|
const VxeUITooltipComponent = VxeUI.getComponent('VxeTooltip');
|
|
14936
|
+
const $xeModal = inject('$xeModal', null);
|
|
14886
14937
|
const $xeTabs = inject('$xeTabs', null);
|
|
14887
14938
|
const $xeParentTable = inject('$xeTable', null);
|
|
14939
|
+
const $xeSplitter = inject('$xeSplitter', null);
|
|
14888
14940
|
const $xeGrid = inject('$xeGrid', null);
|
|
14889
14941
|
const $xeGantt = inject('$xeGantt', null);
|
|
14890
14942
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
@@ -15503,6 +15555,15 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
15503
15555
|
}
|
|
15504
15556
|
return [];
|
|
15505
15557
|
});
|
|
15558
|
+
const combineTabsResizeFlag = computed(() => {
|
|
15559
|
+
return $xeTabs ? $xeTabs.reactData.resizeFlag : null;
|
|
15560
|
+
});
|
|
15561
|
+
const combineModalResizeFlag = computed(() => {
|
|
15562
|
+
return $xeModal ? $xeModal.reactData.resizeFlag : null;
|
|
15563
|
+
});
|
|
15564
|
+
const combineSplitterResizeFlag = computed(() => {
|
|
15565
|
+
return $xeSplitter ? $xeSplitter.reactData.resizeFlag : null;
|
|
15566
|
+
});
|
|
15506
15567
|
const refMaps = {
|
|
15507
15568
|
refElem,
|
|
15508
15569
|
refTooltip,
|
|
@@ -23894,11 +23955,39 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
23894
23955
|
const { tooltipStore } = reactData;
|
|
23895
23956
|
const { column, row } = params;
|
|
23896
23957
|
const { showAll, contentMethod } = tipOpts;
|
|
23897
|
-
const
|
|
23898
|
-
const useCustom = contentMethod && !XEUtils.eqNull(customContent);
|
|
23899
|
-
const content = useCustom ? customContent : XEUtils.toString(column.type === 'html' ? tipOverEl.innerText : tipOverEl.textContent).trim();
|
|
23958
|
+
const cellText = XEUtils.toString(column.type === 'html' ? tipOverEl.innerText : tipOverEl.textContent).trim();
|
|
23900
23959
|
const isOver = tipOverEl.scrollWidth > tipOverEl.clientWidth;
|
|
23901
|
-
|
|
23960
|
+
let isShow = false;
|
|
23961
|
+
let customContent = null;
|
|
23962
|
+
let content = '';
|
|
23963
|
+
if (contentMethod) {
|
|
23964
|
+
customContent = contentMethod(params);
|
|
23965
|
+
}
|
|
23966
|
+
// 是否全部展示
|
|
23967
|
+
if (showAll) {
|
|
23968
|
+
// 如果为 null 默认显示
|
|
23969
|
+
if (XEUtils.eqNull(customContent)) {
|
|
23970
|
+
isShow = true;
|
|
23971
|
+
content = cellText;
|
|
23972
|
+
}
|
|
23973
|
+
else if (customContent !== '' && customContent !== false) {
|
|
23974
|
+
// 如果为 '' | false 则不显示
|
|
23975
|
+
isShow = true;
|
|
23976
|
+
content = '' + customContent;
|
|
23977
|
+
}
|
|
23978
|
+
}
|
|
23979
|
+
else {
|
|
23980
|
+
// 如果为 null 使用默认逻辑
|
|
23981
|
+
if (XEUtils.eqNull(customContent)) {
|
|
23982
|
+
isShow = isOver;
|
|
23983
|
+
}
|
|
23984
|
+
else if (customContent !== '' && customContent !== false) {
|
|
23985
|
+
// 如果为 '' | false 则不显示
|
|
23986
|
+
isShow = true;
|
|
23987
|
+
}
|
|
23988
|
+
content = cellText;
|
|
23989
|
+
}
|
|
23990
|
+
if (isShow && content) {
|
|
23902
23991
|
const tipContent = formatText(content);
|
|
23903
23992
|
Object.assign(tooltipStore, {
|
|
23904
23993
|
row,
|
|
@@ -28962,11 +29051,19 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
28962
29051
|
loadTableData(internalData.tableSynchData, false, true);
|
|
28963
29052
|
}
|
|
28964
29053
|
});
|
|
28965
|
-
|
|
28966
|
-
|
|
28967
|
-
|
|
28968
|
-
|
|
28969
|
-
|
|
29054
|
+
const layoutReFlag = ref(0);
|
|
29055
|
+
watch(combineTabsResizeFlag, () => {
|
|
29056
|
+
layoutReFlag.value++;
|
|
29057
|
+
});
|
|
29058
|
+
watch(combineModalResizeFlag, () => {
|
|
29059
|
+
layoutReFlag.value++;
|
|
29060
|
+
});
|
|
29061
|
+
watch(combineSplitterResizeFlag, () => {
|
|
29062
|
+
layoutReFlag.value++;
|
|
29063
|
+
});
|
|
29064
|
+
watch(layoutReFlag, () => {
|
|
29065
|
+
handleGlobalResizeEvent();
|
|
29066
|
+
});
|
|
28970
29067
|
handleKeyField();
|
|
28971
29068
|
hooks$1.forEach((options) => {
|
|
28972
29069
|
const { setupTable } = options;
|
|
@@ -32063,6 +32160,13 @@ var zhCN = {
|
|
|
32063
32160
|
yearLabel: '{0} 年',
|
|
32064
32161
|
monthLabel: '{0} 月'
|
|
32065
32162
|
},
|
|
32163
|
+
cascader: {
|
|
32164
|
+
clearChecked: '清除',
|
|
32165
|
+
allChecked: '全选',
|
|
32166
|
+
total: '已选 {0} 项',
|
|
32167
|
+
close: '关闭',
|
|
32168
|
+
search: '搜索'
|
|
32169
|
+
},
|
|
32066
32170
|
numberInput: {
|
|
32067
32171
|
currencySymbol: '¥'
|
|
32068
32172
|
},
|