tomtaw-vxe-table 3.25.20 → 3.25.21
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/colgroup/index.d.ts +2 -0
- package/es/column/index.d.ts +2 -0
- package/es/table/src/body.js +58 -13
- package/es/table/src/column.d.ts +2 -0
- package/es/table/src/column.js +2 -0
- package/es/table/src/columnInfo.js +1 -0
- package/es/table/src/group.d.ts +1 -0
- package/es/table/src/header.d.ts +3 -1
- package/es/table/src/header.js +49 -12
- package/es/table/src/methods.js +82 -65
- package/es/table/src/table.js +4 -13
- package/es/table/src/util.js +4 -2
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +205 -113
- package/lib/index.umd.min.js +3 -3
- package/lib/table/src/body.js +58 -13
- package/lib/table/src/column.js +2 -0
- package/lib/table/src/columnInfo.js +1 -0
- package/lib/table/src/header.js +48 -11
- package/lib/table/src/methods.js +82 -65
- package/lib/table/src/table.js +4 -13
- package/lib/table/src/util.js +4 -2
- package/lib/ui/index.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/package.json +1 -1
- package/packages/table/src/body.ts +42 -13
- package/packages/table/src/column.ts +2 -0
- package/packages/table/src/columnInfo.ts +1 -0
- package/packages/table/src/header.ts +53 -13
- package/packages/table/src/methods.ts +102 -65
- package/packages/table/src/table.ts +8 -16
- package/packages/table/src/util.ts +4 -2
- package/types/all.d.ts +21 -1
- /package/es/{iconfont.1795759903178.ttf → iconfont.1795761876277.ttf} +0 -0
- /package/es/{iconfont.1795759903178.woff → iconfont.1795761876277.woff} +0 -0
- /package/es/{iconfont.1795759903178.woff2 → iconfont.1795761876277.woff2} +0 -0
- /package/lib/{iconfont.1795759903178.ttf → iconfont.1795761876277.ttf} +0 -0
- /package/lib/{iconfont.1795759903178.woff → iconfont.1795761876277.woff} +0 -0
- /package/lib/{iconfont.1795759903178.woff2 → iconfont.1795761876277.woff2} +0 -0
|
@@ -976,8 +976,10 @@ export function getFirstChildColumn(column: VxeTableDefines.ColumnInfo): VxeTabl
|
|
|
976
976
|
|
|
977
977
|
export function getLastChildColumn(column: VxeTableDefines.ColumnInfo): VxeTableDefines.ColumnInfo {
|
|
978
978
|
const { children } = column
|
|
979
|
-
if (children
|
|
980
|
-
|
|
979
|
+
if (children) {
|
|
980
|
+
for (let i = children.length - 1; i >= 0; i--) {
|
|
981
|
+
if (children[i].visible !== false) return getLastChildColumn(children[i])
|
|
982
|
+
}
|
|
981
983
|
}
|
|
982
984
|
return column
|
|
983
985
|
}
|
package/types/all.d.ts
CHANGED
|
@@ -8,11 +8,27 @@ import VxeTable from 'vxe-pc-ui/types/components/table'
|
|
|
8
8
|
import VxeGrid from 'vxe-pc-ui/types/components/grid'
|
|
9
9
|
import VxeToolbar from 'vxe-pc-ui/types/components/toolbar'
|
|
10
10
|
|
|
11
|
+
declare module 'vxe-pc-ui/types/components/column' {
|
|
12
|
+
interface VxeColumnProps<D = any> {
|
|
13
|
+
/** 普通只读列的默认插槽独立更新。原地修改非响应式行后使用 refreshRowContent。 */
|
|
14
|
+
rowScopedSlot?: boolean
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
11
18
|
declare module 'vxe-pc-ui/types/components/table' {
|
|
12
19
|
interface TablePrivateMethods<D = any> {
|
|
20
|
+
handleTableData(force?: boolean, reuseWindow?: boolean, reason?: 'sort'): Promise<any>
|
|
21
|
+
updateScrollXData(fromScroll?: boolean): Promise<any>
|
|
22
|
+
updateScrollXSpace(beforeWindowCommit?: boolean): void
|
|
13
23
|
updateScrollYData(fromScroll?: boolean): Promise<any>
|
|
14
24
|
}
|
|
15
25
|
namespace VxeTableDefines {
|
|
26
|
+
interface ColumnInfo<D = any> {
|
|
27
|
+
rowScopedSlot?: boolean
|
|
28
|
+
}
|
|
29
|
+
interface RowCacheItem<D = any> {
|
|
30
|
+
contentVersion?: number
|
|
31
|
+
}
|
|
16
32
|
interface CheckboxForceOptions {
|
|
17
33
|
/** false 时按 checkboxConfig.checkMethod 判断行是否可选。 */
|
|
18
34
|
force?: boolean
|
|
@@ -35,11 +51,15 @@ declare module 'vxe-pc-ui/types/components/table' {
|
|
|
35
51
|
refreshRowExpandHeight(): Promise<void>
|
|
36
52
|
}
|
|
37
53
|
namespace VxeTablePropTypes {
|
|
54
|
+
interface FilterConfig<D = VxeTablePropTypes.Row> {
|
|
55
|
+
/** 本地平表仅排序时复用筛选结果。原地改变行或筛选函数的外部依赖后调用 updateData()。 */
|
|
56
|
+
cacheOnSort?: boolean
|
|
57
|
+
}
|
|
38
58
|
interface VirtualXConfig {
|
|
39
59
|
/**
|
|
40
60
|
* 实验性跳过横向空间同步中未变化的内联样式写入。默认 false。
|
|
41
61
|
* 关闭时使用原来的直接赋值路径,仅显式 true 时进入独立去重实现。
|
|
42
|
-
*
|
|
62
|
+
* 使用与默认模式相同的列窗校正时机,不跨帧缓存高度。
|
|
43
63
|
* 换行、展开内容及容器尺寸变化仍走原有测量流程。
|
|
44
64
|
*/
|
|
45
65
|
experimentalSkipUnchangedStyle?: boolean
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|