vxe-table 3.17.9 → 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/components.js +1 -1
- package/es/grid/src/grid.js +6 -6
- 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/body.js +3 -3
- package/es/table/src/footer.js +1 -1
- package/es/table/src/header.js +2 -2
- 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/components.js +17 -18
- package/lib/components.min.js +1 -1
- package/lib/grid/src/grid.js +6 -27
- 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 +72 -71
- 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/body.js +3 -2
- package/lib/table/src/body.min.js +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 +3 -2
- package/lib/table/src/header.min.js +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/components.ts +1 -1
- package/packages/grid/src/grid.ts +26 -25
- 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/body.ts +3 -3
- package/packages/table/src/footer.ts +1 -1
- package/packages/table/src/header.ts +2 -2
- package/packages/table/src/methods.ts +53 -21
- package/styles/components/table.scss +7 -3
- /package/es/{iconfont.1755066349013.ttf → iconfont.1755178463571.ttf} +0 -0
- /package/es/{iconfont.1755066349013.woff → iconfont.1755178463571.woff} +0 -0
- /package/es/{iconfont.1755066349013.woff2 → iconfont.1755178463571.woff2} +0 -0
- /package/lib/{iconfont.1755066349013.ttf → iconfont.1755178463571.ttf} +0 -0
- /package/lib/{iconfont.1755066349013.woff → iconfont.1755178463571.woff} +0 -0
- /package/lib/{iconfont.1755066349013.woff2 → iconfont.1755178463571.woff2} +0 -0
|
@@ -304,8 +304,11 @@ function cacheColumnMap ($xeTable: VxeTableConstructor & VxeTablePrivateMethods)
|
|
|
304
304
|
}
|
|
305
305
|
fullColFieldData[field] = rest
|
|
306
306
|
} else {
|
|
307
|
-
if (
|
|
308
|
-
errLog('vxe.error.
|
|
307
|
+
if (storage && !type) {
|
|
308
|
+
errLog('vxe.error.reqSupportProp', ['storage', `${column.getTitle() || type || ''} -> field=?`])
|
|
309
|
+
}
|
|
310
|
+
if (columnOpts.drag && (isCrossDrag || isSelfToChildDrag)) {
|
|
311
|
+
errLog('vxe.error.reqSupportProp', ['column-drag-config.isCrossDrag | column-drag-config.isSelfToChildDrag', `${column.getTitle() || type || ''} -> field=?`])
|
|
309
312
|
}
|
|
310
313
|
}
|
|
311
314
|
if (!hasFixed && fixed) {
|
|
@@ -7765,15 +7768,23 @@ const Methods = {
|
|
|
7765
7768
|
* @param {Row} row 行对象
|
|
7766
7769
|
*/
|
|
7767
7770
|
setCurrentRow (row: any) {
|
|
7768
|
-
const
|
|
7771
|
+
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
7772
|
+
const internalData = $xeTable as unknown as TableInternalData
|
|
7773
|
+
|
|
7774
|
+
const $xeGanttView = internalData.xeGanttView
|
|
7775
|
+
const el = $xeTable.$refs.refElem as HTMLDivElement
|
|
7776
|
+
const rowOpts = $xeTable.computeRowOpts
|
|
7769
7777
|
this.clearCurrentRow()
|
|
7770
7778
|
// this.clearCurrentColumn()
|
|
7771
7779
|
this.currentRow = row
|
|
7772
7780
|
if (rowOpts.isCurrent || this.highlightCurrentRow) {
|
|
7773
|
-
if (
|
|
7774
|
-
XEUtils.arrayEach(
|
|
7781
|
+
if (el) {
|
|
7782
|
+
XEUtils.arrayEach(el.querySelectorAll(`[rowid="${getRowid($xeTable, row)}"]`), elem => addClass(elem, 'row--current'))
|
|
7775
7783
|
}
|
|
7776
7784
|
}
|
|
7785
|
+
if ($xeGanttView) {
|
|
7786
|
+
$xeGanttView.handleUpdateCurrentRow(row)
|
|
7787
|
+
}
|
|
7777
7788
|
return this.$nextTick()
|
|
7778
7789
|
},
|
|
7779
7790
|
isCheckedByRadioRow (row: any) {
|
|
@@ -7824,13 +7835,21 @@ const Methods = {
|
|
|
7824
7835
|
* 用于当前行,手动清空当前高亮的状态
|
|
7825
7836
|
*/
|
|
7826
7837
|
clearCurrentRow () {
|
|
7827
|
-
const
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7838
|
+
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
7839
|
+
const reactData = $xeTable as unknown as TableReactData
|
|
7840
|
+
const internalData = $xeTable as unknown as TableInternalData
|
|
7841
|
+
|
|
7842
|
+
const $xeGanttView = internalData.xeGanttView
|
|
7843
|
+
const el = $xeTable.$refs.refElem as HTMLDivElement
|
|
7844
|
+
reactData.currentRow = null
|
|
7845
|
+
internalData.hoverRow = null
|
|
7846
|
+
if (el) {
|
|
7847
|
+
XEUtils.arrayEach(el.querySelectorAll('.row--current'), elem => removeClass(elem, 'row--current'))
|
|
7832
7848
|
}
|
|
7833
|
-
|
|
7849
|
+
if ($xeGanttView) {
|
|
7850
|
+
$xeGanttView.handleUpdateCurrentRow()
|
|
7851
|
+
}
|
|
7852
|
+
return $xeTable.$nextTick()
|
|
7834
7853
|
},
|
|
7835
7854
|
/**
|
|
7836
7855
|
* 用于单选行,手动清空用户的选择
|
|
@@ -7891,20 +7910,33 @@ const Methods = {
|
|
|
7891
7910
|
this.setHoverRow(row)
|
|
7892
7911
|
},
|
|
7893
7912
|
setHoverRow (row: any) {
|
|
7894
|
-
const
|
|
7895
|
-
const
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7913
|
+
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
7914
|
+
const internalData = $xeTable as unknown as TableInternalData
|
|
7915
|
+
|
|
7916
|
+
const $xeGanttView = internalData.xeGanttView
|
|
7917
|
+
const el = $xeTable.$refs.refElem as HTMLDivElement
|
|
7918
|
+
$xeTable.clearHoverRow()
|
|
7919
|
+
if (el) {
|
|
7920
|
+
XEUtils.arrayEach(el.querySelectorAll(`.vxe-body--row[rowid="${getRowid($xeTable, row)}"]`), elem => addClass(elem, 'row--hover'))
|
|
7921
|
+
}
|
|
7922
|
+
internalData.hoverRow = row
|
|
7923
|
+
if ($xeGanttView) {
|
|
7924
|
+
$xeGanttView.handleUpdateHoverRow(row)
|
|
7899
7925
|
}
|
|
7900
|
-
this.hoverRow = row
|
|
7901
7926
|
},
|
|
7902
7927
|
clearHoverRow () {
|
|
7903
|
-
const
|
|
7904
|
-
|
|
7905
|
-
|
|
7928
|
+
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
7929
|
+
const internalData = $xeTable as unknown as TableInternalData
|
|
7930
|
+
|
|
7931
|
+
const $xeGanttView = internalData.xeGanttView
|
|
7932
|
+
const el = $xeTable.$refs.refElem as HTMLDivElement
|
|
7933
|
+
if (el) {
|
|
7934
|
+
XEUtils.arrayEach(el.querySelectorAll('.vxe-body--row.row--hover'), elem => removeClass(elem, 'row--hover'))
|
|
7935
|
+
}
|
|
7936
|
+
internalData.hoverRow = null
|
|
7937
|
+
if ($xeGanttView) {
|
|
7938
|
+
$xeGanttView.handleUpdateHoverRow()
|
|
7906
7939
|
}
|
|
7907
|
-
this.hoverRow = null
|
|
7908
7940
|
},
|
|
7909
7941
|
triggerHeaderCellClickEvent (evnt: MouseEvent, params: VxeTableDefines.CellRenderHeaderParams) {
|
|
7910
7942
|
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
@@ -1223,9 +1223,6 @@ $btnThemeList: (
|
|
|
1223
1223
|
// }
|
|
1224
1224
|
|
|
1225
1225
|
/*边框*/
|
|
1226
|
-
.vxe-table--footer-wrapper {
|
|
1227
|
-
border-top: var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color);
|
|
1228
|
-
}
|
|
1229
1226
|
&.border--default,
|
|
1230
1227
|
&.border--full,
|
|
1231
1228
|
&.border--outer,
|
|
@@ -1323,6 +1320,13 @@ $btnThemeList: (
|
|
|
1323
1320
|
}
|
|
1324
1321
|
}
|
|
1325
1322
|
&.border--default,
|
|
1323
|
+
&.border--full,
|
|
1324
|
+
&.border--inner {
|
|
1325
|
+
.vxe-table--footer-wrapper {
|
|
1326
|
+
border-top: var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color);
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
&.border--default,
|
|
1326
1330
|
&.border--full {
|
|
1327
1331
|
.vxe-table--scroll-y-top-corner {
|
|
1328
1332
|
&::before {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|