vxe-gantt 4.0.0-beta.0 → 4.0.0-beta.2

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 (80) hide show
  1. package/README.md +1 -1
  2. package/es/components.js +3 -2
  3. package/es/gantt/src/emits.js +5 -1
  4. package/es/gantt/src/gantt-body.js +14 -5
  5. package/es/gantt/src/gantt-chart.js +38 -17
  6. package/es/gantt/src/gantt-header.js +20 -3
  7. package/es/gantt/src/gantt-view.js +5 -1
  8. package/es/gantt/src/gantt.js +91 -36
  9. package/es/gantt/src/util.js +6 -0
  10. package/es/gantt/style.css +36 -25
  11. package/es/gantt/style.min.css +1 -1
  12. package/es/index.esm.js +2 -2
  13. package/es/style.css +1 -1
  14. package/es/style.min.css +1 -1
  15. package/es/ui/index.js +9 -3
  16. package/es/ui/src/log.js +3 -2
  17. package/es/ui/src/utils.js +3 -0
  18. package/es/vxe-gantt/style.css +36 -25
  19. package/es/vxe-gantt/style.min.css +1 -1
  20. package/helper/vetur/attributes.json +1 -1
  21. package/helper/vetur/tags.json +1 -1
  22. package/lib/components.js +14 -15
  23. package/lib/components.min.js +1 -1
  24. package/lib/gantt/src/emits.js +1 -1
  25. package/lib/gantt/src/emits.min.js +1 -1
  26. package/lib/gantt/src/gantt-body.js +19 -7
  27. package/lib/gantt/src/gantt-body.min.js +1 -1
  28. package/lib/gantt/src/gantt-chart.js +50 -15
  29. package/lib/gantt/src/gantt-chart.min.js +1 -1
  30. package/lib/gantt/src/gantt-header.js +24 -3
  31. package/lib/gantt/src/gantt-header.min.js +1 -1
  32. package/lib/gantt/src/gantt-view.js +6 -2
  33. package/lib/gantt/src/gantt-view.min.js +1 -1
  34. package/lib/gantt/src/gantt.js +122 -40
  35. package/lib/gantt/src/gantt.min.js +1 -1
  36. package/lib/gantt/src/util.js +7 -0
  37. package/lib/gantt/src/util.min.js +1 -1
  38. package/lib/gantt/style/style.css +36 -25
  39. package/lib/gantt/style/style.min.css +1 -1
  40. package/lib/index.common.js +5 -5
  41. package/lib/index.umd.js +25388 -6143
  42. package/lib/index.umd.min.js +1 -1
  43. package/lib/style.css +1 -1
  44. package/lib/style.min.css +1 -1
  45. package/lib/ui/index.js +13 -15
  46. package/lib/ui/index.min.js +1 -1
  47. package/lib/ui/src/log.js +6 -3
  48. package/lib/ui/src/log.min.js +1 -1
  49. package/lib/ui/src/utils.js +4 -0
  50. package/lib/ui/src/utils.min.js +1 -1
  51. package/lib/vxe-gantt/style/style.css +36 -25
  52. package/lib/vxe-gantt/style/style.min.css +1 -1
  53. package/package.json +4 -4
  54. package/packages/components.ts +6 -3
  55. package/packages/gantt/src/emits.ts +6 -1
  56. package/packages/gantt/src/gantt-body.ts +15 -6
  57. package/packages/gantt/src/gantt-chart.ts +31 -14
  58. package/packages/gantt/src/gantt-header.ts +24 -3
  59. package/packages/gantt/src/gantt-view.ts +6 -1
  60. package/packages/gantt/src/gantt.ts +133 -39
  61. package/packages/gantt/src/util.ts +7 -0
  62. package/packages/index.ts +2 -2
  63. package/packages/ui/index.ts +9 -3
  64. package/packages/ui/src/log.ts +3 -1
  65. package/packages/ui/src/utils.ts +4 -0
  66. package/styles/components/gantt-module/gantt-chart.scss +28 -9
  67. package/styles/components/gantt.scss +12 -13
  68. package/styles/theme/base.scss +5 -1
  69. package/es/gantt/src/grid-props.js +0 -7
  70. package/es/gantt/src/props.js +0 -2
  71. package/es/gantt/src/table-props.js +0 -298
  72. package/lib/gantt/src/grid-props.js +0 -24
  73. package/lib/gantt/src/grid-props.min.js +0 -1
  74. package/lib/gantt/src/props.js +0 -13
  75. package/lib/gantt/src/props.min.js +0 -1
  76. package/lib/gantt/src/table-props.js +0 -306
  77. package/lib/gantt/src/table-props.min.js +0 -1
  78. package/packages/gantt/src/grid-props.ts +0 -23
  79. package/packages/gantt/src/props.ts +0 -13
  80. package/packages/gantt/src/table-props.ts +0 -304
