vxe-pc-ui 3.3.56 → 3.3.57

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.
Files changed (47) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/modal/src/modal.js +38 -4
  3. package/es/select/src/select.js +28 -1
  4. package/es/style.css +1 -1
  5. package/es/style.min.css +1 -1
  6. package/es/ui/index.js +1 -1
  7. package/es/ui/src/log.js +1 -1
  8. package/lib/icon/style/style.css +1 -1
  9. package/lib/icon/style/style.min.css +1 -1
  10. package/lib/index.umd.js +69 -7
  11. package/lib/index.umd.min.js +1 -1
  12. package/lib/modal/src/modal.js +38 -4
  13. package/lib/modal/src/modal.min.js +1 -1
  14. package/lib/select/src/select.js +29 -1
  15. package/lib/select/src/select.min.js +1 -1
  16. package/lib/style.css +1 -1
  17. package/lib/style.min.css +1 -1
  18. package/lib/ui/index.js +1 -1
  19. package/lib/ui/index.min.js +1 -1
  20. package/lib/ui/src/log.js +1 -1
  21. package/lib/ui/src/log.min.js +1 -1
  22. package/package.json +4 -4
  23. package/packages/modal/src/modal.ts +38 -4
  24. package/packages/select/src/select.ts +29 -1
  25. package/types/components/column.d.ts +7 -5
  26. package/types/components/form-item.d.ts +6 -6
  27. package/types/components/modal.d.ts +9 -3
  28. package/types/components/select.d.ts +8 -0
  29. package/types/components/table-plugins/extend-cell-area.d.ts +2 -2
  30. package/types/components/table.d.ts +74 -54
  31. package/types/components/toolbar.d.ts +3 -3
  32. package/types/ui/commands.d.ts +1 -1
  33. package/types/ui/interceptor.d.ts +4 -4
  34. package/types/ui/menus.d.ts +3 -4
  35. package/types/ui/renderer.d.ts +21 -19
  36. /package/es/icon/{iconfont.1735618294204.ttf → iconfont.1735657369485.ttf} +0 -0
  37. /package/es/icon/{iconfont.1735618294204.woff → iconfont.1735657369485.woff} +0 -0
  38. /package/es/icon/{iconfont.1735618294204.woff2 → iconfont.1735657369485.woff2} +0 -0
  39. /package/es/{iconfont.1735618294204.ttf → iconfont.1735657369485.ttf} +0 -0
  40. /package/es/{iconfont.1735618294204.woff → iconfont.1735657369485.woff} +0 -0
  41. /package/es/{iconfont.1735618294204.woff2 → iconfont.1735657369485.woff2} +0 -0
  42. /package/lib/icon/style/{iconfont.1735618294204.ttf → iconfont.1735657369485.ttf} +0 -0
  43. /package/lib/icon/style/{iconfont.1735618294204.woff → iconfont.1735657369485.woff} +0 -0
  44. /package/lib/icon/style/{iconfont.1735618294204.woff2 → iconfont.1735657369485.woff2} +0 -0
  45. /package/lib/{iconfont.1735618294204.ttf → iconfont.1735657369485.ttf} +0 -0
  46. /package/lib/{iconfont.1735618294204.woff → iconfont.1735657369485.woff} +0 -0
  47. /package/lib/{iconfont.1735618294204.woff2 → iconfont.1735657369485.woff2} +0 -0
@@ -1,4 +1,4 @@
1
- import { VNode } from 'vue'
1
+ import { VNode, CreateElement } from 'vue'
2
2
  import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, VxeComponentSizeType, ValueOf, VxeGlobalConfig, VxeComponentStyleType, VxeComponentSlotType } from '@vxe-ui/core'
3
3
  import { VxeColumnPropTypes, VxeColumnProps, VxeColumnSlotTypes } from './column'
4
4
  import { VxeTableProDefines, VxeTableProEmits } from './table-plugins'
@@ -16,7 +16,12 @@ export type VxeTableComponent = DefineVxeComponentOptions<VxeTableProps>
16
16
  export type VxeTableInstance<D = any> = DefineVxeComponentInstance<{
17
17
  reactData: TableReactData<D>
18
18
  internalData: TableInternalData<D>
19
- xegrid: VxeGridConstructor | null
19
+ $xeGrid: VxeGridConstructor<D> | null | undefined
20
+
21
+ /**
22
+ * @deprecated
23
+ */
24
+ xegrid: VxeGridConstructor<D> | null | undefined
20
25
  }, VxeTableProps<D>, VxeTablePrivateComputed<D>, VxeTableMethods<D>>
21
26
 
22
27
  export type VxeTableConstructor<D = any> = VxeTableInstance<D>
