vxe-table 4.14.0-beta.1 → 4.14.0-beta.10
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.en.md +1 -70
- package/README.ja-JP.md +1 -70
- package/README.md +9 -18
- package/README.zh-TW.md +1 -69
- package/es/grid/src/grid.js +30 -21
- package/es/index.css +1 -1
- package/es/index.esm.js +2 -2
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +4 -1
- package/es/locale/lang/de-DE.js +4 -1
- package/es/locale/lang/en-US.js +4 -1
- package/es/locale/lang/es-ES.js +4 -1
- package/es/locale/lang/fr-FR.js +4 -1
- package/es/locale/lang/hu-HU.js +4 -1
- package/es/locale/lang/hy-AM.js +4 -1
- package/es/locale/lang/id-ID.js +4 -1
- package/es/locale/lang/it-IT.js +4 -1
- package/es/locale/lang/ja-JP.js +4 -1
- package/es/locale/lang/ko-KR.js +4 -1
- package/es/locale/lang/ms-MY.js +4 -1
- package/es/locale/lang/nb-NO.js +4 -1
- package/es/locale/lang/pt-BR.js +4 -1
- package/es/locale/lang/ru-RU.js +4 -1
- package/es/locale/lang/th-TH.js +4 -1
- package/es/locale/lang/ug-CN.js +4 -1
- package/es/locale/lang/uk-UA.js +4 -1
- package/es/locale/lang/uz-UZ.js +4 -1
- package/es/locale/lang/vi-VN.js +4 -1
- package/es/locale/lang/zh-CHT.js +4 -1
- package/es/locale/lang/zh-CN.js +4 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/hook.js +0 -4
- package/es/table/module/custom/panel.js +0 -1
- package/es/table/module/edit/hook.js +31 -1
- package/es/table/module/filter/hook.js +1 -1
- package/es/table/src/anime.js +46 -0
- package/es/table/src/body.js +13 -27
- package/es/table/src/cell.js +1 -1
- package/es/table/src/columnInfo.js +5 -0
- package/es/table/src/footer.js +8 -25
- package/es/table/src/header.js +5 -22
- package/es/table/src/table.js +609 -381
- package/es/table/src/util.js +6 -2
- package/es/table/style.css +8 -8
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +7 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +8 -8
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +35 -23
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.common.js +5 -5
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +211 -153
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +4 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +4 -1
- package/lib/locale/lang/de-DE.js +4 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +4 -1
- package/lib/locale/lang/en-US.js +4 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +4 -1
- package/lib/locale/lang/es-ES.js +4 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +4 -1
- package/lib/locale/lang/fr-FR.js +4 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +4 -1
- package/lib/locale/lang/hu-HU.js +4 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +4 -1
- package/lib/locale/lang/hy-AM.js +4 -1
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +4 -1
- package/lib/locale/lang/id-ID.js +4 -1
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +4 -1
- package/lib/locale/lang/it-IT.js +4 -1
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +4 -1
- package/lib/locale/lang/ja-JP.js +4 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +4 -1
- package/lib/locale/lang/ko-KR.js +4 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +4 -1
- package/lib/locale/lang/ms-MY.js +4 -1
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +4 -1
- package/lib/locale/lang/nb-NO.js +4 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +4 -1
- package/lib/locale/lang/pt-BR.js +4 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +4 -1
- package/lib/locale/lang/ru-RU.js +4 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +4 -1
- package/lib/locale/lang/th-TH.js +4 -1
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +4 -1
- package/lib/locale/lang/ug-CN.js +4 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +4 -1
- package/lib/locale/lang/uk-UA.js +4 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +4 -1
- package/lib/locale/lang/uz-UZ.js +4 -1
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +4 -1
- package/lib/locale/lang/vi-VN.js +4 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +4 -1
- package/lib/locale/lang/zh-CHT.js +4 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +4 -1
- package/lib/locale/lang/zh-CN.js +4 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +4 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/hook.js +0 -4
- package/lib/table/module/custom/hook.min.js +1 -1
- package/lib/table/module/custom/panel.js +0 -1
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/hook.js +30 -1
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/module/filter/hook.js +1 -1
- package/lib/table/module/filter/hook.min.js +1 -1
- package/lib/table/src/anime.js +56 -0
- package/lib/table/src/anime.min.js +1 -0
- package/lib/table/src/body.js +6 -29
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +1 -1
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/columnInfo.js +5 -0
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/footer.js +6 -23
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +3 -20
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/table.js +56 -45
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +11 -3
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +8 -8
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +7 -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 +8 -8
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +32 -22
- package/packages/index.ts +2 -2
- package/packages/locale/lang/ar-EG.ts +4 -1
- package/packages/locale/lang/de-DE.ts +4 -1
- package/packages/locale/lang/en-US.ts +4 -1
- package/packages/locale/lang/es-ES.ts +4 -1
- package/packages/locale/lang/fr-FR.ts +4 -1
- package/packages/locale/lang/hu-HU.ts +4 -1
- package/packages/locale/lang/hy-AM.ts +4 -1
- package/packages/locale/lang/id-ID.ts +4 -1
- package/packages/locale/lang/it-IT.ts +4 -1
- package/packages/locale/lang/ja-JP.ts +4 -1
- package/packages/locale/lang/ko-KR.ts +4 -1
- package/packages/locale/lang/ms-MY.ts +4 -1
- package/packages/locale/lang/nb-NO.ts +4 -1
- package/packages/locale/lang/pt-BR.ts +4 -1
- package/packages/locale/lang/ru-RU.ts +4 -1
- package/packages/locale/lang/th-TH.ts +4 -1
- package/packages/locale/lang/ug-CN.ts +4 -1
- package/packages/locale/lang/uk-UA.ts +4 -1
- package/packages/locale/lang/uz-UZ.ts +4 -1
- package/packages/locale/lang/vi-VN.ts +4 -1
- package/packages/locale/lang/zh-CHT.ts +4 -1
- package/packages/locale/lang/zh-CN.ts +4 -1
- package/packages/table/module/custom/hook.ts +0 -4
- package/packages/table/module/custom/panel.ts +0 -1
- package/packages/table/module/edit/hook.ts +29 -1
- package/packages/table/module/filter/hook.ts +1 -1
- package/packages/table/src/anime.ts +52 -0
- package/packages/table/src/body.ts +20 -41
- package/packages/table/src/cell.ts +1 -1
- package/packages/table/src/columnInfo.ts +5 -0
- package/packages/table/src/footer.ts +8 -25
- package/packages/table/src/header.ts +5 -22
- package/packages/table/src/table.ts +620 -384
- package/packages/table/src/util.ts +6 -2
- package/packages/ui/index.ts +6 -0
- package/styles/components/table.scss +9 -9
- package/types/all.d.ts +3 -18
- /package/es/{iconfont.1750910518778.ttf → iconfont.1751970630744.ttf} +0 -0
- /package/es/{iconfont.1750910518778.woff → iconfont.1751970630744.woff} +0 -0
- /package/es/{iconfont.1750910518778.woff2 → iconfont.1751970630744.woff2} +0 -0
- /package/lib/{iconfont.1750910518778.ttf → iconfont.1751970630744.ttf} +0 -0
- /package/lib/{iconfont.1750910518778.woff → iconfont.1751970630744.woff} +0 -0
- /package/lib/{iconfont.1750910518778.woff2 → iconfont.1751970630744.woff2} +0 -0
|
@@ -239,7 +239,7 @@ export function getRefElem (refEl: any) {
|
|
|
239
239
|
return null
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
export function
|
|
242
|
+
export function getCalcHeight (height: number | 'unset' | undefined | null) {
|
|
243
243
|
if (height === 'unset') {
|
|
244
244
|
return 0
|
|
245
245
|
}
|
|
@@ -415,12 +415,16 @@ const countTreeExpand = (prevRow: any, params: VxeTableDefines.CellRenderBodyPar
|
|
|
415
415
|
return count
|
|
416
416
|
}
|
|
417
417
|
const { $table } = params
|
|
418
|
+
const reactData = $table.reactData
|
|
419
|
+
const { treeExpandedFlag } = reactData
|
|
420
|
+
const internalData = $table.internalData
|
|
421
|
+
const { treeExpandedMaps } = internalData
|
|
418
422
|
const { computeTreeOpts } = $table.getComputeMaps()
|
|
419
423
|
const treeOpts = computeTreeOpts.value
|
|
420
424
|
const { transform, mapChildrenField } = treeOpts
|
|
421
425
|
const childrenField = treeOpts.children || treeOpts.childrenField
|
|
422
426
|
const rowChildren = prevRow[transform ? mapChildrenField : childrenField]
|
|
423
|
-
if (rowChildren && $table
|
|
427
|
+
if (rowChildren && treeExpandedFlag && treeExpandedMaps[getRowid($table, prevRow)]) {
|
|
424
428
|
for (let index = 0; index < rowChildren.length; index++) {
|
|
425
429
|
count += countTreeExpand(rowChildren[index], params)
|
|
426
430
|
}
|
package/packages/ui/index.ts
CHANGED
|
@@ -77,6 +77,11 @@ VxeUI.setConfig({
|
|
|
77
77
|
theme: 'beautify'
|
|
78
78
|
},
|
|
79
79
|
columnConfig: {
|
|
80
|
+
autoOptions: {
|
|
81
|
+
isCalcHeader: true,
|
|
82
|
+
isCalcBody: true,
|
|
83
|
+
isCalcFooter: true
|
|
84
|
+
},
|
|
80
85
|
maxFixedSize: 4
|
|
81
86
|
},
|
|
82
87
|
cellConfig: {
|
|
@@ -257,6 +262,7 @@ VxeUI.setConfig({
|
|
|
257
262
|
proxyConfig: {
|
|
258
263
|
enabled: true,
|
|
259
264
|
autoLoad: true,
|
|
265
|
+
showLoading: true,
|
|
260
266
|
showResponseMsg: true,
|
|
261
267
|
showActiveMsg: true,
|
|
262
268
|
response: {
|
|
@@ -1920,19 +1920,16 @@ $btnThemeList: (
|
|
|
1920
1920
|
background-color: var( --vxe-ui-table-drag-over-background-color);
|
|
1921
1921
|
}
|
|
1922
1922
|
}
|
|
1923
|
-
.vxe-
|
|
1924
|
-
|
|
1925
|
-
|
|
1923
|
+
.vxe-table--column {
|
|
1924
|
+
&.col--drag-move {
|
|
1925
|
+
transition: transform 0.5s ease;
|
|
1926
|
+
}
|
|
1926
1927
|
&.col--drag-origin {
|
|
1927
1928
|
& > .vxe-cell {
|
|
1928
|
-
opacity: 0.
|
|
1929
|
+
opacity: 0.3;
|
|
1929
1930
|
}
|
|
1930
1931
|
}
|
|
1931
1932
|
}
|
|
1932
|
-
.vxe-header--col-list-move {
|
|
1933
|
-
transition-property: transform;
|
|
1934
|
-
transition-duration: 0.35s;
|
|
1935
|
-
}
|
|
1936
1933
|
|
|
1937
1934
|
.vxe-table--drag-col-line,
|
|
1938
1935
|
.vxe-table--drag-row-line {
|
|
@@ -1984,10 +1981,13 @@ $btnThemeList: (
|
|
|
1984
1981
|
}
|
|
1985
1982
|
}
|
|
1986
1983
|
.vxe-body--row {
|
|
1984
|
+
&.row--drag-move {
|
|
1985
|
+
transition: transform 0.5s ease;
|
|
1986
|
+
}
|
|
1987
1987
|
&.row--drag-origin {
|
|
1988
1988
|
& > .vxe-body--column {
|
|
1989
1989
|
& > .vxe-cell {
|
|
1990
|
-
opacity: 0.
|
|
1990
|
+
opacity: 0.3;
|
|
1991
1991
|
}
|
|
1992
1992
|
}
|
|
1993
1993
|
}
|
package/types/all.d.ts
CHANGED
|
@@ -3,11 +3,12 @@ import { VxeUIExport, VxeGlobalConfig } from 'vxe-pc-ui'
|
|
|
3
3
|
|
|
4
4
|
declare global {
|
|
5
5
|
interface Window {
|
|
6
|
+
VxeUITable: VxeUIExport
|
|
7
|
+
|
|
6
8
|
/**
|
|
7
9
|
* @deprecated
|
|
8
10
|
*/
|
|
9
|
-
VXETable: VxeUIExport
|
|
10
|
-
VxeUITable: VxeUIExport;
|
|
11
|
+
VXETable: VxeUIExport
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
|
|
@@ -34,19 +35,3 @@ export * from 'vxe-pc-ui/types/components/colgroup'
|
|
|
34
35
|
export * from 'vxe-pc-ui/types/components/table'
|
|
35
36
|
export * from 'vxe-pc-ui/types/components/grid'
|
|
36
37
|
export * from 'vxe-pc-ui/types/components/toolbar'
|
|
37
|
-
|
|
38
|
-
// 已废弃,兼容老版本类型
|
|
39
|
-
export * from 'vxe-pc-ui/types/components/textarea'
|
|
40
|
-
export * from 'vxe-pc-ui/types/components/select'
|
|
41
|
-
export * from 'vxe-pc-ui/types/components/switch'
|
|
42
|
-
export * from 'vxe-pc-ui/types/components/optgroup'
|
|
43
|
-
export * from 'vxe-pc-ui/types/components/option'
|
|
44
|
-
export * from 'vxe-pc-ui/types/components/pager'
|
|
45
|
-
export * from 'vxe-pc-ui/types/components/form'
|
|
46
|
-
export * from 'vxe-pc-ui/types/components/form-item'
|
|
47
|
-
export * from 'vxe-pc-ui/types/components/modal'
|
|
48
|
-
export * from 'vxe-pc-ui/types/components/button'
|
|
49
|
-
export * from 'vxe-pc-ui/types/components/button-group'
|
|
50
|
-
export * from 'vxe-pc-ui/types/components/input'
|
|
51
|
-
export * from 'vxe-pc-ui/types/components/pulldown'
|
|
52
|
-
export * from 'vxe-pc-ui/types/components/tooltip'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|