vxe-pc-ui 4.8.12 → 4.8.14

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 (59) hide show
  1. package/README.md +12 -8
  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 +27 -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 +27 -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 +1577 -1577
  20. package/lib/index.umd.min.js +1 -1
  21. package/lib/split/style/style.css +27 -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 +27 -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 +168 -0
  40. package/types/components/gantt-module/index.d.ts +1 -0
  41. package/types/components/gantt.d.ts +202 -29
  42. package/types/components/grid.d.ts +41 -20
  43. package/types/components/table-module/custom.d.ts +2 -1
  44. package/types/components/table.d.ts +35 -9
  45. package/types/ui/commands.d.ts +3 -1
  46. package/types/ui/global-icon.d.ts +6 -0
  47. package/types/ui/hooks.d.ts +2 -0
  48. /package/es/icon/{iconfont.1754641145942.ttf → iconfont.1755066105728.ttf} +0 -0
  49. /package/es/icon/{iconfont.1754641145942.woff → iconfont.1755066105728.woff} +0 -0
  50. /package/es/icon/{iconfont.1754641145942.woff2 → iconfont.1755066105728.woff2} +0 -0
  51. /package/es/{iconfont.1754641145942.ttf → iconfont.1755066105728.ttf} +0 -0
  52. /package/es/{iconfont.1754641145942.woff → iconfont.1755066105728.woff} +0 -0
  53. /package/es/{iconfont.1754641145942.woff2 → iconfont.1755066105728.woff2} +0 -0
  54. /package/lib/icon/style/{iconfont.1754641145942.ttf → iconfont.1755066105728.ttf} +0 -0
  55. /package/lib/icon/style/{iconfont.1754641145942.woff → iconfont.1755066105728.woff} +0 -0
  56. /package/lib/icon/style/{iconfont.1754641145942.woff2 → iconfont.1755066105728.woff2} +0 -0
  57. /package/lib/{iconfont.1754641145942.ttf → iconfont.1755066105728.ttf} +0 -0
  58. /package/lib/{iconfont.1754641145942.woff → iconfont.1755066105728.woff} +0 -0
  59. /package/lib/{iconfont.1754641145942.woff2 → iconfont.1755066105728.woff2} +0 -0
@@ -1,15 +1,16 @@
1
- import { RenderFunction, SetupContext, Ref } from 'vue'
2
- import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf, VxeComponentSizeType } from '@vxe-ui/core'
3
- import { VxeTableInstance } from './table'
1
+ import { RenderFunction, SetupContext, ComputedRef } from 'vue'
2
+ import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf } from '@vxe-ui/core'
3
+ import { GridPrivateRef, VxeGridProps, VxeGridPropTypes, GridPrivateComputed, GridReactData, GridInternalData, GridMethods, GridPrivateMethods, VxeGridEmits, VxeGridSlots, VxeGridListeners, VxeGridEventProps, VxeGridMethods } from './grid'
4
+ import { VxeTablePropTypes } from './table'
4
5
 
5
6
  /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
6
7
 
7
8
  export declare const VxeGantt: DefineVxeComponentApp<VxeGanttProps, VxeGanttEventProps, VxeGanttSlots, VxeGanttMethods>
8
9
  export type VxeGanttComponent = DefineVxeComponentOptions<VxeGanttProps, VxeGanttEventProps>
9
10
 
10
- export type VxeGanttInstance = DefineVxeComponentInstance<VxeGanttProps, VxeGanttConstructor>
11
+ export type VxeGanttInstance<D = any> = DefineVxeComponentInstance<VxeGanttProps<D>, VxeGanttConstructor<D>>
11
12
 
