vxe-table 3.18.0-beta.7 → 3.18.0-beta.8
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 +30 -0
- package/es/locale/lang/de-DE.js +30 -0
- package/es/locale/lang/en-US.js +30 -0
- package/es/locale/lang/es-ES.js +30 -0
- package/es/locale/lang/fr-FR.js +30 -0
- package/es/locale/lang/hu-HU.js +30 -0
- package/es/locale/lang/hy-AM.js +30 -0
- package/es/locale/lang/id-ID.js +30 -0
- package/es/locale/lang/it-IT.js +30 -0
- package/es/locale/lang/ja-JP.js +30 -0
- package/es/locale/lang/ko-KR.js +30 -0
- package/es/locale/lang/ms-MY.js +30 -0
- package/es/locale/lang/nb-NO.js +30 -0
- package/es/locale/lang/pt-BR.js +30 -0
- package/es/locale/lang/ru-RU.js +30 -0
- package/es/locale/lang/th-TH.js +30 -0
- package/es/locale/lang/ug-CN.js +30 -0
- package/es/locale/lang/uk-UA.js +30 -0
- package/es/locale/lang/uz-UZ.js +30 -0
- package/es/locale/lang/vi-VN.js +30 -0
- package/es/locale/lang/zh-CHT.js +30 -0
- package/es/locale/lang/zh-CN.js +32 -0
- package/es/style.css +1 -1
- package/es/table/src/footer.js +2 -2
- package/es/table/src/header.js +2 -2
- package/es/table/src/table.js +13 -3
- package/es/table/src/util.js +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +49 -7
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +30 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +30 -0
- package/lib/locale/lang/de-DE.js +30 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +30 -0
- package/lib/locale/lang/en-US.js +30 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +30 -0
- package/lib/locale/lang/es-ES.js +30 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +30 -0
- package/lib/locale/lang/fr-FR.js +30 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +30 -0
- package/lib/locale/lang/hu-HU.js +30 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +30 -0
- package/lib/locale/lang/hy-AM.js +30 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +30 -0
- package/lib/locale/lang/id-ID.js +30 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +30 -0
- package/lib/locale/lang/it-IT.js +30 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +30 -0
- package/lib/locale/lang/ja-JP.js +30 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +30 -0
- package/lib/locale/lang/ko-KR.js +30 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +30 -0
- package/lib/locale/lang/ms-MY.js +30 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +30 -0
- package/lib/locale/lang/nb-NO.js +30 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +30 -0
- package/lib/locale/lang/pt-BR.js +30 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +30 -0
- package/lib/locale/lang/ru-RU.js +30 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +30 -0
- package/lib/locale/lang/th-TH.js +30 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +30 -0
- package/lib/locale/lang/ug-CN.js +30 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +30 -0
- package/lib/locale/lang/uk-UA.js +30 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +30 -0
- package/lib/locale/lang/uz-UZ.js +30 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +30 -0
- package/lib/locale/lang/vi-VN.js +30 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +30 -0
- package/lib/locale/lang/zh-CHT.js +30 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +30 -0
- package/lib/locale/lang/zh-CN.js +32 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +32 -0
- package/lib/style.css +1 -1
- package/lib/table/src/footer.js +1 -1
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +1 -1
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/table.js +12 -2
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +2 -2
- package/lib/table/src/util.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 +30 -0
- package/packages/locale/lang/de-DE.ts +30 -0
- package/packages/locale/lang/en-US.ts +30 -0
- package/packages/locale/lang/es-ES.ts +30 -0
- package/packages/locale/lang/fr-FR.ts +30 -0
- package/packages/locale/lang/hu-HU.ts +30 -0
- package/packages/locale/lang/hy-AM.ts +30 -0
- package/packages/locale/lang/id-ID.ts +30 -0
- package/packages/locale/lang/it-IT.ts +30 -0
- package/packages/locale/lang/ja-JP.ts +30 -0
- package/packages/locale/lang/ko-KR.ts +30 -0
- package/packages/locale/lang/ms-MY.ts +30 -0
- package/packages/locale/lang/nb-NO.ts +30 -0
- package/packages/locale/lang/pt-BR.ts +30 -0
- package/packages/locale/lang/ru-RU.ts +30 -0
- package/packages/locale/lang/th-TH.ts +30 -0
- package/packages/locale/lang/ug-CN.ts +30 -0
- package/packages/locale/lang/uk-UA.ts +30 -0
- package/packages/locale/lang/uz-UZ.ts +30 -0
- package/packages/locale/lang/vi-VN.ts +30 -0
- package/packages/locale/lang/zh-CHT.ts +30 -0
- package/packages/locale/lang/zh-CN.ts +32 -0
- package/packages/table/src/footer.ts +2 -2
- package/packages/table/src/header.ts +2 -2
- package/packages/table/src/table.ts +13 -3
- package/packages/table/src/util.ts +1 -1
- /package/es/{iconfont.1755650997091.ttf → iconfont.1755775629306.ttf} +0 -0
- /package/es/{iconfont.1755650997091.woff → iconfont.1755775629306.woff} +0 -0
- /package/es/{iconfont.1755650997091.woff2 → iconfont.1755775629306.woff2} +0 -0
- /package/lib/{iconfont.1755650997091.ttf → iconfont.1755775629306.ttf} +0 -0
- /package/lib/{iconfont.1755650997091.woff → iconfont.1755775629306.woff} +0 -0
- /package/lib/{iconfont.1755650997091.woff2 → iconfont.1755775629306.woff2} +0 -0
package/es/table/src/header.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import XEUtils from 'xe-utils';
|
|
2
2
|
import { VxeUI } from '../../ui';
|
|
3
3
|
import { getClass } from '../../ui/src/utils';
|
|
4
|
-
import {
|
|
4
|
+
import { getCalcHeight, convertHeaderColumnToRows } from './util';
|
|
5
5
|
const { renderer, renderEmptyElement } = VxeUI;
|
|
6
6
|
const cellType = 'header';
|
|
7
7
|
const renderRows = (h, _vm, isGroup, isOptimizeMode, cols, $rowIndex) => {
|
|
@@ -22,7 +22,7 @@ const renderRows = (h, _vm, isGroup, isOptimizeMode, cols, $rowIndex) => {
|
|
|
22
22
|
const cellOpts = $xeTable.computeCellOpts;
|
|
23
23
|
const defaultRowHeight = $xeTable.computeDefaultRowHeight;
|
|
24
24
|
const headerCellOpts = $xeTable.computeHeaderCellOpts;
|
|
25
|
-
const currCellHeight =
|
|
25
|
+
const currCellHeight = getCalcHeight(headerCellOpts.height) || defaultRowHeight;
|
|
26
26
|
const { disabledMethod: dragDisabledMethod, isCrossDrag, isPeerDrag } = columnDragOpts;
|
|
27
27
|
return cols.map((column, $columnIndex) => {
|
|
28
28
|
const { type, showHeaderOverflow, headerAlign, align, filters, headerClassName, editRender, cellRender } = column;
|
package/es/table/src/table.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import XEUtils from 'xe-utils';
|
|
2
2
|
import { getFuncText, isEnableConf } from '../../ui/src/utils';
|
|
3
3
|
import { initTpImg } from '../../ui/src/dom';
|
|
4
|
-
import { createInternalData, createHandleGetRowId,
|
|
4
|
+
import { createInternalData, createHandleGetRowId, getCalcHeight, hasDeepKey } from './util';
|
|
5
5
|
import { VxeUI } from '../../ui';
|
|
6
6
|
import methods from './methods';
|
|
7
7
|
import TableBodyComponent from './body';
|
|
@@ -864,10 +864,20 @@ export default {
|
|
|
864
864
|
},
|
|
865
865
|
computeHeaderCellOpts() {
|
|
866
866
|
const $xeTable = this;
|
|
867
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
867
868
|
const props = $xeTable;
|
|
868
869
|
const headerCellOpts = Object.assign({}, getConfig().table.headerCellConfig, props.headerCellConfig);
|
|
870
|
+
const defaultRowHeight = $xeTable.computeDefaultRowHeight;
|
|
869
871
|
const cellOpts = $xeTable.computeCellOpts;
|
|
870
|
-
|
|
872
|
+
let headCellHeight = XEUtils.toNumber(getCalcHeight(headerCellOpts.height || cellOpts.height));
|
|
873
|
+
if ($xeGantt) {
|
|
874
|
+
const taskScaleConfs = $xeGantt.computeTaskScaleConfs;
|
|
875
|
+
if (taskScaleConfs && taskScaleConfs.length > 2) {
|
|
876
|
+
const ganttMinHeadCellHeight = defaultRowHeight / 2 * taskScaleConfs.length;
|
|
877
|
+
headCellHeight = Math.max(ganttMinHeadCellHeight, headCellHeight);
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
headerCellOpts.height = headCellHeight;
|
|
871
881
|
return headerCellOpts;
|
|
872
882
|
},
|
|
873
883
|
computeFooterCellOpts() {
|
|
@@ -875,7 +885,7 @@ export default {
|
|
|
875
885
|
const props = $xeTable;
|
|
876
886
|
const footerCellOpts = Object.assign({}, getConfig().table.footerCellConfig, props.footerCellConfig);
|
|
877
887
|
const cellOpts = $xeTable.computeCellOpts;
|
|
878
|
-
footerCellOpts.height = XEUtils.toNumber(
|
|
888
|
+
footerCellOpts.height = XEUtils.toNumber(getCalcHeight(footerCellOpts.height || cellOpts.height));
|
|
879
889
|
return footerCellOpts;
|
|
880
890
|
},
|
|
881
891
|
rowOpts() {
|
package/es/table/src/util.js
CHANGED
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.18.0-beta.
|
|
2005
|
+
const version = "3.18.0-beta.8";
|
|
2006
2006
|
core_.VxeUI.version = version;
|
|
2007
2007
|
core_.VxeUI.tableVersion = version;
|
|
2008
2008
|
core_.VxeUI.setConfig({
|
|
@@ -2678,7 +2678,7 @@ function isNodeElement(elem) {
|
|
|
2678
2678
|
const {
|
|
2679
2679
|
log: log_log
|
|
2680
2680
|
} = core_.VxeUI;
|
|
2681
|
-
const log_version = `table v${"3.18.0-beta.
|
|
2681
|
+
const log_version = `table v${"3.18.0-beta.8"}`;
|
|
2682
2682
|
const warnLog = log_log.create('warn', log_version);
|
|
2683
2683
|
const errLog = log_log.create('error', log_version);
|
|
2684
2684
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -3185,7 +3185,7 @@ function getElementMarginAndWidth(elem) {
|
|
|
3185
3185
|
}
|
|
3186
3186
|
return 0;
|
|
3187
3187
|
}
|
|
3188
|
-
function
|
|
3188
|
+
function getCalcHeight(height) {
|
|
3189
3189
|
if (height === 'unset') {
|
|
3190
3190
|
return 0;
|
|
3191
3191
|
}
|
|
@@ -19721,7 +19721,7 @@ const header_renderRows = (h, _vm, isGroup, isOptimizeMode, cols, $rowIndex) =>
|
|
|
19721
19721
|
const cellOpts = $xeTable.computeCellOpts;
|
|
19722
19722
|
const defaultRowHeight = $xeTable.computeDefaultRowHeight;
|
|
19723
19723
|
const headerCellOpts = $xeTable.computeHeaderCellOpts;
|
|
19724
|
-
const currCellHeight =
|
|
19724
|
+
const currCellHeight = getCalcHeight(headerCellOpts.height) || defaultRowHeight;
|
|
19725
19725
|
const {
|
|
19726
19726
|
disabledMethod: dragDisabledMethod,
|
|
19727
19727
|
isCrossDrag,
|
|
@@ -20173,7 +20173,7 @@ function footer_renderRows(h, _vm, isOptimizeMode, tableColumn, footerTableData,
|
|
|
20173
20173
|
const defaultRowHeight = $xeTable.computeDefaultRowHeight;
|
|
20174
20174
|
const cellOpts = $xeTable.computeCellOpts;
|
|
20175
20175
|
const footerCellOpts = $xeTable.computeFooterCellOpts;
|
|
20176
|
-
const currCellHeight =
|
|
20176
|
+
const currCellHeight = getCalcHeight(footerCellOpts.height) || defaultRowHeight;
|
|
20177
20177
|
return tableColumn.map((column, $columnIndex) => {
|
|
20178
20178
|
const {
|
|
20179
20179
|
type,
|
|
@@ -29557,10 +29557,20 @@ function renderBody(h, $xeTable) {
|
|
|
29557
29557
|
},
|
|
29558
29558
|
computeHeaderCellOpts() {
|
|
29559
29559
|
const $xeTable = this;
|
|
29560
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
29560
29561
|
const props = $xeTable;
|
|
29561
29562
|
const headerCellOpts = Object.assign({}, table_getConfig().table.headerCellConfig, props.headerCellConfig);
|
|
29563
|
+
const defaultRowHeight = $xeTable.computeDefaultRowHeight;
|
|
29562
29564
|
const cellOpts = $xeTable.computeCellOpts;
|
|
29563
|
-
|
|
29565
|
+
let headCellHeight = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(getCalcHeight(headerCellOpts.height || cellOpts.height));
|
|
29566
|
+
if ($xeGantt) {
|
|
29567
|
+
const taskScaleConfs = $xeGantt.computeTaskScaleConfs;
|
|
29568
|
+
if (taskScaleConfs && taskScaleConfs.length > 2) {
|
|
29569
|
+
const ganttMinHeadCellHeight = defaultRowHeight / 2 * taskScaleConfs.length;
|
|
29570
|
+
headCellHeight = Math.max(ganttMinHeadCellHeight, headCellHeight);
|
|
29571
|
+
}
|
|
29572
|
+
}
|
|
29573
|
+
headerCellOpts.height = headCellHeight;
|
|
29564
29574
|
return headerCellOpts;
|
|
29565
29575
|
},
|
|
29566
29576
|
computeFooterCellOpts() {
|
|
@@ -29568,7 +29578,7 @@ function renderBody(h, $xeTable) {
|
|
|
29568
29578
|
const props = $xeTable;
|
|
29569
29579
|
const footerCellOpts = Object.assign({}, table_getConfig().table.footerCellConfig, props.footerCellConfig);
|
|
29570
29580
|
const cellOpts = $xeTable.computeCellOpts;
|
|
29571
|
-
footerCellOpts.height = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(
|
|
29581
|
+
footerCellOpts.height = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(getCalcHeight(footerCellOpts.height || cellOpts.height));
|
|
29572
29582
|
return footerCellOpts;
|
|
29573
29583
|
},
|
|
29574
29584
|
rowOpts() {
|
|
@@ -35189,6 +35199,7 @@ const Toolbar = VxeToolbar;
|
|
|
35189
35199
|
coverProp: '"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',
|
|
35190
35200
|
uniField: '字段名 "{0}" 重复定义,这可能会出现错误',
|
|
35191
35201
|
repeatKey: '主键重复 {0}="{1}",这可能会出现错误',
|
|
35202
|
+
repeatProp: '参数重复 {0}="{1}",这可能会出现错误',
|
|
35192
35203
|
delFunc: '方法 "{0}" 已废弃,请使用 "{1}"',
|
|
35193
35204
|
delProp: '参数 "{0}" 已废弃,请使用 "{1}"',
|
|
35194
35205
|
delEvent: '事件 "{0}" 已废弃,请使用 "{1}"',
|
|
@@ -35681,6 +35692,37 @@ const Toolbar = VxeToolbar;
|
|
|
35681
35692
|
ss: '秒'
|
|
35682
35693
|
}
|
|
35683
35694
|
},
|
|
35695
|
+
gantt: {
|
|
35696
|
+
tFullFormat: {
|
|
35697
|
+
year: '{yy}年',
|
|
35698
|
+
quarter: '{yy}年第{q}季度',
|
|
35699
|
+
month: '{yy}年{M}月',
|
|
35700
|
+
week: '{yy}年第{W}周',
|
|
35701
|
+
day: '{yy}年{M}月{E}日',
|
|
35702
|
+
date: '{yy}年{M}月{d}日',
|
|
35703
|
+
hour: '{yy}年 {M}月{d}日{H}时',
|
|
35704
|
+
minute: '{yy}年{M}月{d}日{H}时{m}分'
|
|
35705
|
+
},
|
|
35706
|
+
tSimpleFormat: {
|
|
35707
|
+
year: '{yy}年',
|
|
35708
|
+
quarter: '{q}季度',
|
|
35709
|
+
month: '{M}月',
|
|
35710
|
+
week: '{W}周',
|
|
35711
|
+
day: '{d}',
|
|
35712
|
+
date: '{d}',
|
|
35713
|
+
hour: '{H}时',
|
|
35714
|
+
minute: '{m}分'
|
|
35715
|
+
},
|
|
35716
|
+
dayss: {
|
|
35717
|
+
w0: '日',
|
|
35718
|
+
w1: '一',
|
|
35719
|
+
w2: '二',
|
|
35720
|
+
w3: '三',
|
|
35721
|
+
w4: '四',
|
|
35722
|
+
w5: '五',
|
|
35723
|
+
w6: '六'
|
|
35724
|
+
}
|
|
35725
|
+
},
|
|
35684
35726
|
plugins: {
|
|
35685
35727
|
extendCellArea: {
|
|
35686
35728
|
area: {
|