vxe-table 3.17.10 → 3.18.0-beta.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/es/grid/src/grid.js +1 -2
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +3 -1
- package/es/locale/lang/de-DE.js +3 -1
- package/es/locale/lang/en-US.js +3 -1
- package/es/locale/lang/es-ES.js +3 -1
- package/es/locale/lang/fr-FR.js +3 -1
- package/es/locale/lang/hu-HU.js +3 -1
- package/es/locale/lang/hy-AM.js +3 -1
- package/es/locale/lang/id-ID.js +3 -1
- package/es/locale/lang/it-IT.js +3 -1
- package/es/locale/lang/ja-JP.js +3 -1
- package/es/locale/lang/ko-KR.js +3 -1
- package/es/locale/lang/ms-MY.js +3 -1
- package/es/locale/lang/nb-NO.js +3 -1
- package/es/locale/lang/pt-BR.js +3 -1
- package/es/locale/lang/ru-RU.js +3 -1
- package/es/locale/lang/th-TH.js +3 -1
- package/es/locale/lang/ug-CN.js +3 -1
- package/es/locale/lang/uk-UA.js +3 -1
- package/es/locale/lang/uz-UZ.js +3 -1
- package/es/locale/lang/vi-VN.js +3 -1
- package/es/locale/lang/zh-CHT.js +3 -1
- package/es/locale/lang/zh-CN.js +3 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/methods.js +49 -21
- package/es/table/style.css +3 -3
- 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 +3 -3
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +1 -2
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +61 -41
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +3 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +3 -1
- package/lib/locale/lang/de-DE.js +3 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +3 -1
- package/lib/locale/lang/en-US.js +3 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +3 -1
- package/lib/locale/lang/es-ES.js +3 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +3 -1
- package/lib/locale/lang/fr-FR.js +3 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +3 -1
- package/lib/locale/lang/hu-HU.js +3 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +3 -1
- package/lib/locale/lang/hy-AM.js +3 -1
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +3 -1
- package/lib/locale/lang/id-ID.js +3 -1
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +3 -1
- package/lib/locale/lang/it-IT.js +3 -1
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +3 -1
- package/lib/locale/lang/ja-JP.js +3 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +3 -1
- package/lib/locale/lang/ko-KR.js +3 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +3 -1
- package/lib/locale/lang/ms-MY.js +3 -1
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +3 -1
- package/lib/locale/lang/nb-NO.js +3 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +3 -1
- package/lib/locale/lang/pt-BR.js +3 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +3 -1
- package/lib/locale/lang/ru-RU.js +3 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +3 -1
- package/lib/locale/lang/th-TH.js +3 -1
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +3 -1
- package/lib/locale/lang/ug-CN.js +3 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +3 -1
- package/lib/locale/lang/uk-UA.js +3 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +3 -1
- package/lib/locale/lang/uz-UZ.js +3 -1
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +3 -1
- package/lib/locale/lang/vi-VN.js +3 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +3 -1
- package/lib/locale/lang/zh-CHT.js +3 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +3 -1
- package/lib/locale/lang/zh-CN.js +3 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +3 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/methods.js +49 -30
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/style/style.css +3 -3
- 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 +3 -3
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/grid/src/grid.ts +1 -2
- package/packages/locale/lang/ar-EG.ts +3 -1
- package/packages/locale/lang/de-DE.ts +3 -1
- package/packages/locale/lang/en-US.ts +3 -1
- package/packages/locale/lang/es-ES.ts +3 -1
- package/packages/locale/lang/fr-FR.ts +3 -1
- package/packages/locale/lang/hu-HU.ts +3 -1
- package/packages/locale/lang/hy-AM.ts +3 -1
- package/packages/locale/lang/id-ID.ts +3 -1
- package/packages/locale/lang/it-IT.ts +3 -1
- package/packages/locale/lang/ja-JP.ts +3 -1
- package/packages/locale/lang/ko-KR.ts +3 -1
- package/packages/locale/lang/ms-MY.ts +3 -1
- package/packages/locale/lang/nb-NO.ts +3 -1
- package/packages/locale/lang/pt-BR.ts +3 -1
- package/packages/locale/lang/ru-RU.ts +3 -1
- package/packages/locale/lang/th-TH.ts +3 -1
- package/packages/locale/lang/ug-CN.ts +3 -1
- package/packages/locale/lang/uk-UA.ts +3 -1
- package/packages/locale/lang/uz-UZ.ts +3 -1
- package/packages/locale/lang/vi-VN.ts +3 -1
- package/packages/locale/lang/zh-CHT.ts +3 -1
- package/packages/locale/lang/zh-CN.ts +3 -1
- package/packages/table/src/methods.ts +53 -21
- package/styles/components/table.scss +7 -3
- /package/es/{iconfont.1755133667514.ttf → iconfont.1755178463571.ttf} +0 -0
- /package/es/{iconfont.1755133667514.woff → iconfont.1755178463571.woff} +0 -0
- /package/es/{iconfont.1755133667514.woff2 → iconfont.1755178463571.woff2} +0 -0
- /package/lib/{iconfont.1755133667514.ttf → iconfont.1755178463571.ttf} +0 -0
- /package/lib/{iconfont.1755133667514.woff → iconfont.1755178463571.woff} +0 -0
- /package/lib/{iconfont.1755133667514.woff2 → iconfont.1755178463571.woff2} +0 -0
package/lib/table/src/methods.js
CHANGED
|
@@ -378,8 +378,11 @@ function cacheColumnMap($xeTable) {
|
|
|
378
378
|
}
|
|
379
379
|
fullColFieldData[field] = rest;
|
|
380
380
|
} else {
|
|
381
|
-
if (storage && !type
|
|
382
|
-
(0, _log.errLog)('vxe.error.
|
|
381
|
+
if (storage && !type) {
|
|
382
|
+
(0, _log.errLog)('vxe.error.reqSupportProp', ['storage', `${column.getTitle() || type || ''} -> field=?`]);
|
|
383
|
+
}
|
|
384
|
+
if (columnOpts.drag && (isCrossDrag || isSelfToChildDrag)) {
|
|
385
|
+
(0, _log.errLog)('vxe.error.reqSupportProp', ['column-drag-config.isCrossDrag | column-drag-config.isSelfToChildDrag', `${column.getTitle() || type || ''} -> field=?`]);
|
|
383
386
|
}
|
|
384
387
|
}
|
|
385
388
|
if (!hasFixed && fixed) {
|
|
@@ -8835,18 +8838,22 @@ const Methods = {
|
|
|
8835
8838
|
* @param {Row} row 行对象
|
|
8836
8839
|
*/
|
|
8837
8840
|
setCurrentRow(row) {
|
|
8838
|
-
const
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
|
|
8841
|
+
const $xeTable = this;
|
|
8842
|
+
const internalData = $xeTable;
|
|
8843
|
+
const $xeGanttView = internalData.xeGanttView;
|
|
8844
|
+
const el = $xeTable.$refs.refElem;
|
|
8845
|
+
const rowOpts = $xeTable.computeRowOpts;
|
|
8842
8846
|
this.clearCurrentRow();
|
|
8843
8847
|
// this.clearCurrentColumn()
|
|
8844
8848
|
this.currentRow = row;
|
|
8845
8849
|
if (rowOpts.isCurrent || this.highlightCurrentRow) {
|
|
8846
|
-
if (
|
|
8847
|
-
_xeUtils.default.arrayEach(
|
|
8850
|
+
if (el) {
|
|
8851
|
+
_xeUtils.default.arrayEach(el.querySelectorAll(`[rowid="${(0, _util.getRowid)($xeTable, row)}"]`), elem => (0, _dom.addClass)(elem, 'row--current'));
|
|
8848
8852
|
}
|
|
8849
8853
|
}
|
|
8854
|
+
if ($xeGanttView) {
|
|
8855
|
+
$xeGanttView.handleUpdateCurrentRow(row);
|
|
8856
|
+
}
|
|
8850
8857
|
return this.$nextTick();
|
|
8851
8858
|
},
|
|
8852
8859
|
isCheckedByRadioRow(row) {
|
|
@@ -8899,15 +8906,20 @@ const Methods = {
|
|
|
8899
8906
|
* 用于当前行,手动清空当前高亮的状态
|
|
8900
8907
|
*/
|
|
8901
8908
|
clearCurrentRow() {
|
|
8902
|
-
const
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
+
const $xeTable = this;
|
|
8910
|
+
const reactData = $xeTable;
|
|
8911
|
+
const internalData = $xeTable;
|
|
8912
|
+
const $xeGanttView = internalData.xeGanttView;
|
|
8913
|
+
const el = $xeTable.$refs.refElem;
|
|
8914
|
+
reactData.currentRow = null;
|
|
8915
|
+
internalData.hoverRow = null;
|
|
8916
|
+
if (el) {
|
|
8917
|
+
_xeUtils.default.arrayEach(el.querySelectorAll('.row--current'), elem => (0, _dom.removeClass)(elem, 'row--current'));
|
|
8909
8918
|
}
|
|
8910
|
-
|
|
8919
|
+
if ($xeGanttView) {
|
|
8920
|
+
$xeGanttView.handleUpdateCurrentRow();
|
|
8921
|
+
}
|
|
8922
|
+
return $xeTable.$nextTick();
|
|
8911
8923
|
},
|
|
8912
8924
|
/**
|
|
8913
8925
|
* 用于单选行,手动清空用户的选择
|
|
@@ -8978,24 +8990,31 @@ const Methods = {
|
|
|
8978
8990
|
this.setHoverRow(row);
|
|
8979
8991
|
},
|
|
8980
8992
|
setHoverRow(row) {
|
|
8981
|
-
const
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
const
|
|
8985
|
-
|
|
8986
|
-
if (
|
|
8987
|
-
_xeUtils.default.arrayEach(
|
|
8993
|
+
const $xeTable = this;
|
|
8994
|
+
const internalData = $xeTable;
|
|
8995
|
+
const $xeGanttView = internalData.xeGanttView;
|
|
8996
|
+
const el = $xeTable.$refs.refElem;
|
|
8997
|
+
$xeTable.clearHoverRow();
|
|
8998
|
+
if (el) {
|
|
8999
|
+
_xeUtils.default.arrayEach(el.querySelectorAll(`.vxe-body--row[rowid="${(0, _util.getRowid)($xeTable, row)}"]`), elem => (0, _dom.addClass)(elem, 'row--hover'));
|
|
9000
|
+
}
|
|
9001
|
+
internalData.hoverRow = row;
|
|
9002
|
+
if ($xeGanttView) {
|
|
9003
|
+
$xeGanttView.handleUpdateHoverRow(row);
|
|
8988
9004
|
}
|
|
8989
|
-
this.hoverRow = row;
|
|
8990
9005
|
},
|
|
8991
9006
|
clearHoverRow() {
|
|
8992
|
-
const
|
|
8993
|
-
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
|
|
9007
|
+
const $xeTable = this;
|
|
9008
|
+
const internalData = $xeTable;
|
|
9009
|
+
const $xeGanttView = internalData.xeGanttView;
|
|
9010
|
+
const el = $xeTable.$refs.refElem;
|
|
9011
|
+
if (el) {
|
|
9012
|
+
_xeUtils.default.arrayEach(el.querySelectorAll('.vxe-body--row.row--hover'), elem => (0, _dom.removeClass)(elem, 'row--hover'));
|
|
9013
|
+
}
|
|
9014
|
+
internalData.hoverRow = null;
|
|
9015
|
+
if ($xeGanttView) {
|
|
9016
|
+
$xeGanttView.handleUpdateHoverRow();
|
|
8997
9017
|
}
|
|
8998
|
-
this.hoverRow = null;
|
|
8999
9018
|
},
|
|
9000
9019
|
triggerHeaderCellClickEvent(evnt, params) {
|
|
9001
9020
|
const $xeTable = this;
|