vxe-pc-ui 3.8.13 → 3.8.15

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 (56) hide show
  1. package/README.md +0 -2
  2. package/es/form/index.js +0 -1
  3. package/es/form/src/form.js +1 -0
  4. package/es/icon/style.css +1 -1
  5. package/es/split/style.css +28 -33
  6. package/es/split/style.min.css +1 -1
  7. package/es/style.css +1 -1
  8. package/es/style.min.css +1 -1
  9. package/es/ui/index.js +1 -1
  10. package/es/ui/src/log.js +1 -1
  11. package/es/vxe-split/style.css +28 -33
  12. package/es/vxe-split/style.min.css +1 -1
  13. package/lib/form/index.js +0 -1
  14. package/lib/form/index.min.js +1 -1
  15. package/lib/form/src/form.js +1 -0
  16. package/lib/form/src/form.min.js +1 -1
  17. package/lib/icon/style/style.css +1 -1
  18. package/lib/icon/style/style.min.css +1 -1
  19. package/lib/index.umd.js +1573 -1573
  20. package/lib/index.umd.min.js +1 -1
  21. package/lib/split/style/style.css +28 -33
  22. package/lib/split/style/style.min.css +1 -1
  23. package/lib/style.css +1 -1
  24. package/lib/style.min.css +1 -1
  25. package/lib/ui/index.js +1 -1
  26. package/lib/ui/index.min.js +1 -1
  27. package/lib/ui/src/log.js +1 -1
  28. package/lib/ui/src/log.min.js +1 -1
  29. package/lib/vxe-split/style/style.css +28 -33
  30. package/lib/vxe-split/style/style.min.css +1 -1
  31. package/package.json +1 -1
  32. package/packages/form/index.ts +0 -1
  33. package/packages/form/src/form.ts +2 -0
  34. package/styles/components/split.scss +25 -42
  35. package/styles/theme/base.scss +4 -2
  36. package/styles/theme/dark.scss +2 -1
  37. package/styles/theme/light.scss +2 -1
  38. package/styles/variable.scss +2 -1
  39. package/types/components/gantt-module/gantt-view.d.ts +162 -0
  40. package/types/components/gantt-module/index.d.ts +1 -0
  41. package/types/components/gantt.d.ts +204 -28
  42. package/types/components/grid.d.ts +34 -13
  43. package/types/components/table.d.ts +35 -8
  44. package/types/ui/commands.d.ts +3 -1
  45. /package/es/icon/{iconfont.1754641135399.ttf → iconfont.1755066111645.ttf} +0 -0
  46. /package/es/icon/{iconfont.1754641135399.woff → iconfont.1755066111645.woff} +0 -0
  47. /package/es/icon/{iconfont.1754641135399.woff2 → iconfont.1755066111645.woff2} +0 -0
  48. /package/es/{iconfont.1754641135399.ttf → iconfont.1755066111645.ttf} +0 -0
  49. /package/es/{iconfont.1754641135399.woff → iconfont.1755066111645.woff} +0 -0
  50. /package/es/{iconfont.1754641135399.woff2 → iconfont.1755066111645.woff2} +0 -0
  51. /package/lib/icon/style/{iconfont.1754641135399.ttf → iconfont.1755066111645.ttf} +0 -0
  52. /package/lib/icon/style/{iconfont.1754641135399.woff → iconfont.1755066111645.woff} +0 -0
  53. /package/lib/icon/style/{iconfont.1754641135399.woff2 → iconfont.1755066111645.woff2} +0 -0
  54. /package/lib/{iconfont.1754641135399.ttf → iconfont.1755066111645.ttf} +0 -0
  55. /package/lib/{iconfont.1754641135399.woff → iconfont.1755066111645.woff} +0 -0
  56. /package/lib/{iconfont.1754641135399.woff2 → iconfont.1755066111645.woff2} +0 -0