@@ -35,7 +40,7 @@ export type VxeTableDataRow = VxeTablePropTypes.Row
35
40
  export namespace VxeTablePropTypes {
36
41
  export type Size = VxeComponentSizeType
37
42
  export type ID<D = any> = string | ((params: {
38
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
43
+ $table: VxeTableConstructor<D>
39
44
  $grid: VxeGridConstructor<D> | null | undefined
40
45
  }) => string | number | null)
41
46
 
@@ -66,14 +71,14 @@ export namespace VxeTablePropTypes {
66
71
  export type FooterData = Record<string, any>[]
67
72
 
68
73
  export type FooterMethod<D = any> = (params: {
69
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
74
+ $table: VxeTableConstructor<D>
70
75
  $grid: VxeGridConstructor<D> | null | undefined
71
76
  columns: VxeTableDefines.ColumnInfo<D>[]
72
77
  data: D[]
73
78
  }) => Array<string | number | null>[] | any[]
74
79
 
75
80
  export type RowClassName<D = VxeTablePropTypes.Row> = string | ((params: {
76
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
81
+ $table: VxeTableConstructor<D>
77
82
  row: D
78
83
  rowIndex: number
79
84
  $rowIndex: number
@@ -81,7 +86,7 @@ export namespace VxeTablePropTypes {
81
86
  }) => void | null | string | { [key: string]: boolean | null | undefined })
82
87
 
83
88
  export type CellClassName<D = VxeTablePropTypes.Row> = string | ((params: {
84
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
89
+ $table: VxeTableConstructor<D>
85
90
  row: D
86
91
  rowIndex: number
87
92
  $rowIndex: number
@@ -93,14 +98,14 @@ export namespace VxeTablePropTypes {
93
98
  }) => void | null | string | { [key: string]: boolean | null | undefined })
94
99
 
95
100
  export type HeaderRowClassName<D = VxeTablePropTypes.Row> = string | ((params: {
96
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
101
+ $table: VxeTableConstructor<D>
97
102
  $rowIndex: number
98
103
  fixed: VxeColumnPropTypes.Fixed
99
104
  type: string
100
105
  }) => void | null | string | { [key: string]: boolean | null | undefined })
101
106
 
102
107
  export type HeaderCellClassName<D = VxeTablePropTypes.Row> = string | ((params: {
103
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
108
+ $table: VxeTableConstructor<D>
104
109
  $rowIndex: number
105
110
  column: VxeTableDefines.ColumnInfo<D>
106
111
  columnIndex: number
@@ -111,7 +116,7 @@ export namespace VxeTablePropTypes {
111
116
  }) => void | null | string | { [key: string]: boolean | null | undefined })
112
117
 
113
118
  export type FooterRowClassName<D = VxeTablePropTypes.Row> = string | ((params: {
114
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
119
+ $table: VxeTableConstructor<D>
115
120
  row: D
116
121
  $rowIndex: number
117
122
  _rowIndex: number
@@ -120,7 +125,7 @@ export namespace VxeTablePropTypes {
120
125
  }) => void | null | string | { [key: string]: boolean | null | undefined })
121
126
 
122
127
  export type FooterCellClassName<D = VxeTablePropTypes.Row> = string | ((params: {
123
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
128
+ $table: VxeTableConstructor<D>
124
129
  row: D
125
130
  $rowIndex: number
126
131
  _rowIndex: number
@@ -142,7 +147,7 @@ export namespace VxeTablePropTypes {
142
147
  }) => void | null | VxeComponentStyleType)
143
148
 
144
149
  export type HeaderCellStyle<D = VxeTablePropTypes.Row> = VxeComponentStyleType | ((params: {
145
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
150
+ $table: VxeTableConstructor<D>
146
151
  $rowIndex: number
147
152
  column: VxeTableDefines.ColumnInfo<D>
148
153
  columnIndex: number
@@ -150,7 +155,7 @@ export namespace VxeTablePropTypes {
150
155
  }) => void | null | VxeComponentStyleType)
151
156
 
152
157
  export type FooterCellStyle<D = any> = VxeComponentStyleType | ((params: {
153
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
158
+ $table: VxeTableConstructor<D>
154
159
  row: D
155
160
  $rowIndex: number
156
161
  column: VxeTableDefines.ColumnInfo<D>
@@ -160,7 +165,7 @@ export namespace VxeTablePropTypes {
160
165
  }) => void | null | VxeComponentStyleType)
161
166
 
162
167
  export type RowStyle<D = VxeTablePropTypes.Row> = VxeComponentStyleType | ((params: {
163
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
168
+ $table: VxeTableConstructor<D>
164
169
  row: D
165
170
  rowIndex: number
166
171
  $rowIndex: number
@@ -168,14 +173,14 @@ export namespace VxeTablePropTypes {
168
173
  }) => void | null | VxeComponentStyleType)
169
174
 
170
175
  export type HeaderRowStyle<D = VxeTablePropTypes.Row> = VxeComponentStyleType | ((params: {
171
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
176
+ $table: VxeTableConstructor<D>
172
177
  $rowIndex: number
173
178
  fixed: VxeColumnPropTypes.Fixed
174
179
  type: string
175
180
  }) => void | null | VxeComponentStyleType)
176
181
 
177
182
  export type FooterRowStyle<D = any> = VxeComponentStyleType | ((params: {
178
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
183
+ $table: VxeTableConstructor<D>
179
184
  row: D
180
185
  $rowIndex: number
181
186
  _rowIndex: number
@@ -189,7 +194,7 @@ export namespace VxeTablePropTypes {
189
194
  export type MergeFooterItems<D = any> = MergeFooterItem<D>[]
190
195
 
191
196
  export type SpanMethod<D = VxeTablePropTypes.Row> = (params: {
192
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
197
+ $table: VxeTableConstructor<D>
193
198
  column: VxeTableDefines.ColumnInfo<D>
194
199
  columnIndex: number
195
200
  $columnIndex: number
@@ -204,7 +209,7 @@ export namespace VxeTablePropTypes {
204
209
  }) => void | { rowspan: number, colspan: number }
205
210
 
206
211
  export type FooterSpanMethod<D = any> = (params: {
207
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
212
+ $table: VxeTableConstructor<D>
208
213
  column: VxeTableDefines.ColumnInfo<D>
209
214
  columnIndex: number
210
215
  _columnIndex: number
@@ -427,15 +432,19 @@ export namespace VxeTablePropTypes {
427
432
  */
428
433
  trigger?: 'default' | 'cell' | 'row' | '' | null
429
434
  /**
430
- * 只对 tree-config 启用有效,是否跨节点拖拽,用于树结构,启用后允许拖拽到其他的子节点,除自身节点之外
435
+ * 只对 tree-config 启用有效,是否允许同级行拖拽,用于树结构,启用后允许同层级之间进行拖拽
436
+ */
437
+ isPeerDrag?: boolean
438
+ /**
439
+ * 只对 tree-config 启用有效,是否允许同级/跨层行拖拽,用于树结构,启用后允许跨层级拖拽(除了上级拖到子级)
431
440
  */
432
441
  isCrossDrag?: boolean
433
442
  /**
434
- * 只对 tree-config 启用有效,是否允许拖拽成目标节点的子级
443
+ * 需要 isCrossDrag,只对 tree-config 启用有效,是否允许拖拽成目标行的子级
435
444
  */
436
445
  isToChildDrag?: boolean
437
446
  /**
438
- * 只对 tree-config 启用有效,是否允许将自己拖拽到子孙节点中
447
+ * 需要 isCrossDrag,只对 tree-config 启用有效,是否允许将自己拖拽到子级行中
439
448
  */
440
449
  isSelfToChildDrag?: boolean
441
450
  /**
@@ -499,15 +508,19 @@ export namespace VxeTablePropTypes {
499
508
  */
500
509
  trigger?: 'default' | 'cell' | '' | null
501
510
  /**
502
- * 用于分组表头,是否跨列拖拽,启用后允许拖拽到其他的列,除自身列之外
511
+ * 用于分组表头,是否允许同级列拖拽,启用后允许同层级列之间进行拖拽
512
+ */
513
+ isPeerDrag?: boolean
514
+ /**
515
+ * 用于分组表头,是否同级/跨层级列拖拽,启用后允许跨拖拽列拖拽(除了上级拖到子级)
503
516
  */
504
517
  isCrossDrag?: boolean
505
518
  /**
506
- * 是否允许拖拽成目标列的子级
519
+ * 需要 isCrossDrag,是否允许拖拽成目标列的子级
507
520
  */
508
521
  isToChildDrag?: boolean
509
522
  /**
510
- * 用于分组表头,是否允许将自己拖拽到子孙列中
523
+ * 需要 isCrossDrag,用于分组表头,是否允许将自己拖拽到子孙列中
511
524
  */
512
525
  isSelfToChildDrag?: boolean
513
526
  /**
@@ -653,7 +666,7 @@ export namespace VxeTablePropTypes {
653
666
  * 列宽拖动的最小宽度
654
667
  */
655
668
  minWidth?: number | string | ((params: {
656
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
669
+ $table: VxeTableConstructor<D>
657
670
  column: VxeTableDefines.ColumnInfo<D>
658
671
  columnIndex: number
659
672
  $columnIndex: number
@@ -664,7 +677,7 @@ export namespace VxeTablePropTypes {
664
677
  * 列宽拖动的最大宽度
665
678
  */
666
679
  maxWidth?: number | string | ((params: {
667
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
680
+ $table: VxeTableConstructor<D>
668
681
  column: VxeTableDefines.ColumnInfo<D>
669
682
  columnIndex: number
670
683
  $columnIndex: number
@@ -702,7 +715,7 @@ export namespace VxeTablePropTypes {
702
715
  defaultSort?: SortConfigDefaultSort | SortConfigDefaultSort[]
703
716
  orders?: SortOrder[]
704
717
  sortMethod?(params: {
705
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
718
+ $table: VxeTableConstructor<D>
706
719
  data: D[]
707
720
  sortList: VxeTableDefines.SortCheckedParams[]
708
721
  }): any[]
@@ -832,13 +845,13 @@ export namespace VxeTablePropTypes {
832
845
  height?: number
833
846
  padding?: boolean
834
847
  loadMethod?(params: {
835
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
848
+ $table: VxeTableConstructor<D>
836
849
  row: D
837
850
  rowIndex: number
838
851
  $rowIndex: number
839
852
  }): Promise<void>
840
853
  toggleMethod?(params: {
841
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
854
+ $table: VxeTableConstructor<D>
842
855
  expanded: boolean
843
856
  row: D
844
857
  rowIndex: number
@@ -923,14 +936,14 @@ export namespace VxeTablePropTypes {
923
936
  * 该方法用于异步加载子节点
924
937
  */
925
938
  loadMethod?(params: {
926
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
939
+ $table: VxeTableConstructor<D>
927
940
  row: D
928
941
  }): Promise<any[]>
929
942
  /**
930
943
  * 该方法在展开或关闭触发之前调用,可以通过返回值来决定是否允许继续执行
931
944
  */
932
945
  toggleMethod?(params: {
933
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
946
+ $table: VxeTableConstructor<D>
934
947
  expanded: boolean
935
948
  row: D
936
949
  column: VxeTableDefines.ColumnInfo<D>
@@ -1057,7 +1070,7 @@ export namespace VxeTablePropTypes {
1057
1070
  selectedMethod?(params: {
1058
1071
  row: D
1059
1072
  column: VxeTableDefines.ColumnInfo<D>
1060
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
1073
+ $table: VxeTableConstructor<D>
1061
1074
  $grid: VxeGridConstructor<D> | null | undefined
1062
1075
  }): boolean
1063
1076
  /**
@@ -1205,7 +1218,7 @@ export namespace VxeTablePropTypes {
1205
1218
  columnIndex: number
1206
1219
  $columnIndex: number
1207
1220
  _columnIndex: number
1208
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
1221
+ $table: VxeTableConstructor<D>
1209
1222
  }): boolean
1210
1223
  /**
1211
1224
  * 只对 isEnter=true 有效,用于重写回车键的方法
@@ -1219,7 +1232,7 @@ export namespace VxeTablePropTypes {
1219
1232
  columnIndex: number
1220
1233
  $columnIndex: number
1221
1234
  _columnIndex: number
1222
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
1235
+ $table: VxeTableConstructor<D>
1223
1236
  }): void
1224
1237
  /**
1225
1238
  * 只对 isDel=true 有效,用于删除键清空单元格内容方法
@@ -1229,7 +1242,7 @@ export namespace VxeTablePropTypes {
1229
1242
  rowIndex: number
1230
1243
  column: VxeTableDefines.ColumnInfo<D>
1231
1244
  columnIndex: number
1232
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
1245
+ $table: VxeTableConstructor<D>
1233
1246
  }): void
1234
1247
  /**
1235
1248
  * 只对 isDel=true 有效,用于重写回退键清空单元格内容并激活为编辑状态方法
@@ -1239,7 +1252,7 @@ export namespace VxeTablePropTypes {
1239
1252
  rowIndex: number
1240
1253
  column: VxeTableDefines.ColumnInfo<D>
1241
1254
  columnIndex: number
1242
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
1255
+ $table: VxeTableConstructor<D>
1243
1256
  }): void
1244
1257
  /**
1245
1258
  * 只对 isEdit=true 有效,用于重写编辑单元格方法
@@ -1249,7 +1262,7 @@ export namespace VxeTablePropTypes {
1249
1262
  rowIndex: number
1250
1263
  column: VxeTableDefines.ColumnInfo<D>
1251
1264
  columnIndex: number
1252
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
1265
+ $table: VxeTableConstructor<D>
1253
1266
  $grid: VxeGridConstructor<D> | null | undefined
1254
1267
  }): void
1255
1268
  }
@@ -1810,7 +1823,7 @@ export namespace VxeTablePropTypes {
1810
1823
  */
1811
1824
  importMethod?(params: {
1812
1825
  $table: VxeTableConstructor
1813
- $grid: VxeGridConstructor
1826
+ $grid: VxeGridConstructor | null | undefined
1814
1827
  file: File
1815
1828
  options: ImportHandleOptions
1816
1829
  }): Promise<any>
@@ -1859,7 +1872,7 @@ export namespace VxeTablePropTypes {
1859
1872
  */
1860
1873
  filename?: string | ((params: {
1861
1874
  $table: VxeTableConstructor
1862
- $grid?: VxeGridConstructor | null
1875
+ $grid: VxeGridConstructor | null | undefined
1863
1876
  options: ExportOpts
1864
1877
  }) => string)
1865
1878
  /**
@@ -1867,7 +1880,7 @@ export namespace VxeTablePropTypes {
1867
1880
  */
1868
1881
  sheetName?: string | ((params: {
1869
1882
  $table: VxeTableConstructor
1870
- $grid?: VxeGridConstructor | null
1883
+ $grid: VxeGridConstructor | null | undefined
1871
1884
  options: ExportOpts
1872
1885
  }) => string)
1873
1886
  /**
@@ -1957,17 +1970,17 @@ export namespace VxeTablePropTypes {
1957
1970
  */
1958
1971
  exportMethod?(params: {
1959
1972
  $table: VxeTableConstructor
1960
- $grid?: VxeGridConstructor
1973
+ $grid: VxeGridConstructor | null | undefined
1961
1974
  options: ExportHandleOptions
1962
1975
  }): Promise<any>
1963
1976
  beforeExportMethod?(params: {
1964
1977
  $table: VxeTableConstructor
1965
- $grid?: VxeGridConstructor | null
1978
+ $grid: VxeGridConstructor | null | undefined
1966
1979
  options: ExportHandleOptions
1967
1980
  }): void
1968
1981
  afterExportMethod?(params: {
1969
1982
  $table: VxeTableConstructor
1970
- $grid?: VxeGridConstructor | null
1983
+ $grid: VxeGridConstructor | null | undefined
1971
1984
  status: boolean
1972
1985
  options: ExportHandleOptions
1973
1986
  }): void
@@ -1991,6 +2004,13 @@ export namespace VxeTablePropTypes {
1991
2004
  columns: VxeTableDefines.ColumnInfo[]
1992
2005
  colgroups: VxeTableDefines.ColumnInfo[][]
1993
2006
 
2007
+ /**
2008
+ * @private
2009
+ */
2010
+ isAllExpand?: boolean
2011
+ /**
2012
+ * @private
2013
+ */
1994
2014
  /**
1995
2015
  * @private
1996
2016
  */
@@ -2010,7 +2030,7 @@ export namespace VxeTablePropTypes {
2010
2030
  */
2011
2031
  sheetName?: string | ((params: {
2012
2032
  $table: VxeTableConstructor
2013
- $grid?: VxeGridConstructor | null
2033
+ $grid: VxeGridConstructor | null | undefined
2014
2034
  options: ExportOpts
2015
2035
  }) => string)
2016
2036
  /**
@@ -3658,7 +3678,7 @@ export interface TablePrivateMethods<D = any> {
3658
3678
  */
3659
3679
  getSetupOptions(): Required<VxeGlobalConfig>
3660
3680
  updateAfterDataIndex(): void
3661
- callSlot<T>(slotFunc: ((params: T) => VxeComponentSlotType | VxeComponentSlotType[]) | string | null, params: T): VxeComponentSlotType[]
3681
+ callSlot<T>(slotFunc: ((params: T) => VxeComponentSlotType | VxeComponentSlotType[]) | string | null, params: T, h: CreateElement): VxeComponentSlotType[]
3662
3682
  getParentElem(): Element | null
3663
3683
  getParentHeight(): number
3664
3684
  getExcludeHeight(): number
@@ -3698,7 +3718,7 @@ export interface TablePrivateMethods<D = any> {
3698
3718
  column: VxeTableDefines.ColumnInfo<any>
3699
3719
  }): void
3700
3720
  triggerCurrentRowEvent(evnt: Event, params: {
3701
- $table: VxeTableConstructor<any> & VxeTablePrivateMethods<any>
3721
+ $table: VxeTableConstructor<any>
3702
3722
  row: any
3703
3723
  rowIndex: number
3704
3724
  $rowIndex: number
@@ -4068,8 +4088,8 @@ export namespace VxeTableDefines {
4068
4088
  }
4069
4089
 
4070
4090
  export interface CellRenderHeaderParams<D = any> {
4071
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
4072
- $grid: VxeGridConstructor<D> | null
4091
+ $table: VxeTableConstructor<D>
4092
+ $grid: VxeGridConstructor<D> | null | undefined
4073
4093
  $rowIndex: number
4074
4094
  column: ColumnInfo<D>
4075
4095
  columnIndex: number
@@ -4085,8 +4105,8 @@ export namespace VxeTableDefines {
4085
4105
  }
4086
4106
 
4087
4107
  export interface CellRenderBodyParams<D = any> {
4088
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
4089
- $grid: VxeGridConstructor<D> | null
4108
+ $table: VxeTableConstructor<D>
4109
+ $grid: VxeGridConstructor<D> | null | undefined
4090
4110
  seq: string | number
4091
4111
  rowid: string
4092
4112
  row: D
@@ -4125,8 +4145,8 @@ export namespace VxeTableDefines {
4125
4145
  export interface CellRenderCellParams<D = any> extends CellRenderBodyParams<D> { }
4126
4146
 
4127
4147
  export interface CellRenderFooterParams<D = any> {
4128
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
4129
- $grid: VxeGridConstructor<D> | null
4148
+ $table: VxeTableConstructor<D>
4149
+ $grid: VxeGridConstructor<D> | null | undefined
4130
4150
  row: D
4131
4151
  rowIndex: number
4132
4152
  _rowIndex: number
@@ -4150,7 +4170,7 @@ export namespace VxeTableDefines {
4150
4170
  }
4151
4171
 
4152
4172
  interface TableEventParams<D = any> extends VxeComponentEventParams {
4153
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
4173
+ $table: VxeTableConstructor<D>
4154
4174
  }
4155
4175
 
4156
4176
  interface TableBaseHeaderCellParams<D = any> {
@@ -4501,7 +4521,7 @@ export namespace VxeTableDefines {
4501
4521
 
4502
4522
  export interface ExtortSheetMethodParams {
4503
4523
  $table: VxeTableConstructor
4504
- $grid?: VxeGridConstructor
4524
+ $grid: VxeGridConstructor | null | undefined
4505
4525
  options: VxeTablePropTypes.ExportHandleOptions
4506
4526
  datas: any[]
4507
4527
  columns: VxeTableDefines.ColumnInfo[]
@@ -4592,7 +4612,7 @@ export namespace VxeTableDefines {
4592
4612
  }
4593
4613
  export interface RuleValidatorParams<D = any> {
4594
4614
  $table: VxeTableConstructor<D>
4595
- $grid: VxeGridConstructor<D> | null
4615
+ $grid: VxeGridConstructor<D> | null | undefined
4596
4616
  cellValue: any
4597
4617
  rule: ValidatorRule<D>
4598
4618
  rules: ValidatorRule<D>[]
@@ -236,14 +236,14 @@ export interface ToolbarReactData {
236
236
  }
237
237
 
238
238
  export interface ToolbarInternalData {
239
- connectTable: (VxeTableConstructor<any> & VxeTablePrivateMethods<any>) | null
239
+ connectTable: VxeTableConstructor<any> & VxeTablePrivateMethods<any> | null | undefined
240
240
  }
241
241
 
242
242
  export interface ToolbarMethods {
243
243
  dispatchEvent(type: ValueOf<VxeToolbarEmits>, params: Record<string, any>, evnt: Event | null): void
244
244
  syncUpdate(params: {
245
245
  collectColumn: VxeTableDefines.ColumnInfo<any>[]
246
- $table: VxeTableConstructor<any> & VxeTablePrivateMethods<any>
246
+ $table: VxeTableConstructor
247
247
  }): void
248
248
  }
249
249
  export interface VxeToolbarMethods extends ToolbarMethods { }
@@ -260,7 +260,7 @@ export namespace VxeToolbarDefines {
260
260
  export interface ToolbarEventParams<D = any> extends VxeComponentEventParams {
261
261
  $toolbar: VxeToolbarConstructor
262
262
  $table: VxeTableConstructor<D>
263
- $grid: VxeGridConstructor<D>
263
+ $grid: VxeGridConstructor<D> | null | undefined
264
264
  }
265
265
 
266
266
  export interface ButtonClickEventParams<D = any> extends ToolbarEventParams<D> {
@@ -20,7 +20,7 @@ declare module '@vxe-ui/core' {
20
20
  }
21
21
 
22
22
  export interface TableCommandMethodParams {
23
- $grid: VxeGridConstructor | null
23
+ $grid: VxeGridConstructor | null | undefined
24
24
  $table: VxeTableConstructor
25
25
  button?: VxeToolbarPropTypes.ButtonConfig | null
26
26
  code?: string
@@ -1,5 +1,5 @@
1
- import { VxeTableConstructor, VxeTableDefines, VxeTablePropTypes, VxeTablePrivateMethods } from '../components/table'
2
- import { VxeGridConstructor, VxeGridPrivateMethods } from '../components/grid'
1
+ import { VxeTableConstructor, VxeTableDefines, VxeTablePropTypes } from '../components/table'
2
+ import { VxeGridConstructor } from '../components/grid'
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-empty-interface,no-use-before-define */
5
5
 
@@ -17,8 +17,8 @@ declare module '@vxe-ui/core' {
17
17
  export type Type = HookType | EventType
18
18
 
19
19
  export interface InterceptorParams {
20
- $grid?: VxeGridConstructor<any> & VxeGridPrivateMethods<any>
21
- $table: VxeTableConstructor<any> & VxeTablePrivateMethods<any>
20
+ $grid: VxeGridConstructor | null | undefined
21
+ $table: VxeTableConstructor
22
22
  $event: Event
23
23
  }
24
24
 
@@ -1,6 +1,5 @@
1
- import { VxeTableConstructor, VxeTableDefines, VxeTablePrivateMethods } from '../components/table'
1
+ import { VxeTableConstructor, VxeTableDefines } from '../components/table'
2
2
  import { VxeGridConstructor } from '../components/grid'
3
- import { VxeGlobalRendererHandles } from '@vxe-ui/core'
4
3
 
5
4
  /* eslint-disable no-use-before-define */
6
5
 
@@ -20,8 +19,8 @@ declare module '@vxe-ui/core' {
20
19
  }
21
20
 
22
21
  export interface TableMenuMethodParams extends VxeGlobalRendererHandles.RenderCellParams {
23
- $grid: VxeGridConstructor | null
24
- $table: VxeTableConstructor & VxeTablePrivateMethods
22
+ $grid: VxeGridConstructor | null | undefined
23
+ $table: VxeTableConstructor
25
24
  $event: MouseEvent
26
25
  menu: VxeTableDefines.MenuFirstOption | VxeTableDefines.MenuChildOption
27
26
  }
@@ -1,6 +1,6 @@
1
1
  import { CreateElement } from 'vue'
2
2
  import { VxeComponentStyleType, VxeComponentClassNameType, VxeComponentSlotType, VxeComponentAlignType } from '@vxe-ui/core'
3
- import { VxeTableConstructor, VxeTablePropTypes, VxeTableDefines, VxeTablePrivateMethods } from '../components/table'
3
+ import { VxeTableConstructor, VxeTablePropTypes, VxeTableDefines } from '../components/table'
4
4
  import { VxeFormItemPropTypes, VxeFormItemSlotTypes, FormItemContentRenderParams, FormItemVisibleParams, FormItemResetParams } from '../components/form-item'
5
5
  import { VxeGridConstructor, VxeGridPropTypes } from '../components/grid'
6
6
  import { VxeColumnPropTypes } from '../components/column'
@@ -258,7 +258,7 @@ declare module '@vxe-ui/core' {
258
258
  */
259
259
  export interface RenderFilterParams<D = any> extends RenderTableFilterParams<D> {}
260
260
  export interface RenderTableFilterParams<D = any> {
261
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
261
+ $table: VxeTableConstructor<D>
262
262
  $panel: any
263
263
  column: {
264
264
  filters: VxeTableDefines.FilterOption[]
@@ -273,7 +273,7 @@ declare module '@vxe-ui/core' {
273
273
  */
274
274
  export interface FilterMethodParams<D = any> extends TableFilterMethodParams<D> {}
275
275
  export interface TableFilterMethodParams<D = any> {
276
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
276
+ $table: VxeTableConstructor<D>
277
277
  value: any
278
278
  option: VxeTableDefines.FilterOption
279
279
  cellValue: any
@@ -286,7 +286,7 @@ declare module '@vxe-ui/core' {
286
286
  */
287
287
  export interface FilterRemoteMethod<D = any> extends TableFilterRemoteMethod<D> {}
288
288
  export interface TableFilterRemoteMethod<D = any> extends VxeTableDefines.FilterChangeParams<D> {
289
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
289
+ $table: VxeTableConstructor<D>
290
290
  }
291
291
 
292
292
  /**
@@ -294,7 +294,7 @@ declare module '@vxe-ui/core' {
294
294
  */
295
295
  export interface FilterResetMethodParams<D = any> extends TableFilterResetMethodParams<D> {}
296
296
  export interface TableFilterResetMethodParams<D = any> {
297
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
297
+ $table: VxeTableConstructor<D>
298
298
  options: VxeTableDefines.FilterOption[]
299
299
  column: VxeTableDefines.ColumnInfo<D>
300
300
  }
@@ -304,7 +304,7 @@ declare module '@vxe-ui/core' {
304
304
  */
305
305
  export interface FilterRecoverMethodParams<D = any> extends TableFilterRecoverMethodParams<D> {}
306
306
  export interface TableFilterRecoverMethodParams<D = any> {
307
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
307
+ $table: VxeTableConstructor<D>
308
308
  option: VxeTableDefines.FilterOption
309
309
  column: VxeTableDefines.ColumnInfo<D>
310
310
  }
@@ -317,7 +317,7 @@ declare module '@vxe-ui/core' {
317
317
 
318
318
  export interface RenderHeaderParams<D = any> extends RenderTableHeaderParams<D> {}
319
319
  export interface RenderTableHeaderParams<D = any> {
320
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
320
+ $table: VxeTableConstructor<D>
321
321
  column: VxeTableDefines.ColumnInfo<D>
322
322
  columnIndex: number
323
323
  $columnIndex: number
@@ -344,7 +344,7 @@ declare module '@vxe-ui/core' {
344
344
  */
345
345
  export interface RenderFooterParams<D = any> extends RenderTableFooterParams<D>{}
346
346
  export interface RenderTableFooterParams<D = any> {
347
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
347
+ $table: VxeTableConstructor<D>
348
348
  column: VxeTableDefines.ColumnInfo<D>
349
349
  columnIndex: number
350
350
  _columnIndex: number
@@ -357,6 +357,7 @@ declare module '@vxe-ui/core' {
357
357
 
358
358
  export interface ExportMethodParams<D = any> extends TableExportMethodParams<D> {}
359
359
  export interface TableExportMethodParams<D = any> {
360
+ $table: VxeTableConstructor<D>
360
361
  row: D
361
362
  column: VxeTableDefines.ColumnInfo<D>
362
363
  options: VxeTablePropTypes.ExportHandleOptions
@@ -364,6 +365,7 @@ declare module '@vxe-ui/core' {
364
365
 
365
366
  export interface FooterExportMethodParams<D = any> extends TableFooterExportMethodParams<D> {}
366
367
  export interface TableFooterExportMethodParams<D = any> {
368
+ $table: VxeTableConstructor<D>
367
369
  items: any[]
368
370
  _columnIndex: number
369
371
  column: VxeTableDefines.ColumnInfo<D>
@@ -393,8 +395,8 @@ declare module '@vxe-ui/core' {
393
395
  */
394
396
  export interface RenderCellParams<D = any> extends RenderTableCellParams<D> {}
395
397
  export interface RenderTableCellParams<D = any> {
396
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
397
- $grid: VxeGridConstructor<D> | null
398
+ $table: VxeTableConstructor<D>
399
+ $grid: VxeGridConstructor<D> | null | undefined
398
400
  column: VxeTableDefines.ColumnInfo<D>
399
401
  columnIndex: number
400
402
  $columnIndex: number
@@ -426,7 +428,7 @@ declare module '@vxe-ui/core' {
426
428
  */
427
429
  export interface RenderEmptyParams<D = any> extends RenderTableEmptyParams<D> {}
428
430
  export interface RenderTableEmptyParams<D = any> {
429
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
431
+ $table: VxeTableConstructor<D>
430
432
  }
431
433
 
432
434
  /**
@@ -505,15 +507,15 @@ declare module '@vxe-ui/core' {
505
507
 
506
508
  export interface RenderButtonOptions extends VxeToolbarPropTypes.ButtonRender { }
507
509
  export interface RenderButtonParams<D = any> {
508
- $grid: VxeGridConstructor | null
509
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
510
+ $grid: VxeGridConstructor<D> | null | undefined
511
+ $table: VxeTableConstructor<D>
510
512
  button: VxeToolbarPropTypes.ButtonConfig
511
513
  }
512
514
 
513
515
  export interface RenderToolOptions extends VxeToolbarPropTypes.ToolRender { }
514
516
  export interface RenderToolParams<D = any> {
515
- $grid: VxeGridConstructor | null
516
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
517
+ $grid: VxeGridConstructor<D> | null | undefined
518
+ $table: VxeTableConstructor<D>
517
519
  tool: VxeToolbarPropTypes.ToolConfig
518
520
  }
519
521
  }
@@ -627,7 +629,7 @@ declare module '@vxe-ui/core' {
627
629
  export namespace VxeGlobalRendererHandles {
628
630
  export interface RenderFormItemAutoFocusParams {
629
631
  $form: VxeFormConstructor
630
- $grid: VxeGridConstructor | null
632
+ $grid: VxeGridConstructor | null | undefined
631
633
  data: any
632
634
  item: VxeFormDefines.ItemInfo
633
635
  field: string
@@ -829,19 +831,19 @@ declare module '@vxe-ui/core' {
829
831
 
830
832
  export interface RenderFormDesignWidgetSubtableDefaultViewOptions<D = any> extends VxeGlobalRendererHandles.RenderTableDefaultOptions<D> {}
831
833
  export interface RenderFormDesignWidgetSubtableDefaultViewParams<D = any> extends Omit<VxeGlobalRendererHandles.RenderTableDefaultParams<D>, '$table'> {
832
- $table: (VxeTableConstructor<D> & VxeTablePrivateMethods<D>) | null
834
+ $table: VxeTableConstructor<D> | null
833
835
  widget: VxeFormDesignDefines.WidgetObjItem
834
836
  }
835
837
 
836
838
  export interface RenderFormDesignWidgetSubtableCellViewOptions<D = any> extends VxeGlobalRendererHandles.RenderTableCellOptions<D> {}
837
839
  export interface RenderFormDesignWidgetSubtableCellViewParams<D = any> extends Omit<VxeGlobalRendererHandles.RenderTableCellParams<D>, '$table'> {
838
- $table: (VxeTableConstructor<D> & VxeTablePrivateMethods<D>) | null
840
+ $table: VxeTableConstructor<D> | null
839
841
  widget: VxeFormDesignDefines.WidgetObjItem
840
842
  }
841
843
 
842
844
  export interface RenderFormDesignWidgetSubtableEditViewOptions<D = any> extends VxeGlobalRendererHandles.RenderTableEditOptions<D> {}
843
845
  export interface RenderFormDesignWidgetSubtableEditViewParams<D = any> extends Omit<VxeGlobalRendererHandles.RenderTableEditParams<D>, '$table'> {
844
- $table: (VxeTableConstructor<D> & VxeTablePrivateMethods<D>) | null
846
+ $table: VxeTableConstructor<D> | null
845
847
  widget: VxeFormDesignDefines.WidgetObjItem
846
848
  }
847
849