vxe-gantt 0.0.3 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -46
- package/es/components.js +3 -2
- package/es/gantt/src/gantt-body.js +83 -49
- package/es/gantt/src/gantt-chart.js +91 -43
- package/es/gantt/src/gantt-header.js +63 -36
- package/es/gantt/src/gantt-view.js +638 -586
- package/es/gantt/src/gantt.js +1346 -1178
- package/es/gantt/src/util.js +1 -4
- package/es/gantt/style.css +62 -28
- package/es/gantt/style.min.css +1 -1
- package/es/index.esm.js +5 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +9 -3
- package/es/ui/src/comp.js +1 -2
- package/es/ui/src/log.js +3 -2
- package/es/ui/src/utils.js +17 -17
- package/es/vxe-gantt/style.css +62 -28
- package/es/vxe-gantt/style.min.css +1 -1
- package/helper/vetur/attributes.json +1 -1
- package/helper/vetur/tags.json +1 -1
- package/lib/components.js +20 -19
- package/lib/components.min.js +1 -1
- package/lib/gantt/index.js +3 -3
- package/lib/gantt/index.min.js +1 -1
- package/lib/gantt/src/gantt-body.js +109 -87
- package/lib/gantt/src/gantt-body.min.js +1 -1
- package/lib/gantt/src/gantt-chart.js +109 -69
- package/lib/gantt/src/gantt-chart.min.js +1 -1
- package/lib/gantt/src/gantt-header.js +75 -56
- package/lib/gantt/src/gantt-header.min.js +1 -1
- package/lib/gantt/src/gantt-view.js +684 -686
- package/lib/gantt/src/gantt-view.min.js +1 -1
- package/lib/gantt/src/gantt.js +1630 -1559
- package/lib/gantt/src/gantt.min.js +1 -1
- package/lib/gantt/src/util.js +1 -4
- package/lib/gantt/src/util.min.js +1 -1
- package/lib/gantt/style/style.css +62 -28
- package/lib/gantt/style/style.min.css +1 -1
- package/lib/index.common.js +12 -7
- package/lib/index.umd.js +10704 -5870
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +12 -16
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/comp.js +3 -2
- package/lib/ui/src/comp.min.js +1 -1
- package/lib/ui/src/dom.js +33 -33
- package/lib/ui/src/dom.min.js +1 -1
- package/lib/ui/src/log.js +4 -3
- package/lib/ui/src/log.min.js +1 -1
- package/lib/ui/src/utils.js +21 -24
- package/lib/ui/src/utils.min.js +1 -1
- package/lib/vxe-gantt/index.js +4 -2
- package/lib/vxe-gantt/index.min.js +1 -1
- package/lib/vxe-gantt/style/style.css +62 -28
- package/lib/vxe-gantt/style/style.min.css +1 -1
- package/lib/vxe-ui/index.js +4 -2
- package/lib/vxe-ui/index.min.js +1 -1
- package/package.json +13 -13
- package/packages/components.ts +8 -5
- package/packages/gantt/index.ts +2 -2
- package/packages/gantt/src/gantt-body.ts +89 -53
- package/packages/gantt/src/gantt-chart.ts +100 -49
- package/packages/gantt/src/gantt-header.ts +69 -39
- package/packages/gantt/src/gantt-view.ts +692 -624
- package/packages/gantt/src/gantt.ts +1459 -1240
- package/packages/gantt/src/util.ts +1 -4
- package/packages/index.ts +6 -2
- package/packages/ui/index.ts +9 -3
- package/packages/ui/src/comp.ts +2 -2
- package/packages/ui/src/log.ts +3 -1
- package/packages/ui/src/utils.ts +22 -21
- package/styles/components/gantt-module/gantt-chart.scss +28 -9
- package/styles/components/gantt.scss +36 -21
- package/styles/theme/base.scss +5 -1
- package/types/all.d.ts +3 -3
- package/types/index.d.ts +2 -2
- package/README.en.md +0 -72
- package/README.ja-JP.md +0 -72
- package/README.zh-TW.md +0 -73
- package/es/gantt/src/emits.js +0 -4
- package/es/gantt/src/grid-emits.js +0 -16
- package/es/gantt/src/grid-props.js +0 -7
- package/es/gantt/src/props.js +0 -2
- package/es/gantt/src/table-emits.js +0 -97
- package/es/gantt/src/table-props.js +0 -298
- package/lib/gantt/src/emits.js +0 -8
- package/lib/gantt/src/emits.min.js +0 -1
- package/lib/gantt/src/grid-emits.js +0 -8
- package/lib/gantt/src/grid-emits.min.js +0 -1
- package/lib/gantt/src/grid-props.js +0 -24
- package/lib/gantt/src/grid-props.min.js +0 -1
- package/lib/gantt/src/props.js +0 -13
- package/lib/gantt/src/props.min.js +0 -1
- package/lib/gantt/src/table-emits.js +0 -7
- package/lib/gantt/src/table-emits.min.js +0 -1
- package/lib/gantt/src/table-props.js +0 -306
- package/lib/gantt/src/table-props.min.js +0 -1
- package/packages/gantt/src/emits.ts +0 -7
- package/packages/gantt/src/grid-emits.ts +0 -19
- package/packages/gantt/src/grid-props.ts +0 -23
- package/packages/gantt/src/props.ts +0 -13
- package/packages/gantt/src/table-emits.ts +0 -109
- 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,19 +0,0 @@
|
|
|
1
|
-
import { tableEmits } from './table-emits'
|
|
2
|
-
|
|
3
|
-
import type { VxeGridEmits } from 'vxe-table'
|
|
4
|
-
|
|
5
|
-
export const gridEmits: VxeGridEmits = [
|
|
6
|
-
...tableEmits,
|
|
7
|
-
'page-change',
|
|
8
|
-
'form-submit',
|
|
9
|
-
'form-submit-invalid',
|
|
10
|
-
'form-reset',
|
|
11
|
-
'form-collapse',
|
|
12
|
-
'form-toggle-collapse',
|
|
13
|
-
'proxy-query',
|
|
14
|
-
'proxy-delete',
|
|
15
|
-
'proxy-save',
|
|
16
|
-
'toolbar-button-click',
|
|
17
|
-
'toolbar-tool-click',
|
|
18
|
-
'zoom'
|
|
19
|
-
]
|
|
@@ -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,109 +0,0 @@
|
|
|
1
|
-
import type { VxeTableEmits } from 'vxe-table'
|
|
2
|
-
|
|
3
|
-
export const tableEmits: VxeTableEmits = [
|
|
4
|
-
'update:data',
|
|
5
|
-
'keydown-start',
|
|
6
|
-
'keydown',
|
|
7
|
-
'keydown-end',
|
|
8
|
-
'paste',
|
|
9
|
-
'copy',
|
|
10
|
-
'cut',
|
|
11
|
-
|
|
12
|
-
'current-change', // 已废弃
|
|
13
|
-
|
|
14
|
-
'current-row-change',
|
|
15
|
-
'current-row-disabled',
|
|
16
|
-
'current-column-change',
|
|
17
|
-
'current-column-disabled',
|
|
18
|
-
'radio-change',
|
|
19
|
-
'checkbox-change',
|
|
20
|
-
'checkbox-all',
|
|
21
|
-
'checkbox-range-start',
|
|
22
|
-
'checkbox-range-change',
|
|
23
|
-
'checkbox-range-end',
|
|
24
|
-
'checkbox-range-select',
|
|
25
|
-
'cell-click',
|
|
26
|
-
'cell-dblclick',
|
|
27
|
-
'cell-menu',
|
|
28
|
-
'cell-mouseenter',
|
|
29
|
-
'cell-mouseleave',
|
|
30
|
-
'cell-selected',
|
|
31
|
-
'cell-delete-value',
|
|
32
|
-
'cell-backspace-value',
|
|
33
|
-
'header-cell-click',
|
|
34
|
-
'header-cell-dblclick',
|
|
35
|
-
'header-cell-menu',
|
|
36
|
-
'footer-cell-click',
|
|
37
|
-
'footer-cell-dblclick',
|
|
38
|
-
'footer-cell-menu',
|
|
39
|
-
'clear-merge',
|
|
40
|
-
'sort-change',
|
|
41
|
-
'clear-sort',
|
|
42
|
-
'clear-all-sort',
|
|
43
|
-
'filter-change',
|
|
44
|
-
'filter-visible',
|
|
45
|
-
'clear-filter',
|
|
46
|
-
'clear-all-filter',
|
|
47
|
-
|
|
48
|
-
'resizable-change', // 废弃
|
|
49
|
-
|
|
50
|
-
'column-resizable-change',
|
|
51
|
-
'row-resizable-change',
|
|
52
|
-
'toggle-row-group-expand',
|
|
53
|
-
'toggle-row-expand',
|
|
54
|
-
'toggle-tree-expand',
|
|
55
|
-
'menu-click',
|
|
56
|
-
'edit-closed',
|
|
57
|
-
|
|
58
|
-
'row-dragstart',
|
|
59
|
-
'row-dragover',
|
|
60
|
-
'row-dragend',
|
|
61
|
-
'column-dragstart',
|
|
62
|
-
'column-dragover',
|
|
63
|
-
'column-dragend',
|
|
64
|
-
|
|
65
|
-
'enter-append-row',
|
|
66
|
-
|
|
67
|
-
'edit-actived', // 废弃
|
|
68
|
-
|
|
69
|
-
'edit-activated',
|
|
70
|
-
'edit-disabled',
|
|
71
|
-
'valid-error',
|
|
72
|
-
'scroll',
|
|
73
|
-
'scroll-boundary',
|
|
74
|
-
'custom',
|
|
75
|
-
'custom-visible-change',
|
|
76
|
-
'custom-visible-all',
|
|
77
|
-
'custom-fixed-change',
|
|
78
|
-
|
|
79
|
-
'change-fnr', // 废弃
|
|
80
|
-
|
|
81
|
-
'open-fnr',
|
|
82
|
-
'show-fnr',
|
|
83
|
-
'hide-fnr',
|
|
84
|
-
'fnr-change',
|
|
85
|
-
'fnr-find',
|
|
86
|
-
'fnr-find-all',
|
|
87
|
-
'fnr-replace',
|
|
88
|
-
'fnr-replace-all',
|
|
89
|
-
'cell-area-copy',
|
|
90
|
-
'cell-area-cut',
|
|
91
|
-
'cell-area-paste',
|
|
92
|
-
'cell-area-merge',
|
|
93
|
-
'clear-cell-area-selection',
|
|
94
|
-
'clear-cell-area-merge',
|
|
95
|
-
'header-cell-area-selection',
|
|
96
|
-
'cell-area-selection-invalid',
|
|
97
|
-
'cell-area-selection-start',
|
|
98
|
-
'cell-area-selection-drag',
|
|
99
|
-
'cell-area-selection-end',
|
|
100
|
-
'cell-area-extension-start',
|
|
101
|
-
'cell-area-extension-drag',
|
|
102
|
-
'cell-area-extension-end',
|
|
103
|
-
'cell-area-selection-all-start',
|
|
104
|
-
'cell-area-selection-all-end',
|
|
105
|
-
'cell-area-arrows-start',
|
|
106
|
-
'cell-area-arrows-end',
|
|
107
|
-
'active-cell-change-start',
|
|
108
|
-
'active-cell-change-end'
|
|
109
|
-
]
|