@@ -1,306 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.tableProps = void 0;
7
- var _ui = require("../../ui");
8
- const {
9
- getConfig
10
- } = _ui.VxeUI;
11
- const tableProps = exports.tableProps = {
12
- /** 基本属性 */
13
- id: [String, Function],
14
- // 数据
15
- data: Array,
16
- // 表格的高度
17
- height: [Number, String],
18
- // 表格的最小高度
19
- minHeight: {
20
- type: [Number, String],
21
- default: () => getConfig().table.minHeight
22
- },
23
- // 表格的最大高度
24
- maxHeight: [Number, String],
25
- // 已废弃,被 column-config.resizable 替换
26
- resizable: {
27
- type: Boolean,
28
- default: () => getConfig().table.resizable
29
- },
30
- // 是否带有斑马纹
31
- stripe: {
32
- type: Boolean,
33
- default: () => getConfig().table.stripe
34
- },
35
- // 是否带有边框
36
- border: {
37
- type: [Boolean, String],
38
- default: () => getConfig().table.border
39
- },
40
- // 已废弃,被 cell-config.padding 替换
41
- padding: {
42
- type: Boolean,
43
- default: null
44
- },
45
- // 是否圆角边框
46
- round: {
47
- type: Boolean,
48
- default: () => getConfig().table.round
49
- },
50
- // 表格的尺寸
51
- size: {
52
- type: String,
53
- default: () => getConfig().table.size || getConfig().size
54
- },
55
- // 列的宽度是否自撑开(可能会被废弃的参数,不要使用)
56
- fit: {
57
- type: Boolean,
58
- default: () => getConfig().table.fit
59
- },
60
- // 表格是否加载中
61
- loading: Boolean,
62
- // 所有的列对其方式
63
- align: {
64
- type: String,
65
- default: () => getConfig().table.align
66
- },
67
- // 所有的表头列的对齐方式
68
- headerAlign: {
69
- type: String,
70
- default: () => getConfig().table.headerAlign
71
- },
72
- // 所有的表尾列的对齐方式
73
- footerAlign: {
74
- type: String,
75
- default: () => getConfig().table.footerAlign
76
- },
77
- // 是否显示表头
78
- showHeader: {
79
- type: Boolean,
80
- default: () => getConfig().table.showHeader
81
- },
82
- // (即将废弃)是否要高亮当前选中行
83
- highlightCurrentRow: {
84
- type: Boolean,
85
- default: () => getConfig().table.highlightCurrentRow
86
- },
87
- // (即将废弃)鼠标移到行是否要高亮显示
88
- highlightHoverRow: {
89
- type: Boolean,
90
- default: () => getConfig().table.highlightHoverRow
91
- },
92
- /**
93
- * (即将废弃)是否要高亮当前选中列
94
- * @deprecated
95
- */
96
- highlightCurrentColumn: {
97
- type: Boolean,
98
- default: () => getConfig().table.highlightCurrentColumn
99
- },
100
- /**
101
- * (即将废弃)鼠标移到列是否要高亮显示
102
- * @deprecated
103
- */
104
- highlightHoverColumn: {
105
- type: Boolean,
106
- default: () => getConfig().table.highlightHoverColumn
107
- },
108
- // (即将废弃)激活单元格编辑时是否高亮显示
109
- highlightCell: Boolean,
110
- // 是否显示表尾合计
111
- showFooter: Boolean,
112
- // 表尾数据
113
- footerData: Array,
114
- // 表尾合计的计算方法
115
- footerMethod: Function,
116
- // 给行附加 className
117
- rowClassName: [String, Function],
118
- // 给单元格附加 className
119
- cellClassName: [String, Function],
120
- // 给表头的行附加 className
121
- headerRowClassName: [String, Function],
122
- // 给表头的单元格附加 className
123
- headerCellClassName: [String, Function],
124
- // 给表尾的行附加 className
125
- footerRowClassName: [String, Function],
126
- // 给表尾的单元格附加 className
127
- footerCellClassName: [String, Function],
128
- // 给单元格附加样式
129
- cellStyle: [Object, Function],
130
- // 给表头单元格附加样式
131
- headerCellStyle: [Object, Function],
132
- // 给表尾单元格附加样式
133
- footerCellStyle: [Object, Function],
134
- // 给行附加样式
135
- rowStyle: [Object, Function],
136
- // 给表头行附加样式
137
- headerRowStyle: [Object, Function],
138
- // 给表尾行附加样式
139
- footerRowStyle: [Object, Function],
140
- // 合并指定单元格
141
- mergeCells: Array,
142
- // 合并指定的表尾
143
- mergeFooterItems: Array,
144
- // 自定义合并行或列的方法
145
- spanMethod: Function,
146
- // 表尾合并行或列
147
- footerSpanMethod: Function,
148
- // 设置所有内容过长时显示为省略号
149
- showOverflow: {
150
- type: [Boolean, String],
151
- default: () => getConfig().table.showOverflow
152
- },
153
- // 设置表头所有内容过长时显示为省略号
154
- showHeaderOverflow: {
155
- type: [Boolean, String],
156
- default: () => getConfig().table.showHeaderOverflow
157
- },
158
- // 设置表尾所有内容过长时显示为省略号
159
- showFooterOverflow: {
160
- type: [Boolean, String],
161
- default: () => getConfig().table.showFooterOverflow
162
- },
163
- /** 高级属性 */
164
- /**
165
- * (即将废弃)columnKey 已废弃,被 column-config.useKey 替换
166
- * @deprecated
167
- */
168
- columnKey: Boolean,
169
- /**
170
- * (即将废弃)rowKey 已废弃,被 row-config.useKey 替换
171
- * @deprecated
172
- */
173
- rowKey: Boolean,
174
- /**
175
- * (即将废弃)rowId 已废弃,被 row-config.keyField 替换
176
- * @deprecated
177
- */
178
- rowId: {
179
- type: String,
180
- default: () => getConfig().table.rowId
181
- },
182
- zIndex: Number,
183
- emptyText: {
184
- type: String,
185
- default: () => getConfig().table.emptyText
186
- },
187
- keepSource: {
188
- type: Boolean,
189
- default: () => getConfig().table.keepSource
190
- },
191
- // 是否自动监听父容器变化去更新响应式表格宽高
192
- autoResize: {
193
- type: Boolean,
194
- default: () => getConfig().table.autoResize
195
- },
196
- // 是否自动根据状态属性去更新响应式表格宽高
197
- syncResize: [Boolean, String, Number],
198
- // 响应式布局配置项
199
- resizeConfig: Object,
200
- // 列配置项
201
- columnConfig: Object,
202
- // 当前列配置项
203
- currentColumnConfig: Object,
204
- // 单元格配置项
205
- cellConfig: Object,
206
- // 表头单元格配置项
207
- headerCellConfig: Object,
208
- // 表尾单元格配置项
209
- footerCellConfig: Object,
210
- // 行配置项
211
- rowConfig: Object,
212
- // 数据聚合配置项
213
- aggregateConfig: Object,
214
- /**
215
- * 已废弃,被 aggregateConfig 替换
216
- * @deprecated
217
- */
218
- rowGroupConfig: Object,
219
- // 当前行配置项
220
- currentRowConfig: Object,
221
- /**
222
- * 已废弃,被 rowDragConfig 替换
223
- * @deprecated
224
- */
225
- dragConfig: Object,
226
- // 行拖拽排序配置项
227
- rowDragConfig: Object,
228
- // 列拖拽排序配置项
229
- columnDragConfig: Object,
230
- // 列调整配置项
231
- resizableConfig: Object,
232
- // 序号配置项
233
- seqConfig: Object,
234
- // 排序配置项
235
- sortConfig: Object,
236
- // 筛选配置项
237
- filterConfig: Object,
238
- // 单选框配置
239
- radioConfig: Object,
240
- // 复选框配置项
241
- checkboxConfig: Object,
242
- // tooltip 配置项
243
- tooltipConfig: Object,
244
- // 导出配置项
245
- exportConfig: Object,
246
- // 导入配置项
247
- importConfig: Object,
248
- // 打印配置项
249
- printConfig: Object,
250
- // 展开行配置项
251
- expandConfig: Object,
252
- // 树形结构配置项
253
- treeConfig: Object,
254
- // 快捷菜单配置项
255
- menuConfig: Object,
256
- // 鼠标配置项
257
- mouseConfig: Object,
258
- // 区域配置项
259
- areaConfig: Object,
260
- // 按键配置项
261
- keyboardConfig: Object,
262
- // 复制粘/贴配置项
263
- clipConfig: Object,
264
- // 查找/替换配置项
265
- fnrConfig: Object,
266
- // 编辑配置项
267
- editConfig: Object,
268
- // 校验配置项
269
- validConfig: Object,
270
- // 校验规则配置项
271
- editRules: Object,
272
- // 加载中配置项
273
- loadingConfig: Object,
274
- // 空内容渲染配置项
275
- emptyRender: Object,
276
- // 自定义列配置项
277
- customConfig: Object,
278
- /**
279
- * (即将废弃)横向虚拟滚动配置项
280
- * @deprecated
281
- */
282
- scrollX: Object,
283
- /**
284
- * (即将废弃)纵向虚拟滚动配置项
285
- * @deprecated
286
- */
287
- scrollY: Object,
288
- // 横向虚拟滚动配置项
289
- virtualXConfig: Object,
290
- // 纵向虚拟滚动配置项
291
- virtualYConfig: Object,
292
- // 滚动条配置项
293
- scrollbarConfig: Object,
294
- // (即将废弃)优化相关
295
- animat: {
296
- type: Boolean,
297
- default: () => getConfig().table.animat
298
- },
299
- // (可能会被废弃的参数,不要使用)
300
- delayHover: {
301
- type: Number,
302
- default: () => getConfig().table.delayHover
303
- },
304
- // 额外的参数
305
- params: Object
306
- };
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),exports.tableProps=void 0;var _ui=require("../../ui");let getConfig=_ui.VxeUI.getConfig,tableProps=exports.tableProps={id:[String,Function],data:Array,height:[Number,String],minHeight:{type:[Number,String],default:()=>getConfig().table.minHeight},maxHeight:[Number,String],resizable:{type:Boolean,default:()=>getConfig().table.resizable},stripe:{type:Boolean,default:()=>getConfig().table.stripe},border:{type:[Boolean,String],default:()=>getConfig().table.border},padding:{type:Boolean,default:null},round:{type:Boolean,default:()=>getConfig().table.round},size:{type:String,default:()=>getConfig().table.size||getConfig().size},fit:{type:Boolean,default:()=>getConfig().table.fit},loading:Boolean,align:{type:String,default:()=>getConfig().table.align},headerAlign:{type:String,default:()=>getConfig().table.headerAlign},footerAlign:{type:String,default:()=>getConfig().table.footerAlign},showHeader:{type:Boolean,default:()=>getConfig().table.showHeader},highlightCurrentRow:{type:Boolean,default:()=>getConfig().table.highlightCurrentRow},highlightHoverRow:{type:Boolean,default:()=>getConfig().table.highlightHoverRow},highlightCurrentColumn:{type:Boolean,default:()=>getConfig().table.highlightCurrentColumn},highlightHoverColumn:{type:Boolean,default:()=>getConfig().table.highlightHoverColumn},highlightCell:Boolean,showFooter:Boolean,footerData:Array,footerMethod:Function,rowClassName:[String,Function],cellClassName:[String,Function],headerRowClassName:[String,Function],headerCellClassName:[String,Function],footerRowClassName:[String,Function],footerCellClassName:[String,Function],cellStyle:[Object,Function],headerCellStyle:[Object,Function],footerCellStyle:[Object,Function],rowStyle:[Object,Function],headerRowStyle:[Object,Function],footerRowStyle:[Object,Function],mergeCells:Array,mergeFooterItems:Array,spanMethod:Function,footerSpanMethod:Function,showOverflow:{type:[Boolean,String],default:()=>getConfig().table.showOverflow},showHeaderOverflow:{type:[Boolean,String],default:()=>getConfig().table.showHeaderOverflow},showFooterOverflow:{type:[Boolean,String],default:()=>getConfig().table.showFooterOverflow},columnKey:Boolean,rowKey:Boolean,rowId:{type:String,default:()=>getConfig().table.rowId},zIndex:Number,emptyText:{type:String,default:()=>getConfig().table.emptyText},keepSource:{type:Boolean,default:()=>getConfig().table.keepSource},autoResize:{type:Boolean,default:()=>getConfig().table.autoResize},syncResize:[Boolean,String,Number],resizeConfig:Object,columnConfig:Object,currentColumnConfig:Object,cellConfig:Object,headerCellConfig:Object,footerCellConfig:Object,rowConfig:Object,aggregateConfig:Object,rowGroupConfig:Object,currentRowConfig:Object,dragConfig:Object,rowDragConfig:Object,columnDragConfig:Object,resizableConfig:Object,seqConfig:Object,sortConfig:Object,filterConfig:Object,radioConfig:Object,checkboxConfig:Object,tooltipConfig:Object,exportConfig:Object,importConfig:Object,printConfig:Object,expandConfig:Object,treeConfig:Object,menuConfig:Object,mouseConfig:Object,areaConfig:Object,keyboardConfig:Object,clipConfig:Object,fnrConfig:Object,editConfig:Object,validConfig:Object,editRules:Object,loadingConfig:Object,emptyRender:Object,customConfig:Object,scrollX:Object,scrollY:Object,virtualXConfig:Object,virtualYConfig:Object,scrollbarConfig:Object,animat:{type:Boolean,default:()=>getConfig().table.animat},delayHover:{type:Number,default:()=>getConfig().table.delayHover},params:Object};
@@ -1,23 +0,0 @@
1
-
2
- import { PropType } from 'vue'
3
- import { VxeUI } from '../../ui'
4
- import { tableProps } from './table-props'
5
-
6
- import type { VxeGridPropTypes } from 'vxe-table'
7
-
8
- const { getConfig } = VxeUI
9
-
10
- export const gridProps = {
11
- ...tableProps,
12
- layouts: Array as PropType<VxeGridPropTypes.Layouts>,
13
- columns: Array as PropType<VxeGridPropTypes.Columns<any>>,
14
- pagerConfig: Object as PropType<VxeGridPropTypes.PagerConfig>,
15
- proxyConfig: Object as PropType<VxeGridPropTypes.ProxyConfig<any>>,
16
- toolbarConfig: Object as PropType<VxeGridPropTypes.ToolbarConfig>,
17
- formConfig: Object as PropType<VxeGridPropTypes.FormConfig>,
18
- zoomConfig: Object as PropType<VxeGridPropTypes.ZoomConfig>,
19
- size: {
20
- type: String as PropType<VxeGridPropTypes.Size>,
21
- default: () => getConfig().gantt.size || getConfig().size
22
- }
23
- }
@@ -1,13 +0,0 @@
1
- import { PropType } from 'vue'
2
- import { gridProps } from './grid-props'
3
-
4
- import type { VxeGanttPropTypes } from '../../../types'
5
-
6
- export const ganttProps = {
7
- ...gridProps,
8
-
9
- layouts: Array as PropType<VxeGanttPropTypes.Layouts>,
10
- taskConfig: Object as PropType<VxeGanttPropTypes.TaskConfig>,
11
- taskViewConfig: Object as PropType<VxeGanttPropTypes.TaskViewConfig>,
12
- taskBarConfig: Object as PropType<VxeGanttPropTypes.TaskBarConfig>
13
- }
@@ -1,304 +0,0 @@
1
- import { PropType } from 'vue'
2
- import { VxeUI } from '../../ui'
3
-
4
- import type { VxeTablePropTypes } from 'vxe-table'
5
-
6
- const { getConfig } = VxeUI
7
-
8
- export const tableProps = {
9
- /** 基本属性 */
10
- id: [String, Function] as PropType<VxeTablePropTypes.ID>,
11
- // 数据
12
- data: Array as PropType<any[]>,
13
- // 表格的高度
14
- height: [Number, String] as PropType<VxeTablePropTypes.Height>,
15
- // 表格的最小高度
16
- minHeight: {
17
- type: [Number, String] as PropType<VxeTablePropTypes.MinHeight>,
18
- default: () => getConfig().table.minHeight
19
- },
20
- // 表格的最大高度
21
- maxHeight: [Number, String] as PropType<VxeTablePropTypes.MaxHeight>,
22
- // 已废弃,被 column-config.resizable 替换
23
- resizable: {
24
- type: Boolean as PropType<VxeTablePropTypes.Resizable>,
25
- default: () => getConfig().table.resizable
26
- },
27
- // 是否带有斑马纹
28
- stripe: {
29
- type: Boolean as PropType<VxeTablePropTypes.Stripe>,
30
- default: () => getConfig().table.stripe
31
- },
32
- // 是否带有边框
33
- border: {
34
- type: [Boolean, String] as PropType<VxeTablePropTypes.Border>,
35
- default: () => getConfig().table.border
36
- },
37
- // 已废弃,被 cell-config.padding 替换
38
- padding: {
39
- type: Boolean as PropType<VxeTablePropTypes.Padding>,
40
- default: null
41
- },
42
- // 是否圆角边框
43
- round: {
44
- type: Boolean as PropType<VxeTablePropTypes.Round>,
45
- default: () => getConfig().table.round
46
- },
47
- // 表格的尺寸
48
- size: {
49
- type: String as PropType<VxeTablePropTypes.Size>,
50
- default: () => getConfig().table.size || getConfig().size
51
- },
52
- // 列的宽度是否自撑开(可能会被废弃的参数,不要使用)
53
- fit: {
54
- type: Boolean as PropType<VxeTablePropTypes.Fit>,
55
- default: () => getConfig().table.fit
56
- },
57
- // 表格是否加载中
58
- loading: Boolean as PropType<VxeTablePropTypes.Loading>,
59
- // 所有的列对其方式
60
- align: {
61
- type: String as PropType<VxeTablePropTypes.Align>,
62
- default: () => getConfig().table.align
63
- },
64
- // 所有的表头列的对齐方式
65
- headerAlign: {
66
- type: String as PropType<VxeTablePropTypes.HeaderAlign>,
67
- default: () => getConfig().table.headerAlign
68
- },
69
- // 所有的表尾列的对齐方式
70
- footerAlign: {
71
- type: String as PropType<VxeTablePropTypes.FooterAlign>,
72
- default: () => getConfig().table.footerAlign
73
- },
74
- // 是否显示表头
75
- showHeader: {
76
- type: Boolean as PropType<VxeTablePropTypes.ShowHeader>,
77
- default: () => getConfig().table.showHeader
78
- },
79
- // (即将废弃)是否要高亮当前选中行
80
- highlightCurrentRow: {
81
- type: Boolean as PropType<VxeTablePropTypes.HighlightCurrentRow>,
82
- default: () => getConfig().table.highlightCurrentRow
83
- },
84
- // (即将废弃)鼠标移到行是否要高亮显示
85
- highlightHoverRow: {
86
- type: Boolean as PropType<VxeTablePropTypes.HighlightHoverRow>,
87
- default: () => getConfig().table.highlightHoverRow
88
- },
89
- /**
90
- * (即将废弃)是否要高亮当前选中列
91
- * @deprecated
92
- */
93
- highlightCurrentColumn: {
94
- type: Boolean as PropType<VxeTablePropTypes.HighlightCurrentColumn>,
95
- default: () => getConfig().table.highlightCurrentColumn
96
- },
97
- /**
98
- * (即将废弃)鼠标移到列是否要高亮显示
99
- * @deprecated
100
- */
101
- highlightHoverColumn: {
102
- type: Boolean as PropType<VxeTablePropTypes.HighlightHoverColumn>,
103
- default: () => getConfig().table.highlightHoverColumn
104
- },
105
- // (即将废弃)激活单元格编辑时是否高亮显示
106
- highlightCell: Boolean as PropType<VxeTablePropTypes.HighlightCell>,
107
- // 是否显示表尾合计
108
- showFooter: Boolean as PropType<VxeTablePropTypes.ShowFooter>,
109
- // 表尾数据
110
- footerData: Array as PropType<VxeTablePropTypes.FooterData>,
111
- // 表尾合计的计算方法
112
- footerMethod: Function as PropType<VxeTablePropTypes.FooterMethod>,
113
- // 给行附加 className
114
- rowClassName: [String, Function] as PropType<VxeTablePropTypes.RowClassName>,
115
- // 给单元格附加 className
116
- cellClassName: [String, Function] as PropType<VxeTablePropTypes.CellClassName>,
117
- // 给表头的行附加 className
118
- headerRowClassName: [String, Function] as PropType<VxeTablePropTypes.HeaderRowClassName>,
119
- // 给表头的单元格附加 className
120
- headerCellClassName: [String, Function] as PropType<VxeTablePropTypes.HeaderRowClassName>,
121
- // 给表尾的行附加 className
122
- footerRowClassName: [String, Function] as PropType<VxeTablePropTypes.FooterRowClassName>,
123
- // 给表尾的单元格附加 className
124
- footerCellClassName: [String, Function] as PropType<VxeTablePropTypes.FooterCellClassName>,
125
- // 给单元格附加样式
126
- cellStyle: [Object, Function] as PropType<VxeTablePropTypes.CellStyle>,
127
- // 给表头单元格附加样式
128
- headerCellStyle: [Object, Function] as PropType<VxeTablePropTypes.HeaderCellStyle>,
129
- // 给表尾单元格附加样式
130
- footerCellStyle: [Object, Function] as PropType<VxeTablePropTypes.FooterCellStyle>,
131
- // 给行附加样式
132
- rowStyle: [Object, Function] as PropType<VxeTablePropTypes.RowStyle>,
133
- // 给表头行附加样式
134
- headerRowStyle: [Object, Function] as PropType<VxeTablePropTypes.HeaderRowStyle>,
135
- // 给表尾行附加样式
136
- footerRowStyle: [Object, Function] as PropType<VxeTablePropTypes.FooterRowStyle>,
137
- // 合并指定单元格
138
- mergeCells: Array as PropType<VxeTablePropTypes.MergeCells>,
139
- // 合并指定的表尾
140
- mergeFooterItems: Array as PropType<VxeTablePropTypes.MergeFooterItems>,
141
- // 自定义合并行或列的方法
142
- spanMethod: Function as PropType<VxeTablePropTypes.SpanMethod>,
143
- // 表尾合并行或列
144
- footerSpanMethod: Function as PropType<VxeTablePropTypes.FooterSpanMethod>,
145
- // 设置所有内容过长时显示为省略号
146
- showOverflow: {
147
- type: [Boolean, String] as PropType<VxeTablePropTypes.ShowOverflow>,
148
- default: () => getConfig().table.showOverflow
149
- },
150
- // 设置表头所有内容过长时显示为省略号
151
- showHeaderOverflow: {
152
- type: [Boolean, String] as PropType<VxeTablePropTypes.ShowHeaderOverflow>,
153
- default: () => getConfig().table.showHeaderOverflow
154
- },
155
- // 设置表尾所有内容过长时显示为省略号
156
- showFooterOverflow: {
157
- type: [Boolean, String] as PropType<VxeTablePropTypes.ShowFooterOverflow>,
158
- default: () => getConfig().table.showFooterOverflow
159
- },
160
-
161
- /** 高级属性 */
162
- /**
163
- * (即将废弃)columnKey 已废弃,被 column-config.useKey 替换
164
- * @deprecated
165
- */
166
- columnKey: Boolean as PropType<VxeTablePropTypes.ColumnKey>,
167
- /**
168
- * (即将废弃)rowKey 已废弃,被 row-config.useKey 替换
169
- * @deprecated
170
- */
171
- rowKey: Boolean as PropType<VxeTablePropTypes.RowKey>,
172
- /**
173
- * (即将废弃)rowId 已废弃,被 row-config.keyField 替换
174
- * @deprecated
175
- */
176
- rowId: {
177
- type: String as PropType<VxeTablePropTypes.RowId>,
178
- default: () => getConfig().table.rowId
179
- },
180
- zIndex: Number as PropType<VxeTablePropTypes.ZIndex>,
181
- emptyText: {
182
- type: String as PropType<VxeTablePropTypes.EmptyText>,
183
- default: () => getConfig().table.emptyText
184
- },
185
- keepSource: {
186
- type: Boolean as PropType<VxeTablePropTypes.KeepSource>,
187
- default: () => getConfig().table.keepSource
188
- },
189
- // 是否自动监听父容器变化去更新响应式表格宽高
190
- autoResize: {
191
- type: Boolean as PropType<VxeTablePropTypes.AutoResize>,
192
- default: () => getConfig().table.autoResize
193
- },
194
- // 是否自动根据状态属性去更新响应式表格宽高
195
- syncResize: [Boolean, String, Number],
196
- // 响应式布局配置项
197
- resizeConfig: Object as PropType<VxeTablePropTypes.ResizeConfig>,
198
- // 列配置项
199
- columnConfig: Object as PropType<VxeTablePropTypes.ColumnConfig>,
200
- // 当前列配置项
201
- currentColumnConfig: Object as PropType<VxeTablePropTypes.CurrentColumnConfig>,
202
- // 单元格配置项
203
- cellConfig: Object as PropType<VxeTablePropTypes.CellConfig>,
204
- // 表头单元格配置项
205
- headerCellConfig: Object as PropType<VxeTablePropTypes.HeaderCellConfig>,
206
- // 表尾单元格配置项
207
- footerCellConfig: Object as PropType<VxeTablePropTypes.FooterCellConfig>,
208
- // 行配置项
209
- rowConfig: Object as PropType<VxeTablePropTypes.RowConfig>,
210
- // 数据聚合配置项
211
- aggregateConfig: Object as PropType<VxeTablePropTypes.AggregateConfig>,
212
- /**
213
- * 已废弃,被 aggregateConfig 替换
214
- * @deprecated
215
- */
216
- rowGroupConfig: Object as PropType<VxeTablePropTypes.RowGroupConfig>,
217
- // 当前行配置项
218
- currentRowConfig: Object as PropType<VxeTablePropTypes.CurrentRowConfig>,
219
- /**
220
- * 已废弃,被 rowDragConfig 替换
221
- * @deprecated
222
- */
223
- dragConfig: Object as PropType<VxeTablePropTypes.DragConfig>,
224
- // 行拖拽排序配置项
225
- rowDragConfig: Object as PropType<VxeTablePropTypes.RowDragConfig>,
226
- // 列拖拽排序配置项
227
- columnDragConfig: Object as PropType<VxeTablePropTypes.ColumnDragConfig>,
228
- // 列调整配置项
229
- resizableConfig: Object as PropType<VxeTablePropTypes.ResizableConfig>,
230
- // 序号配置项
231
- seqConfig: Object as PropType<VxeTablePropTypes.SeqConfig>,
232
- // 排序配置项
233
- sortConfig: Object as PropType<VxeTablePropTypes.SortConfig>,
234
- // 筛选配置项
235
- filterConfig: Object as PropType<VxeTablePropTypes.FilterConfig>,
236
- // 单选框配置
237
- radioConfig: Object as PropType<VxeTablePropTypes.RadioConfig>,
238
- // 复选框配置项
239
- checkboxConfig: Object as PropType<VxeTablePropTypes.CheckboxConfig>,
240
- // tooltip 配置项
241
- tooltipConfig: Object as PropType<VxeTablePropTypes.TooltipConfig>,
242
- // 导出配置项
243
- exportConfig: Object as PropType<VxeTablePropTypes.ExportConfig>,
244
- // 导入配置项
245
- importConfig: Object as PropType<VxeTablePropTypes.ImportConfig>,
246
- // 打印配置项
247
- printConfig: Object as PropType<VxeTablePropTypes.PrintConfig>,
248
- // 展开行配置项
249
- expandConfig: Object as PropType<VxeTablePropTypes.ExpandConfig>,
250
- // 树形结构配置项
251
- treeConfig: Object as PropType<VxeTablePropTypes.TreeConfig>,
252
- // 快捷菜单配置项
253
- menuConfig: Object as PropType<VxeTablePropTypes.MenuConfig>,
254
- // 鼠标配置项
255
- mouseConfig: Object as PropType<VxeTablePropTypes.MouseConfig>,
256
- // 区域配置项
257
- areaConfig: Object as PropType<VxeTablePropTypes.AreaConfig>,
258
- // 按键配置项
259
- keyboardConfig: Object as PropType<VxeTablePropTypes.KeyboardConfig<any>>,
260
- // 复制粘/贴配置项
261
- clipConfig: Object as PropType<VxeTablePropTypes.ClipConfig<any>>,
262
- // 查找/替换配置项
263
- fnrConfig: Object as PropType<VxeTablePropTypes.FNRConfig>,
264
- // 编辑配置项
265
- editConfig: Object as PropType<VxeTablePropTypes.EditConfig<any>>,
266
- // 校验配置项
267
- validConfig: Object as PropType<VxeTablePropTypes.ValidConfig>,
268
- // 校验规则配置项
269
- editRules: Object as PropType<VxeTablePropTypes.EditRules>,
270
- // 加载中配置项
271
- loadingConfig: Object as PropType<VxeTablePropTypes.LoadingConfig>,
272
- // 空内容渲染配置项
273
- emptyRender: Object as PropType<VxeTablePropTypes.EmptyRender>,
274
- // 自定义列配置项
275
- customConfig: Object as PropType<VxeTablePropTypes.CustomConfig>,
276
- /**
277
- * (即将废弃)横向虚拟滚动配置项
278
- * @deprecated
279
- */
280
- scrollX: Object as PropType<VxeTablePropTypes.ScrollX>,
281
- /**
282
- * (即将废弃)纵向虚拟滚动配置项
283
- * @deprecated
284
- */
285
- scrollY: Object as PropType<VxeTablePropTypes.ScrollY>,
286
- // 横向虚拟滚动配置项
287
- virtualXConfig: Object as PropType<VxeTablePropTypes.VirtualXConfig>,
288
- // 纵向虚拟滚动配置项
289
- virtualYConfig: Object as PropType<VxeTablePropTypes.VirtualYConfig>,
290
- // 滚动条配置项
291
- scrollbarConfig: Object as PropType<VxeTablePropTypes.ScrollbarConfig>,
292
- // (即将废弃)优化相关
293
- animat: {
294
- type: Boolean as PropType<VxeTablePropTypes.Animat>,
295
- default: () => getConfig().table.animat
296
- },
297
- // (可能会被废弃的参数,不要使用)
298
- delayHover: {
299
- type: Number as PropType<VxeTablePropTypes.DelayHover>,
300
- default: () => getConfig().table.delayHover as number
301
- },
302
- // 额外的参数
303
- params: Object as PropType<VxeTablePropTypes.Params>
304
- }