@@ -1,68 +1,244 @@
1
- import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, ValueOf, VxeComponentSizeType } from '@vxe-ui/core'
1
+ import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, ValueOf } from '@vxe-ui/core'
2
+ import { GridPrivateRef, VxeGridProps, VxeGridPropTypes, GridPrivateComputed, GridReactData, GridInternalData, GridMethods, GridPrivateMethods, VxeGridEmits, VxeGridSlots, VxeGridListeners, VxeGridEventProps, VxeGridMethods } from './grid'
3
+ import { VxeTablePropTypes } from './table'
2
4
 
3
- /* eslint-disable @typescript-eslint/no-empty-interface,no-use-before-define,@typescript-eslint/ban-types */
5
+ /* eslint-disable no-use-before-define,@typescript-eslint/ban-types,@typescript-eslint/no-unused-vars */
4
6
 
5
7
  export declare const VxeGantt: DefineVxeComponentApp<VxeGanttProps, VxeGanttEventProps, VxeGanttSlots, VxeGanttMethods>
6
8
  export type VxeGanttComponent = DefineVxeComponentOptions<VxeGanttProps>
7
9
 
8
- export type VxeGanttInstance = DefineVxeComponentInstance<{
9
- reactData: GanttReactData
10
+ export type VxeGanttInstance<D = any> = DefineVxeComponentInstance<{
11
+ reactData: GanttReactData<D>
10
12
  internalData: GanttInternalData
11
- }, VxeGanttProps, VxeGanttPrivateComputed, VxeGanttMethods>
13
+ }, VxeGanttProps<D>, VxeGanttPrivateComputed<D>, VxeGanttMethods<D>>
12
14
 
13
- export type VxeGanttConstructor = VxeGanttInstance
15
+ export type VxeGanttConstructor<D = any> = VxeGanttInstance<D>
14
16
 