12
- export interface VxeGanttConstructor extends VxeComponentBaseOptions, VxeGanttMethods {
13
+ export interface VxeGanttConstructor<D = any> extends VxeComponentBaseOptions, VxeGanttMethods<D> {
13
14
  props: VxeGanttProps
14
15
  context: SetupContext<VxeGanttEmits>
15
16
  reactData: GanttReactData
@@ -19,59 +20,231 @@ export interface VxeGanttConstructor extends VxeComponentBaseOptions, VxeGanttMe
19
20
  renderVN: RenderFunction
20
21
  }
21
22
 
22
- export interface GanttPrivateRef<D = any> {
23
- refElem: Ref<HTMLDivElement | undefined>
24
- refTable: Ref<VxeTableInstance<D> | undefined>
23
+ export interface GanttPrivateRef<D = any> extends GridPrivateRef<D> {
25
24
  }
26
- export interface VxeGanttPrivateRef extends GanttPrivateRef { }
25
+ export interface VxeGanttPrivateRef<D = any> extends GanttPrivateRef<D> { }
27
26
 
28
27
  export namespace VxeGanttPropTypes {
29
- export type Size = VxeComponentSizeType
28
+ export type Size = VxeGridPropTypes.Size
29
+ export type Layouts = VxeGanttDefines.LayoutKey[] | VxeGanttDefines.LayoutKey[][]
30
+ export type Column<D = any> = VxeGridPropTypes.Column<D>
31
+ export type Columns<D = any> = Column<D>[]
32
+ export interface PagerConfig extends VxeGridPropTypes.PagerConfig {}
33
+ export interface ProxyConfig<D = any> extends VxeGridPropTypes.ProxyConfig<D> {}
34
+ export interface ToolbarConfig extends VxeGridPropTypes.ToolbarConfig {}
35
+ export interface FormConfig extends VxeGridPropTypes.FormConfig {}
36
+ export interface ZoomConfig extends VxeGridPropTypes.ZoomConfig {}
37
+
38
+ export interface TaskConfig {
39
+ /**
40
+ * 标题的字段名
41
+ */
42
+ titleField?: string
43
+ /**
44
+ * 开始日期的字段名
45
+ */
46
+ startField?: string
47
+ /**
48
+ * 结束日期的字段名
49
+ */
50
+ endField?: string
51
+ /**
52
+ * 进度的字段名
53
+ */
54
+ progressField?: string
55
+ }
56
+
57
+ export interface TaskViewConfig<D = any> {
58
+ /**
59
+ * 视图的渲染模式
60
+ */
61
+ mode?: 'day' | 'week' | 'month' | 'quarter' | 'year'
62
+ /**
63
+ * 表格样式
64
+ */
65
+ tableStyle?: {
66
+ width?: number | string
67
+ minWidth?: number | string
68
+ maxWidth?: number | string
69
+ }
70
+ }
71
+
72
+ export interface TaskSplitConfig {
73
+ /**
74
+ * 是否启用
75
+ */
76
+ enabled?: boolean
77
+ /**
78
+ * 是否允许拖拽调整视图宽度
79
+ */
80
+ resize?: boolean
81
+ /**
82
+ * 是否显示左侧表格的折叠按钮
83
+ */
84
+ showCollapseTableButton?: boolean
85
+ /**
86
+ * 是否显示右侧任务的折叠按钮
87
+ */
88
+ showCollapseTaskButton?: boolean
89
+ }
90
+
91
+ export interface TaskBarConfig<D = any> {
92
+ /**
93
+ * 是否显示进度条
94
+ */
95
+ showProgress?: boolean
96
+ /**
97
+ * 是否在任务条显示内容
98
+ */
99
+ showContent?: boolean
100
+ /**
101
+ * 自定义任务条内容方法
102
+ */
103
+ contentMethod?(params: {
104
+ title: string
105
+ progress?: string | number
106
+ row: D
107
+ }): string | number
108
+ /**
109
+ * 任务条样式
110
+ */
111
+ barStyle?: {
112
+ /**
113
+ * 圆角
114
+ */
115
+ round?: boolean | number
116
+ /**
117
+ * 任务条的背景颜色
118
+ */
119
+ bgColor?: string
120
+ /**
121
+ * 任务条的字体颜色
122
+ */
123
+ fontColor?: string
124
+ /**
125
+ * 已完成部分任务条的背景颜色
126
+ */
127
+ completedBgColor?: string
128
+ }
129
+ }
30
130
  }
31
131
 
32
- export type VxeGanttProps = {
33
- size?: VxeGanttPropTypes.Size
132
+ export interface VxeGanttProps<D = any> extends Omit<VxeGridProps<D>, 'layouts'> {
133
+ layouts?: VxeGanttPropTypes.Layouts
134
+ taskConfig?: VxeGanttPropTypes.TaskConfig
135
+ taskViewConfig?: VxeGanttPropTypes.TaskViewConfig
136
+ taskSplitConfig?: VxeGanttPropTypes.TaskSplitConfig
137
+ taskBarConfig?: VxeGanttPropTypes.TaskBarConfig
34
138
  }
35
139
 
36
- export interface GanttPrivateComputed {
140
+ export interface GanttPrivateComputed<D = any> extends GridPrivateComputed<D> {
141
+ computeTaskOpts: ComputedRef<VxeGanttPropTypes.TaskConfig>
142
+ computeTaskViewOpts: ComputedRef<VxeGanttPropTypes.TaskViewConfig>
143
+ computeTaskBarOpts: ComputedRef<VxeGanttPropTypes.TaskBarConfig>
144
+ computeTaskSplitOpts: ComputedRef<VxeGanttPropTypes.TaskSplitConfig>
145
+ computeTitleField: ComputedRef<string>
146
+ computeStartField: ComputedRef<string>
147
+ computeEndField: ComputedRef<string>
148
+ computeProgressField: ComputedRef<string>
149
+ computeScrollbarOpts: ComputedRef<VxeTablePropTypes.ScrollbarConfig>
150
+ computeScrollbarXToTop: ComputedRef<boolean>
151
+ computeScrollbarYToLeft: ComputedRef<boolean>
37
152
  }
38
- export interface VxeGanttPrivateComputed extends GanttPrivateComputed { }
153
+ export interface VxeGanttPrivateComputed<D = any> extends GanttPrivateComputed<D> { }
39
154
 
40
- export interface GanttReactData {
155
+ export interface GanttReactData<D = any> extends GridReactData<D> {
156
+ showLeftView: boolean
157
+ showRightView: boolean
41
158
  }
42
159
 
43
- export interface GanttInternalData {
160
+ export interface GanttInternalData extends GridInternalData {
161
+ resizeTableWidth: number
44
162
  }
45
163
 
46
- export interface GanttMethods {
164
+ export interface GanttMethods<D = any> extends Omit<GridMethods<D>, 'dispatchEvent'> {
47
165
  dispatchEvent(type: ValueOf<VxeGanttEmits>, params: Record<string, any>, evnt: Event | null): void
166
+ /**
167
+ * 刷新任务视图
168
+ */
169
+ refreshTaskView(): Promise<any>
170
+ }
171
+ export interface VxeGanttMethods<D = any> extends GanttMethods<D>, Omit<VxeGridMethods<D>, 'dispatchEvent'> { }
172
+
173
+ export interface GanttPrivateMethods extends GridPrivateMethods {
174
+ handleTaskCellClickEvent(evnt: MouseEvent, params: VxeGanttDefines.TaskCellClickParams): void
175
+ handleTaskCellDblclickEvent(evnt: MouseEvent, params: VxeGanttDefines.TaskCellClickParams): void
176
+ handleTaskBarClickEvent(evnt: MouseEvent, params: VxeGanttDefines.TaskCellClickParams): void
177
+ handleTaskBarDblclickEvent(evnt: MouseEvent, params: VxeGanttDefines.TaskCellClickParams): void
48
178
  }
49
- export interface VxeGanttMethods extends GanttMethods { }
179
+ export interface VxeGanttPrivateMethods extends GanttPrivateMethods {}
50
180
 
51
- export interface GanttPrivateMethods { }
52
- export interface VxeGanttPrivateMethods extends GanttPrivateMethods { }
181
+ export type VxeGanttEmits = [
182
+ ...VxeGridEmits,
53
183
 
54
- export type VxeGanttEmits = []
184
+ 'task-cell-click',
185
+ 'task-cell-dblclick',
186
+ 'task-bar-click',
187
+ 'task-bar-dblclick'
188
+ ]
55
189
 
56
190
  export namespace VxeGanttDefines {
57
- export interface GanttEventParams extends VxeComponentEventParams {
58
- $gantt: VxeGanttConstructor
191
+ export interface GanttEventParams<D = any> extends VxeComponentEventParams {
192
+ $gantt: VxeGanttConstructor<D>
59
193
  }
194
+
195
+ export type LayoutKey = 'Form' | 'Toolbar' | 'Top' | 'Gantt' | 'Bottom' | 'Pager'
196
+
197
+ export interface GroupHeaderColumn<D = any> extends VxeGanttPropTypes.Column<D> {
198
+ children: VxeGanttPropTypes.Column<D>[]
199
+ }
200
+
201
+ export interface RowCacheItem<D = any> {
202
+ row: D
203
+ rowid: string
204
+ oLeftSize: number
205
+ oWidthSize: number
206
+ }
207
+
208
+ export interface TaskCellClickParams<D = any> {
209
+ row: D
210
+ }
211
+ export interface TaskCellClickEventParams<D = any> extends TaskCellClickParams<D>, GanttEventParams {}
212
+ export interface TaskCellDblClickEventParams<D = any> extends TaskCellClickEventParams<D> {}
213
+ export interface TaskBarClickEventParams<D = any> extends TaskCellClickEventParams<D> {}
214
+ export interface TaskBarDblClickEventParams<D = any> extends TaskCellClickEventParams<D> {}
60
215
  }
61
216
 
62
- export type VxeGanttEventProps = {}
217
+ export interface VxeGanttEventProps<D = any> extends VxeGridEventProps<D> {
218
+ onTaskCellClick?: VxeGanttEvents.TaskCellClick<D>
219
+ onTaskCellDblClick?: VxeGanttEvents.TaskCellDblClick<D>
220
+ onTaskBarClick?: VxeGanttEvents.TaskBarClick<D>
221
+ onTaskBarDblClick?: VxeGanttEvents.TaskBarDblClick<D>
222
+ }
63
223
 
64
- export interface VxeGanttListeners { }
224
+ export interface VxeGanttListeners<D = any> extends VxeGridListeners<D> {
225
+ taskCellClick?: VxeGanttEvents.TaskCellClick<D>
226
+ taskCellDblClick?: VxeGanttEvents.TaskCellDblClick<D>
227
+ taskBarClick?: VxeGanttEvents.TaskBarClick<D>
228
+ taskBarDblClick?: VxeGanttEvents.TaskBarDblClick<D>
229
+ }
65
230
 
66
- export namespace VxeGanttEvents { }
231
+ export namespace VxeGanttEvents {
232
+ export type TaskCellClick<D = any> = (params: VxeGanttDefines.TaskCellClickEventParams<D>) => void
233
+ export type TaskCellDblClick<D = any> = (params: VxeGanttDefines.TaskCellDblClickEventParams<D>) => void
234
+ export type TaskBarClick<D = any> = (params: VxeGanttDefines.TaskBarClickEventParams<D>) => void
235
+ export type TaskBarDblClick<D = any> = (params: VxeGanttDefines.TaskBarDblClickEventParams<D>) => void
236
+ }
67
237
 
68
238
  export namespace VxeGanttSlotTypes {
69
- export interface DefaultSlotParams {}
239
+ export interface DefaultSlotParams<D = any> {
240
+ $gantt: VxeGanttConstructor<D>
241
+ }
70
242
  }
71
243
 
72
- export interface VxeGanttSlots {
73
- default?: (params: VxeGanttSlotTypes.DefaultSlotParams) => any
244
+ export interface VxeGanttSlots<D = any> extends VxeGridSlots<D> {
74
245
  }
75
246
 
247
+ export * from './gantt-module'
248
+
76
249
  export const Gantt: typeof VxeGantt
77
250
  export default VxeGantt
@@ -6,6 +6,7 @@ import { VxeColumnPropTypes } from './column'
6
6
  import { VxePagerInstance, VxePagerProps, VxePagerDefines, VxePagerSlotTypes } from './pager'
7
7
  import { VxeFormInstance, 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 */
11
12
 
@@ -26,18 +27,17 @@ export interface VxeGridConstructor<D = any> extends VxeComponentBaseOptions, Vx
26
27
 
27
28
  export interface GridPrivateRef<D = any> {
28
29
  refElem: Ref<HTMLDivElement | undefined>
29
- refTable: Ref<VxeTableInstance<D>>
30
- refForm: Ref<VxeFormInstance>
31
- refToolbar: Ref<VxeToolbarInstance>
32
- refPager: Ref<VxePagerInstance>
30
+ refTable: Ref<VxeTableInstance<D> | undefined>
31
+ refForm: Ref<VxeFormInstance | undefined>
32
+ refToolbar: Ref<VxeToolbarInstance | undefined>
33
+ refPager: Ref<VxePagerInstance | undefined>
33
34
  }
34
35
  export interface VxeGridPrivateRef<D = any> extends GridPrivateRef<D> { }
35
36
 
36
37
  export namespace VxeGridPropTypes {
37
38
  export type Size = VxeComponentSizeType
38
39
 
39
- export type LayoutKey = 'Form' | 'Toolbar' | 'Top' | 'Table' | 'Bottom' | 'Pager'
40
- export type Layouts = LayoutKey[] |LayoutKey[][]
40
+ export type Layouts = VxeGridDefines.LayoutKey[] | VxeGridDefines.LayoutKey[][]
41
41
 
42
42
  export type Column<D = any> = VxeTableDefines.ColumnOptions<D>
43
43
  export type Columns<D = any> = Column<D>[]
@@ -79,7 +79,9 @@ export namespace VxeGridPropTypes {
79
79
  }
80
80
 
81
81
  interface ProxyAjaxQueryParams<D = any> {
82
- $grid: VxeGridConstructor<D>
82
+ $table: VxeTableConstructor<D>
83
+ $grid: VxeGridConstructor<D> | null | undefined
84
+ $gantt: VxeGanttConstructor<D> | null | undefined
83
85
  page: ProxyAjaxQueryPageParams
84
86
  sort: ProxyAjaxQuerySortCheckedParams<D>
85
87
  sorts: ProxyAjaxQuerySortCheckedParams<D>[]
@@ -91,7 +93,8 @@ export namespace VxeGridPropTypes {
91
93
 
92
94
  interface ProxyAjaxQueryAllParams<D = any> {
93
95
  $table: VxeTableConstructor<D>
94
- $grid: VxeGridConstructor<D>
96
+ $grid: VxeGridConstructor<D> | null | undefined
97
+ $gantt: VxeGanttConstructor<D> | null | undefined
95
98
  sort: ProxyAjaxQuerySortCheckedParams<D>
96
99
  sorts: ProxyAjaxQuerySortCheckedParams<D>[]
97
100
  filters: VxeTableDefines.FilterCheckedParams[]
@@ -102,14 +105,18 @@ export namespace VxeGridPropTypes {
102
105
  }
103
106
 
104
107
  interface ProxyAjaxDeleteParams<D = any> {
105
- $grid: VxeGridConstructor<D>
108
+ $table: VxeTableConstructor<D>
109
+ $grid: VxeGridConstructor<D> | null | undefined
110
+ $gantt: VxeGanttConstructor<D> | null | undefined
106
111
  body: {
107
112
  removeRecords: D[]
108
113
  }
109
114
  }
110
115
 
111
116
  interface ProxyAjaxSaveParams<D = any> {
112
- $grid: VxeGridConstructor<D>
117
+ $table: VxeTableConstructor<D>
118
+ $grid: VxeGridConstructor<D> | null | undefined
119
+ $gantt: VxeGanttConstructor<D> | null | undefined
113
120
  body: {
114
121
  insertRecords: D[]
115
122
  updateRecords: D[]
@@ -145,19 +152,27 @@ export namespace VxeGridPropTypes {
145
152
  response?: {
146
153
  list?: string | null | ((params: {
147
154
  data: any
148
- $grid: VxeGridConstructor<D>
155
+ $table: VxeTableConstructor<D>
156
+ $grid: VxeGridConstructor<D> | null | undefined
157
+ $gantt: VxeGanttConstructor<D> | null | undefined
149
158
  }) => any[])
150
159
  result?: string | ((params: {
151
160
  data: any
152
- $grid: VxeGridConstructor<D>
161
+ $table: VxeTableConstructor<D>
162
+ $grid: VxeGridConstructor<D> | null | undefined
163
+ $gantt: VxeGanttConstructor<D> | null | undefined
153
164
  }) => any[])
154
165
  total?: string | ((params: {
155
166
  data: any
156
- $grid: VxeGridConstructor<D>
167
+ $table: VxeTableConstructor<D>
168
+ $grid: VxeGridConstructor<D> | null | undefined
169
+ $gantt: VxeGanttConstructor<D> | null | undefined
157
170
  }) => number)
158
171
  message?: string | ((params: {
159
172
  data: any
160
- $grid: VxeGridConstructor<D>
173
+ $table: VxeTableConstructor<D>
174
+ $grid: VxeGridConstructor<D> | null | undefined
175
+ $gantt: VxeGanttConstructor<D> | null | undefined
161
176
  }) => string)
162
177
  }
163
178
  ajax?: {
@@ -268,14 +283,14 @@ export interface VxeGridProps<D = any> extends VxeTableProps<D> {
268
283
  zoomConfig?: VxeGridPropTypes.ZoomConfig
269
284
  }
270
285
 
271
- export interface GridPrivateComputed {
272
- computeProxyOpts: ComputedRef<VxeGridPropTypes.ProxyOpts>
286
+ export interface GridPrivateComputed<D = any> {
287
+ computeProxyOpts: ComputedRef<VxeGridPropTypes.ProxyConfig<D>>
273
288
  computePagerOpts: ComputedRef<VxeGridPropTypes.PagerOpts>
274
289
  computeFormOpts: ComputedRef<VxeGridPropTypes.FormOpts>
275
290
  computeToolbarOpts: ComputedRef<VxeGridPropTypes.ToolbarOpts>
276
291
  computeZoomOpts: ComputedRef<VxeGridPropTypes.ZoomOpts>
277
292
  }
278
- export interface VxeGridPrivateComputed extends GridPrivateComputed { }
293
+ export interface VxeGridPrivateComputed<D = any> extends GridPrivateComputed<D> { }
279
294
 
280
295
  export interface GridReactData<D = any> {
281
296
  tableLoading: boolean
@@ -322,12 +337,12 @@ export interface GridMethods<D = any> {
322
337
  /**
323
338
  * 对表单进行校验,返回校验结果 promise
324
339
  */
325
- validateForm(): Promise<VxeFormDefines.ValidateErrorMapParams>
340
+ validateForm(): Promise<VxeFormDefines.ValidateErrorMapParams | void>
326
341
  /**
327
342
  * 对表单指定项进行校验,返回校验结果 promise
328
343
  * @param field 字段名
329
344
  */
330
- validateFormField(field: VxeFormItemPropTypes.Field | VxeFormItemPropTypes.Field[] | VxeFormDefines.ItemInfo | VxeFormDefines.ItemInfo[] | null): Promise<VxeFormDefines.ValidateErrorMapParams>
345
+ validateFormField(field: VxeFormItemPropTypes.Field | VxeFormItemPropTypes.Field[] | VxeFormDefines.ItemInfo | VxeFormDefines.ItemInfo[] | null): Promise<VxeFormDefines.ValidateErrorMapParams | void>
331
346
  /**
332
347
  * 手动清除表单校验状态,如果指定 field 则清除指定的项,否则清除整个表单
333
348
  * @param field 字段名
@@ -457,9 +472,13 @@ export type VxeGridEmits = [
457
472
 
458
473
  export namespace VxeGridDefines {
459
474
  export interface GridEventParams<D = any> extends VxeComponentEventParams {
460
- $grid: VxeGridConstructor<D>
475
+ $table: VxeTableConstructor<D>
476
+ $grid: VxeGridConstructor<D> | null | undefined
477
+ $gantt: VxeGanttConstructor<D> | null | undefined
461
478
  }
462
479
 
480
+ export type LayoutKey = 'Form' | 'Toolbar' | 'Top' | 'Table' | 'Bottom' | 'Pager'
481
+
463
482
  export interface KeydownStartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownStartEventParams<D> { }
464
483
  export interface KeydownEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownEventParams<D> { }
465
484
  export interface KeydownEndEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownEndEventParams<D> { }
@@ -781,6 +800,7 @@ export namespace VxeGridSlotTypes {
781
800
  export interface DefaultSlotParams<D = any> {
782
801
  $table: VxeTableConstructor<D>
783
802
  $grid: VxeGridConstructor<D> | null | undefined
803
+ $gantt: VxeGanttConstructor<D> | null | undefined
784
804
  rowid: string
785
805
  /**
786
806
  * 当前行对象,支持数据双向绑定
@@ -846,6 +866,7 @@ export namespace VxeGridSlotTypes {
846
866
  export interface BaseSlotParams<D = any> {
847
867
  $table: VxeTableConstructor<D>
848
868
  $grid: VxeGridConstructor<D> | null | undefined
869
+ $gantt: VxeGanttConstructor<D> | null | undefined
849
870
  }
850
871
  export interface EmptySlotParams<D = any> extends BaseSlotParams<D> {}
851
872
  export interface LoadingSlotParams<D = any> extends BaseSlotParams<D> {}
@@ -1,5 +1,5 @@
1
1
  import { RenderFunction, SetupContext, Ref } from 'vue'
2
- import { VxeComponentBaseOptions } from '@vxe-ui/core'
2
+ import { VxeComponentBaseOptions, DefineVxeComponentInstance } from '@vxe-ui/core'
3
3
  import { VxeTableDefines, VxeTableConstructor, VxeTableMethods, VxeTablePrivateMethods } from '../table'
4
4
 
5
5
  /* eslint-disable no-use-before-define */
@@ -15,6 +15,7 @@ export interface VxeTableCustomPanelConstructor extends VxeComponentBaseOptions,
15
15
 
16
16
  xeTable: VxeTableConstructor & VxeTableMethods & VxeTablePrivateMethods
17
17
  }
18
+ export type VxeTableCustomPanelInstance = DefineVxeComponentInstance<VxeTableCustomPanelProps, VxeTableCustomPanelConstructor>
18
19
 
19
20
  interface VxeTableCustomPanelProps {
20
21
  customStore?: VxeTableDefines.VxeTableCustomStoreObj
@@ -8,6 +8,8 @@ import { VxeModalPropTypes } from './modal'
8
8
  import { VxeDrawerPropTypes } from './drawer'
9
9
  import { VxeToolbarConstructor, VxeToolbarInstance } from './toolbar'
10
10
  import { VxeTableCustomPanelConstructor } from './table-module/custom'
11
+ import { VxeGanttConstructor } from './gantt'
12
+ import { VxeGanttViewConstructor, VxeGanttViewInstance, VxeGanttViewPrivateMethods } from './gantt-module/gantt-view'
11
13
 
12
14
  /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
13
15
 
@@ -25,7 +27,8 @@ export interface VxeTableConstructor<D = any> extends VxeComponentBaseOptions, V
25
27
  getComputeMaps(): TablePrivateComputed
26
28
  renderVN: RenderFunction
27
29
 
28
- xeGrid: VxeGridConstructor<D> | null
30
+ xeGrid: VxeGridConstructor<D> | null | undefined
31
+ xeGantt: VxeGanttConstructor<D> | null | undefined
29
32
 
30
33
  /**
31
34
  * @deprecated
@@ -2551,6 +2554,10 @@ export namespace VxeTablePropTypes {
2551
2554
  * 滚动条显示位置
2552
2555
  */
2553
2556
  position?: 'top' | 'bottom' | ''
2557
+ /**
2558
+ * 是否显示
2559
+ */
2560
+ visible?: boolean
2554
2561
  }
2555
2562
  /**
2556
2563
  * 纵向滚动条
@@ -2560,6 +2567,10 @@ export namespace VxeTablePropTypes {
2560
2567
  * 滚动条显示位置
2561
2568
  */
2562
2569
  position?: 'left' | 'right' | ''
2570
+ /**
2571
+ * 是否显示
2572
+ */
2573
+ visible?: boolean
2563
2574
  }
2564
2575
  }
2565
2576
 
@@ -3463,7 +3474,6 @@ export interface TableReactData<D = any> {
3463
3474
  /**
3464
3475
  * 行高
3465
3476
  * @deprecated
3466
- * @property
3467
3477
  */
3468
3478
  rowHeight: number
3469
3479
  // 表格父容器的高度
@@ -3487,6 +3497,8 @@ export interface TableReactData<D = any> {
3487
3497
  rowGroupColumn: VxeTableDefines.ColumnInfo<D> | null | undefined
3488
3498
  // 展开列信息
3489
3499
  expandColumn: VxeTableDefines.ColumnInfo<D> | null | undefined
3500
+ checkboxColumn: VxeTableDefines.ColumnInfo<D> | null | undefined
3501
+ radioColumn: VxeTableDefines.ColumnInfo<D> | null | undefined
3490
3502
  hasFixedColumn: boolean
3491
3503
  // 树节点列信息
3492
3504
  treeNodeColumn: any
@@ -3727,10 +3739,6 @@ export interface TableInternalData<D = any> {
3727
3739
  tableWidth: number
3728
3740
  // 表格高度
3729
3741
  tableHeight: number
3730
- // 表头高度
3731
- headerHeight: number
3732
- // 表尾高度
3733
- footerHeight: number
3734
3742
  customHeight: number
3735
3743
  customMinHeight: number
3736
3744
  customMaxHeight: number
@@ -3860,6 +3868,16 @@ export interface TableInternalData<D = any> {
3860
3868
  // 展开手风琴
3861
3869
  treeEATime?: undefined | number
3862
3870
 
3871
+ // 甘特图
3872
+ xeGanttView?: VxeGanttViewConstructor & VxeGanttViewPrivateMethods
3873
+
3874
+ // 表头高度
3875
+ tHeaderHeight: number
3876
+ // 表体高度
3877
+ tBodyHeight: number
3878
+ // 表尾高度
3879
+ tFooterHeight: number
3880
+
3863
3881
  // 内部属性
3864
3882
  _lastResizeTime?: any
3865
3883
  _keyCtx?: any
@@ -4736,11 +4754,15 @@ export interface TableMethods<DT = any> {
4736
4754
  * 用于 mouse-config.area,更新已选区域的单元格样式
4737
4755
  */
4738
4756
  updateCellAreas(): Promise<void>
4757
+ /**
4758
+ * 已废弃,请使用 connectToolbar
4759
+ * @deprecated
4760
+ */
4761
+ connect($toolbar: VxeToolbarConstructor | VxeToolbarInstance): Promise<void>
4739
4762
  /**
4740
4763
  * 连接工具栏
4741
- * @param toolbar 工具栏组件实例
4742
4764
  */
4743
- connect(toolbar: VxeToolbarConstructor | VxeToolbarInstance): Promise<void>
4765
+ connectToolbar($toolbar: VxeToolbarConstructor | VxeToolbarInstance): Promise<void>
4744
4766
  /**
4745
4767
  * 使表格获取焦点
4746
4768
  */
@@ -5071,9 +5093,13 @@ export interface TablePrivateMethods<D = any> {
5071
5093
  * 已废弃,被 getCellElement 替换
5072
5094
  * @deprecated
5073
5095
  */
5074
- getCell(row: any, column: VxeTableDefines.ColumnInfo<any>): HTMLTableDataCellElement | null
5096
+ getCell(row: any, column: VxeTableDefines.ColumnInfo<any>): HTMLTableCellElement | null
5075
5097
  findRowIndexOf(list: any[], row: any): number
5076
5098
  eqRow(row1: any, row2: any): boolean
5099
+ /**
5100
+ * @private
5101
+ */
5102
+ handleConnectGanttView($ganttView: VxeGanttViewConstructor | VxeGanttViewInstance): Promise<void>
5077
5103
  }
5078
5104
  export interface VxeTablePrivateMethods<D = any> extends TablePrivateMethods<D> { }
5079
5105
 
@@ -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
  }
@@ -264,5 +264,11 @@ declare module '@vxe-ui/core' {
264
264
  SPLIT_BOTTOM_ACTION?: string
265
265
  SPLIT_LEFT_ACTION?: string
266
266
  SPLIT_RIGHT_ACTION?: string
267
+
268
+ // gantt
269
+ GANTT_VIEW_LEFT_OPEN?: string
270
+ GANTT_VIEW_LEFT_CLOSE?: string
271
+ GANTT_VIEW_RIGHT_OPEN?: string
272
+ GANTT_VIEW_RIGHT_CLOSE?: string
267
273
  }
268
274
  }
@@ -1,11 +1,13 @@
1
1
  import { VxeTableConstructor, VxeTableMethods, VxeTablePrivateMethods } from '../components/table'
2
2
  import { VxeGridConstructor, VxeGridPrivateMethods } from '../components/grid'
3
+ import { VxeGanttConstructor, VxeGanttPrivateMethods } from '../components/gantt'
3
4
 
4
5
  declare module '@vxe-ui/core' {
5
6
  export namespace VxeGlobalHooksHandles {
6
7
  export interface HookOptions {
7
8
  setupTable?($table: VxeTableConstructor & VxeTableMethods & VxeTablePrivateMethods<any>): void | Record<string, any>
8
9
  setupGrid?($grid: VxeGridConstructor & VxeGridPrivateMethods): void | Record<string, any>
10
+ setupGantt?($grid: VxeGanttConstructor & VxeGanttPrivateMethods): void | Record<string, any>
9
11
  }
10
12
  }
11
13
  }