15
- export interface GanttPrivateRef {
17
+ export interface GanttPrivateRef<D = any> extends GridPrivateRef<D> {
16
18
  }
17
- export interface VxeGanttPrivateRef extends GanttPrivateRef { }
19
+ export interface VxeGanttPrivateRef<D = any> extends GanttPrivateRef<D> { }
18
20
 
19
21
  export namespace VxeGanttPropTypes {
20
- export type Size = VxeComponentSizeType
22
+ export type Size = VxeGridPropTypes.Size
23
+ export type Layouts = VxeGanttDefines.LayoutKey[] | VxeGanttDefines.LayoutKey[][]
24
+ export type Column<D = any> = VxeGridPropTypes.Column<D>
25
+ export type Columns<D = any> = Column<D>[]
26
+ export interface PagerConfig extends VxeGridPropTypes.PagerConfig {}
27
+ export interface ProxyConfig<D = any> extends VxeGridPropTypes.ProxyConfig<D> {}
28
+ export interface ToolbarConfig extends VxeGridPropTypes.ToolbarConfig {}
29
+ export interface FormConfig extends VxeGridPropTypes.FormConfig {}
30
+ export interface ZoomConfig extends VxeGridPropTypes.ZoomConfig {}
31
+
32
+ export interface TaskConfig {
33
+ /**
34
+ * 标题的字段名
35
+ */
36
+ titleField?: string
37
+ /**
38
+ * 开始日期的字段名
39
+ */
40
+ startField?: string
41
+ /**
42
+ * 结束日期的字段名
43
+ */
44
+ endField?: string
45
+ /**
46
+ * 进度的字段名
47
+ */
48
+ progressField?: string
49
+ }
50
+
51
+ export interface TaskViewConfig<D = any> {
52
+ /**
53
+ * 视图的渲染模式
54
+ */
55
+ mode?: 'day' | 'week' | 'month' | 'quarter' | 'year'
56
+ /**
57
+ * 表格样式
58
+ */
59
+ tableStyle?: {
60
+ width?: number | string
61
+ minWidth?: number | string
62
+ maxWidth?: number | string
63
+ }
64
+ }
65
+
66
+ export interface TaskSplitConfig {
67
+ /**
68
+ * 是否启用
69
+ */
70
+ enabled?: boolean
71
+ /**
72
+ * 是否允许拖拽调整视图宽度
73
+ */
74
+ resize?: boolean
75
+ /**
76
+ * 是否显示左侧表格的折叠按钮
77
+ */
78
+ showCollapseTableButton?: boolean
79
+ /**
80
+ * 是否显示右侧任务的折叠按钮
81
+ */
82
+ showCollapseTaskButton?: boolean
83
+ }
84
+
85
+ export interface TaskBarConfig<D = any> {
86
+ /**
87
+ * 是否显示进度条
88
+ */
89
+ showProgress?: boolean
90
+ /**
91
+ * 是否在任务条显示内容
92
+ */
93
+ showContent?: boolean
94
+ /**
95
+ * 自定义任务条内容方法
96
+ */
97
+ contentMethod?(params: {
98
+ title: string
99
+ progress?: string | number
100
+ row: D
101
+ }): string | number
102
+ /**
103
+ * 任务条样式
104
+ */
105
+ barStyle?: {
106
+ /**
107
+ * 圆角
108
+ */
109
+ round?: boolean | number
110
+ /**
111
+ * 任务条的背景颜色
112
+ */
113
+ bgColor?: string
114
+ /**
115
+ * 任务条的字体颜色
116
+ */
117
+ fontColor?: string
118
+ /**
119
+ * 已完成部分任务条的背景颜色
120
+ */
121
+ completedBgColor?: string
122
+ }
123
+ }
21
124
  }
22
125
 
23
- export type VxeGanttProps = {
24
- size?: VxeGanttPropTypes.Size
126
+ export interface VxeGanttProps<D = any> extends Omit<VxeGridProps<D>, 'layouts'> {
127
+ layouts?: VxeGanttPropTypes.Layouts
128
+ taskConfig?: VxeGanttPropTypes.TaskConfig
129
+ taskViewConfig?: VxeGanttPropTypes.TaskViewConfig
130
+ taskSplitConfig?: VxeGanttPropTypes.TaskSplitConfig
131
+ taskBarConfig?: VxeGanttPropTypes.TaskBarConfig
25
132
  }
26
133
 
27
- export interface GanttPrivateComputed {
134
+ export interface GanttPrivateComputed<D = any> extends GridPrivateComputed<D> {
135
+ computeTaskOpts: VxeGanttPropTypes.TaskConfig
136
+ computeTaskViewOpts: VxeGanttPropTypes.TaskViewConfig
137
+ computeTaskBarOpts: VxeGanttPropTypes.TaskBarConfig
138
+ computeTaskSplitOpts: VxeGanttPropTypes.TaskSplitConfig
139
+ computeTitleField: string
140
+ computeStartField: string
141
+ computeEndField: string
142
+ computeProgressField: string
143
+ computeScrollbarOpts: VxeTablePropTypes.ScrollbarConfig
144
+ computeScrollbarXToTop: boolean
145
+ computeScrollbarYToLeft: boolean
28
146
  }
29
- export interface VxeGanttPrivateComputed extends GanttPrivateComputed { }
147
+ export interface VxeGanttPrivateComputed<D = any> extends GanttPrivateComputed<D> { }
30
148
 
31
- export interface GanttReactData {
149
+ export interface GanttReactData<D = any> extends GridReactData<D> {
150
+ showLeftView: boolean
151
+ showRightView: boolean
32
152
  }
33
153
 
34
- export interface GanttInternalData {
154
+ export interface GanttInternalData extends GridInternalData {
155
+ resizeTableWidth: number
35
156
  }
36
157
 
37
- export interface GanttMethods {
158
+ export interface GanttMethods<D = any> extends Omit<GridMethods<D>, 'dispatchEvent'> {
38
159
  dispatchEvent(type: ValueOf<VxeGanttEmits>, params: Record<string, any>, evnt: Event | null): void
160
+ /**
161
+ * 刷新任务视图
162
+ */
163
+ refreshTaskView(): Promise<any>
39
164
  }
40
- export interface VxeGanttMethods extends GanttMethods { }
165
+ export interface VxeGanttMethods<D = any> extends GanttMethods<D>, Omit<VxeGridMethods<D>, 'dispatchEvent'> { }
41
166
 
42
- export interface GanttPrivateMethods { }
43
- export interface VxeGanttPrivateMethods extends GanttPrivateMethods { }
167
+ export interface GanttPrivateMethods extends GridPrivateMethods {
168
+ }
169
+ export interface VxeGanttPrivateMethods extends GanttPrivateMethods {
170
+ handleTaskClickEvent(evnt: MouseEvent, params: {
171
+ row: any
172
+ }): void
173
+ }
44
174
 
45
- export type VxeGanttEmits = []
175
+ export type VxeGanttEmits = [
176
+ ...VxeGridEmits,
177
+
178
+ 'task-cell-click',
179
+ 'task-cell-dblclick',
180
+ 'task-bar-click',
181
+ 'task-bar-dblclick'
182
+ ]
46
183
 
47
184
  export namespace VxeGanttDefines {
48
- export interface GanttEventParams extends VxeComponentEventParams {
49
- $gantt: VxeGanttConstructor
185
+ export interface GanttEventParams<D = any> extends VxeComponentEventParams {
186
+ $gantt: VxeGanttConstructor<D>
187
+ }
188
+
189
+ export type LayoutKey = 'Form' | 'Toolbar' | 'Top' | 'Gantt' | 'Bottom' | 'Pager'
190
+
191
+ export interface GroupHeaderColumn<D = any> extends VxeGanttPropTypes.Column<D> {
192
+ children: VxeGanttPropTypes.Column<D>[]
193
+ }
194
+
195
+ export interface RowCacheItem<D = any> {
196
+ row: D
197
+ rowid: string
198
+ oLeftSize: number
199
+ oWidthSize: number
200
+ }
201
+
202
+ export interface TaskCellClickParams<D = any> {
203
+ row: D
50
204
  }
205
+ export interface TaskCellClickEventParams<D = any> extends TaskCellClickParams<D>, GanttEventParams {}
206
+ export interface TaskCellDblClickEventParams<D = any> extends TaskCellClickEventParams<D> {}
207
+ export interface TaskBarClickEventParams<D = any> extends TaskCellClickEventParams<D> {}
208
+ export interface TaskBarDblClickEventParams<D = any> extends TaskCellClickEventParams<D> {}
51
209
  }
52
210
 
53
- export type VxeGanttEventProps = {}
211
+ export interface VxeGanttEventProps<D = any> extends VxeGridEventProps<D> {
212
+ onTaskCellClick?: VxeGanttEvents.TaskCellClick<D>
213
+ onTaskCellDblClick?: VxeGanttEvents.TaskCellDblClick<D>
214
+ onTaskBarClick?: VxeGanttEvents.TaskBarClick<D>
215
+ onTaskBarDblClick?: VxeGanttEvents.TaskBarDblClick<D>
216
+ }
54
217
 
55
- export interface VxeGanttListeners { }
218
+ export interface VxeGanttListeners<D = any> extends VxeGridListeners<D> {
219
+ taskCellClick?: VxeGanttEvents.TaskCellClick<D>
220
+ taskCellDblClick?: VxeGanttEvents.TaskCellDblClick<D>
221
+ taskBarClick?: VxeGanttEvents.TaskBarClick<D>
222
+ taskBarDblClick?: VxeGanttEvents.TaskBarDblClick<D>
223
+ }
56
224
 
57
- export namespace VxeGanttEvents { }
225
+ export namespace VxeGanttEvents {
226
+ export type TaskCellClick<D = any> = (params: VxeGanttDefines.TaskCellClickEventParams<D>) => void
227
+ export type TaskCellDblClick<D = any> = (params: VxeGanttDefines.TaskCellDblClickEventParams<D>) => void
228
+ export type TaskBarClick<D = any> = (params: VxeGanttDefines.TaskBarClickEventParams<D>) => void
229
+ export type TaskBarDblClick<D = any> = (params: VxeGanttDefines.TaskBarDblClickEventParams<D>) => void
230
+ }
58
231
 
59
232
  export namespace VxeGanttSlotTypes {
60
- export interface DefaultSlotParams {}
233
+ export interface DefaultSlotParams<D = any> {
234
+ $gantt: VxeGanttConstructor<D>
235
+ }
61
236
  }
62
237
 
63
- export interface VxeGanttSlots {
64
- default?: (params: VxeGanttSlotTypes.DefaultSlotParams) => any
238
+ export interface VxeGanttSlots<D = any> extends VxeGridSlots<D> {
65
239
  }
66
240
 
241
+ export * from './gantt-module'
242
+
67
243
  export const Gantt: typeof VxeGantt
68
244
  export default VxeGantt
@@ -6,6 +6,7 @@ import { VxeColumnPropTypes } from './column'
6
6
  import { VxePagerProps, VxePagerDefines, VxePagerSlotTypes } from './pager'
7
7
  import { VxeFormProps, VxeFormDefines } from './form'
8
8
  import { VxeFormItemPropTypes, VxeFormItemProps } from './form-item'
9
+ import { VxeGanttConstructor } from './gantt'
9
10
 
10
11
  /* eslint-disable no-use-before-define,@typescript-eslint/ban-types,@typescript-eslint/no-unused-vars */
11
12
 
@@ -26,8 +27,7 @@ export interface VxeGridPrivateRef<D = any> extends GridPrivateRef<D> { }
26
27
  export namespace VxeGridPropTypes {
27
28
  export type Size = VxeComponentSizeType
28
29
 
29
- export type LayoutKey = 'Form' | 'Toolbar' | 'Top' | 'Table' | 'Bottom' | 'Pager'
30
- export type Layouts = LayoutKey[] |LayoutKey[][]
30
+ export type Layouts = VxeGridDefines.LayoutKey[] | VxeGridDefines.LayoutKey[][]
31
31
 
32
32
  export type Column<D = any> = VxeTableDefines.ColumnOptions<D>
33
33
  export type Columns<D = any> = Column<D>[]
@@ -69,7 +69,9 @@ export namespace VxeGridPropTypes {
69
69
  }
70
70
 
71
71
  interface ProxyAjaxQueryParams<D = any> {
72
- $grid: VxeGridConstructor<D>
72
+ $table: VxeTableConstructor<D>
73
+ $grid: VxeGridConstructor<D> | null | undefined
74
+ $gantt: VxeGanttConstructor<D> | null | undefined
73
75
  page: ProxyAjaxQueryPageParams
74
76
  sort: ProxyAjaxQuerySortCheckedParams<D>
75
77
  sorts: ProxyAjaxQuerySortCheckedParams<D>[]
@@ -81,7 +83,8 @@ export namespace VxeGridPropTypes {
81
83
 
82
84
  interface ProxyAjaxQueryAllParams<D = any> {
83
85
  $table: VxeTableConstructor<D>
84
- $grid: VxeGridConstructor<D>
86
+ $grid: VxeGridConstructor<D> | null | undefined
87
+ $gantt: VxeGanttConstructor<D> | null | undefined
85
88
  sort: ProxyAjaxQuerySortCheckedParams<D>
86
89
  sorts: ProxyAjaxQuerySortCheckedParams<D>[]
87
90
  filters: VxeTableDefines.FilterCheckedParams[]
@@ -92,14 +95,18 @@ export namespace VxeGridPropTypes {
92
95
  }
93
96
 
94
97
  interface ProxyAjaxDeleteParams<D = any> {
95
- $grid: VxeGridConstructor<D>
98
+ $table: VxeTableConstructor<D>
99
+ $grid: VxeGridConstructor<D> | null | undefined
100
+ $gantt: VxeGanttConstructor<D> | null | undefined
96
101
  body: {
97
102
  removeRecords: D[]
98
103
  }
99
104
  }
100
105
 
101
106
  interface ProxyAjaxSaveParams<D = any> {
102
- $grid: VxeGridConstructor<D>
107
+ $table: VxeTableConstructor<D>
108
+ $grid: VxeGridConstructor<D> | null | undefined
109
+ $gantt: VxeGanttConstructor<D> | null | undefined
103
110
  body: {
104
111
  insertRecords: D[]
105
112
  updateRecords: D[]
@@ -135,19 +142,27 @@ export namespace VxeGridPropTypes {
135
142
  response?: {
136
143
  list?: string | null | ((params: {
137
144
  data: any
138
- $grid: VxeGridConstructor<D>
145
+ $table: VxeTableConstructor<D>
146
+ $grid: VxeGridConstructor<D> | null | undefined
147
+ $gantt: VxeGanttConstructor<D> | null | undefined
139
148
  }) => any[])
140
149
  result?: string | ((params: {
141
150
  data: any
142
- $grid: VxeGridConstructor<D>
151
+ $table: VxeTableConstructor<D>
152
+ $grid: VxeGridConstructor<D> | null | undefined
153
+ $gantt: VxeGanttConstructor<D> | null | undefined
143
154
  }) => any[])
144
155
  total?: string | ((params: {
145
156
  data: any
146
- $grid: VxeGridConstructor<D>
157
+ $table: VxeTableConstructor<D>
158
+ $grid: VxeGridConstructor<D> | null | undefined
159
+ $gantt: VxeGanttConstructor<D> | null | undefined
147
160
  }) => number)
148
161
  message?: string | ((params: {
149
162
  data: any
150
- $grid: VxeGridConstructor<D>
163
+ $table: VxeTableConstructor<D>
164
+ $grid: VxeGridConstructor<D> | null | undefined
165
+ $gantt: VxeGanttConstructor<D> | null | undefined
151
166
  }) => string)
152
167
  }
153
168
  ajax?: {
@@ -318,12 +333,12 @@ export interface GridMethods<D = any> {
318
333
  /**
319
334
  * 只对 form-config 有效,对表单进行校验,返回校验结果 promise
320
335
  */
321
- validateForm(): Promise<VxeFormDefines.ValidateErrorMapParams>
336
+ validateForm(): Promise<VxeFormDefines.ValidateErrorMapParams | void>
322
337
  /**
323
338
  * 只对 form-config 有效,对表单指定项进行校验,返回校验结果 promise
324
339
  * @param field 字段名
325
340
  */
326
- validateFormField(field: VxeFormItemPropTypes.Field | VxeFormItemPropTypes.Field[] | VxeFormDefines.ItemInfo | VxeFormDefines.ItemInfo[] | null): Promise<VxeFormDefines.ValidateErrorMapParams>
341
+ validateFormField(field: VxeFormItemPropTypes.Field | VxeFormItemPropTypes.Field[] | VxeFormDefines.ItemInfo | VxeFormDefines.ItemInfo[] | null): Promise<VxeFormDefines.ValidateErrorMapParams | void>
327
342
  /**
328
343
  * 只对 form-config 有效,手动清除表单校验状态,如果指定 field 则清除指定的项,否则清除整个表单
329
344
  * @param field 字段名
@@ -453,9 +468,13 @@ export type VxeGridEmits = [
453
468
 
454
469
  export namespace VxeGridDefines {
455
470
  export interface GridEventParams<D = any> extends VxeComponentEventParams {
456
- $grid: VxeGridConstructor<D>
471
+ $table: VxeTableConstructor<D>
472
+ $grid: VxeGridConstructor<D> | null | undefined
473
+ $gantt: VxeGanttConstructor<D> | null | undefined
457
474
  }
458
475
 
476
+ export type LayoutKey = 'Form' | 'Toolbar' | 'Top' | 'Table' | 'Bottom' | 'Pager'
477
+
459
478
  export interface KeydownStartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownStartEventParams<D> { }
460
479
  export interface KeydownEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownEventParams<D> { }
461
480
  export interface KeydownEndEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownEndEventParams<D> { }
@@ -777,6 +796,7 @@ export namespace VxeGridSlotTypes {
777
796
  export interface DefaultSlotParams<D = any> {
778
797
  $table: VxeTableConstructor<D>
779
798
  $grid: VxeGridConstructor<D> | null | undefined
799
+ $gantt: VxeGanttConstructor<D> | null | undefined
780
800
  rowid: string
781
801
  /**
782
802
  * 当前行对象,支持数据双向绑定
@@ -842,6 +862,7 @@ export namespace VxeGridSlotTypes {
842
862
  export interface BaseSlotParams<D = any> {
843
863
  $table: VxeTableConstructor<D>
844
864
  $grid: VxeGridConstructor<D> | null | undefined
865
+ $gantt: VxeGanttConstructor<D> | null | undefined
845
866
  }
846
867
  export interface EmptySlotParams<D = any> extends BaseSlotParams<D> {}
847
868
  export interface LoadingSlotParams<D = any> extends BaseSlotParams<D> {}
@@ -9,6 +9,8 @@ import { VxeModalPropTypes } from './modal'
9
9
  import { VxeDrawerPropTypes } from './drawer'
10
10
  import { VxeToolbarConstructor, VxeToolbarInstance } from './toolbar'
11
11
  import { VxeTabsConstructor, VxeTabsPrivateMethods } from './tabs'
12
+ import { VxeGanttConstructor } from './gantt'
13
+ import { VxeGanttViewConstructor, VxeGanttViewInstance, VxeGanttViewPrivateMethods } from './gantt-module/gantt-view'
12
14
 
13
15
  /* eslint-disable @typescript-eslint/no-empty-interface,no-use-before-define,@typescript-eslint/ban-types,@typescript-eslint/no-unused-vars */
14
16
 
@@ -19,6 +21,7 @@ export type VxeTableInstance<D = any> = DefineVxeComponentInstance<{
19
21
  reactData: TableReactData<D>
20
22
  internalData: TableInternalData<D>
21
23
  $xeGrid: VxeGridConstructor<D> | null | undefined
24
+ $xeGantt: VxeGanttConstructor<D> | null | undefined
22
25
  $xeTabs: (VxeTabsConstructor & VxeTabsPrivateMethods) | null
23
26
 
24
27
  /**
@@ -2518,6 +2521,10 @@ export namespace VxeTablePropTypes {
2518
2521
  * 滚动条显示位置
2519
2522
  */
2520
2523
  position?: 'top' | 'bottom' | ''
2524
+ /**
2525
+ * 是否显示
2526
+ */
2527
+ visible?: boolean
2521
2528
  }
2522
2529
  /**
2523
2530
  * 纵向滚动条
@@ -2527,6 +2534,10 @@ export namespace VxeTablePropTypes {
2527
2534
  * 滚动条显示位置
2528
2535
  */
2529
2536
  position?: 'left' | 'right' | ''
2537
+ /**
2538
+ * 是否显示
2539
+ */
2540
+ visible?: boolean
2530
2541
  }
2531
2542
  }
2532
2543
 
@@ -3478,7 +3489,6 @@ export interface TableReactData<D = any> {
3478
3489
  /**
3479
3490
  * 行高
3480
3491
  * @deprecated
3481
- * @property
3482
3492
  */
3483
3493
  rowHeight: number
3484
3494
  // 表格父容器的高度
@@ -3502,6 +3512,8 @@ export interface TableReactData<D = any> {
3502
3512
  rowGroupColumn: VxeTableDefines.ColumnInfo<D> | null | undefined
3503
3513
  // 展开列信息
3504
3514
  expandColumn: VxeTableDefines.ColumnInfo<D> | null | undefined
3515
+ checkboxColumn: VxeTableDefines.ColumnInfo<D> | null | undefined
3516
+ radioColumn: VxeTableDefines.ColumnInfo<D> | null | undefined
3505
3517
  hasFixedColumn: boolean
3506
3518
  // 树节点列信息
3507
3519
  treeNodeColumn: any
@@ -3740,10 +3752,6 @@ export interface TableInternalData<D = any> {
3740
3752
  tableWidth: number
3741
3753
  // 表格高度
3742
3754
  tableHeight: number
3743
- // 表头高度
3744
- headerHeight: number
3745
- // 表尾高度
3746
- footerHeight: number
3747
3755
  customHeight: number
3748
3756
  customMinHeight: number
3749
3757
  customMaxHeight: number
@@ -3873,7 +3881,18 @@ export interface TableInternalData<D = any> {
3873
3881
  // 展开手风琴
3874
3882
  treeEATime?: undefined | number
3875
3883
 
3884
+ // 甘特图
3885
+ xeGanttView?: VxeGanttViewConstructor & VxeGanttViewPrivateMethods
3886
+
3887
+ // 表头高度
3888
+ tHeaderHeight: number
3889
+ // 表体高度
3890
+ tBodyHeight: number
3891
+ // 表尾高度
3892
+ tFooterHeight: number
3893
+
3876
3894
  // 内部属性
3895
+ _updateStyleFlag?: boolean
3877
3896
  _lastResizeTime?: any
3878
3897
  _keyCtx?: any
3879
3898
  _lastCallTime?: any
@@ -4745,10 +4764,14 @@ export interface TableMethods<DT = any> {
4745
4764
  */
4746
4765
  updateCellAreas(): Promise<void>
4747
4766
  /**
4748
- * 连接工具栏
4749
- * @param toolbar 工具栏组件实例
4767
+ * 已废弃,请使用 connectToolbar
4768
+ * @deprecated
4750
4769
  */
4751
4770
  connect(toolbar: VxeToolbarConstructor | VxeToolbarInstance): Promise<void>
4771
+ /**
4772
+ * 连接工具栏
4773
+ */
4774
+ connectToolbar(toolbar: VxeToolbarConstructor | VxeToolbarInstance): Promise<void>
4752
4775
  /**
4753
4776
  * 使表格获取焦点
4754
4777
  */
@@ -5083,9 +5106,13 @@ export interface TablePrivateMethods<D = any> {
5083
5106
  * 已废弃,被 getCellElement 替换
5084
5107
  * @deprecated
5085
5108
  */
5086
- getCell(row: any, column: VxeTableDefines.ColumnInfo<any>): HTMLTableDataCellElement | null
5109
+ getCell(row: any, column: VxeTableDefines.ColumnInfo<any>): HTMLTableCellElement | null
5087
5110
  findRowIndexOf(list: any[], row: any): number
5088
5111
  eqRow(row1: any, row2: any): boolean
5112
+ /**
5113
+ * @private
5114
+ */
5115
+ handleConnectGanttView($ganttView: VxeGanttViewConstructor | VxeGanttViewInstance): Promise<void>
5089
5116
  }
5090
5117
  export interface VxeTablePrivateMethods<D = any> extends TablePrivateMethods<D> { }
5091
5118
 
@@ -1,6 +1,7 @@
1
1
  import { VxeGridConstructor } from '../components/grid'
2
2
  import { VxeToolbarPropTypes } from '../components/toolbar'
3
3
  import { VxeTableConstructor } from '../components/table'
4
+ import { VxeGanttConstructor } from '../components/gantt'
4
5
  import { VxeDatePickerConstructor, VxeDatePickerDefines } from '../components/date-picker'
5
6
  import { VxeDateRangePickerConstructor, VxeDateRangePickerDefines } from '../components/date-range-picker'
6
7
 
@@ -46,8 +47,9 @@ declare module '@vxe-ui/core' {
46
47
  }
47
48
 
48
49
  export interface TableCommandMethodParams {
49
- $grid: VxeGridConstructor | null | undefined
50
50
  $table: VxeTableConstructor
51
+ $grid: VxeGridConstructor | null | undefined
52
+ $gantt: VxeGanttConstructor | null | undefined
51
53
  button: VxeToolbarPropTypes.ButtonConfig | null | undefined
52
54
  code: string | undefined
53
55
  }