sh-view 2.8.1 → 2.8.3
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/.eslintrc.js +25 -20
- package/other.js +8 -8
- package/package.json +9 -6
- package/packages/components/index.js +91 -91
- package/packages/components/sh-alert/alert.ts +30 -0
- package/packages/components/sh-alert/index.vue +143 -168
- package/packages/components/sh-badge/index.vue +242 -242
- package/packages/components/sh-calendar/index.vue +650 -650
- package/packages/components/sh-card/index.vue +148 -148
- package/packages/components/sh-code-editor/index.vue +19 -19
- package/packages/components/sh-col/index.vue +92 -92
- package/packages/components/sh-corner/index.vue +230 -230
- package/packages/components/sh-count-to/index.vue +131 -131
- package/packages/components/sh-date/index.vue +301 -301
- package/packages/components/sh-drawer/index.vue +579 -579
- package/packages/components/sh-drawer/scrollbar.js +78 -78
- package/packages/components/sh-empty/index.vue +42 -42
- package/packages/components/sh-form/js/props.js +76 -76
- package/packages/components/sh-form/js/useForm.js +229 -229
- package/packages/components/sh-header/index.vue +261 -260
- package/packages/components/sh-icon/css/default/ionicons.svg +869 -869
- package/packages/components/sh-icon/css/font/iconfont.json +247 -247
- package/packages/components/sh-icon/index.vue +41 -41
- package/packages/components/sh-image/index.vue +133 -133
- package/packages/components/sh-list/index.vue +146 -146
- package/packages/components/sh-loading/index.vue +53 -53
- package/packages/components/sh-modal/index.vue +188 -188
- package/packages/components/sh-noticebar/index.vue +215 -215
- package/packages/components/sh-poptip/index.vue +597 -597
- package/packages/components/sh-progress/index.vue +276 -276
- package/packages/components/sh-pull-refresh/index.vue +289 -289
- package/packages/components/sh-result/index.vue +114 -114
- package/packages/components/sh-row/index.vue +66 -66
- package/packages/components/sh-split/components/trigger.vue +33 -33
- package/packages/components/sh-split/index.vue +342 -342
- package/packages/components/sh-table/components/importModal.vue +363 -363
- package/packages/components/sh-table/components/sh-column.vue +68 -68
- package/packages/components/sh-table/js/excel_to_json.js +313 -313
- package/packages/components/sh-table/js/props.js +305 -305
- package/packages/components/sh-table/js/tableMethods.js +167 -167
- package/packages/components/sh-table/js/useTable.js +636 -636
- package/packages/components/sh-table/table.vue +217 -217
- package/packages/components/sh-tabs/index.vue +426 -426
- package/packages/components/sh-tag/index.vue +168 -168
- package/packages/components/sh-toolbar/index.vue +182 -182
- package/packages/components/sh-tree/components/table-tree.vue +289 -289
- package/packages/components/sh-tree/mixin/treeProps.js +122 -122
- package/packages/components/sh-upload/index.vue +535 -535
- package/packages/components/sh-water-fall/index.vue +80 -80
- package/packages/components/sh-water-mark/index.vue +96 -96
- package/packages/css/index.js +4 -4
- package/packages/directive/index.js +19 -19
- package/packages/directive/module/click-out.js +14 -14
- package/packages/directive/module/draggable.js +42 -42
- package/packages/directive/module/line-clamp.js +22 -22
- package/packages/directive/module/prevent-click.js +18 -18
- package/packages/directive/module/resize.js +14 -14
- package/packages/directive/module/ripple.js +166 -166
- package/packages/index.js +39 -39
- package/packages/mixin/index.js +86 -86
- package/packages/other/sh-cron-modal/components/cron-content.vue +294 -294
- package/packages/other/sh-cron-modal/index.vue +81 -81
- package/packages/other/sh-cron-modal/mixin/cron-emits.js +1 -1
- package/packages/other/sh-cron-modal/mixin/cron-props.js +9 -9
- package/packages/other/sh-cron-modal/tabs/cron-week-box.vue +126 -126
- package/packages/other/sh-menu/index.vue +326 -326
- package/packages/other/sh-menu/menu-group-content.vue +136 -136
- package/packages/other/sh-menu/menu-item-content.vue +71 -71
- package/packages/other/sh-menu-card/index.vue +250 -250
- package/packages/other/sh-menu-card/menu-box.vue +87 -87
- package/packages/other/sh-preview/components/sh-excel.vue +163 -163
- package/packages/other/sh-preview/js/data-hook.js +41 -41
- package/packages/other/sh-preview/js/data-props.js +15 -15
- package/packages/other/sh-system-tip/index.vue +115 -115
- package/packages/utils/resize.js +69 -70
- package/packages/utils/transfer-queue.js +12 -12
- package/packages/vxeTable/index.js +193 -184
- package/packages/vxeTable/plugins/export.js +450 -450
- package/packages/vxeTable/render/cell/vxe-render-img.vue +27 -27
- package/packages/vxeTable/render/cell/vxe-render-table.vue +51 -51
- package/packages/vxeTable/render/cell/vxe-render-time.vue +44 -44
- package/packages/vxeTable/render/cell/vxe-render-tree.vue +70 -70
- package/packages/vxeTable/render/filters/vxe-filter-input.vue +26 -26
- package/packages/vxeTable/render/filters/vxe-filter-time.vue +26 -26
- package/packages/vxeTable/render/globalRenders.jsx +514 -514
- package/packages/vxeTable/render/mixin/cell-hooks.js +198 -198
- package/packages/vxeTable/render/mixin/cell-props.js +23 -23
- package/packages/vxeTable/render/mixin/filter-hooks.js +46 -46
- package/tsconfig.json +25 -0
- package/types/component.d.ts +1 -0
- package/types/index.ts +0 -0
|
@@ -1,305 +1,305 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
id: {
|
|
3
|
-
type: String,
|
|
4
|
-
default: 'shtable'
|
|
5
|
-
},
|
|
6
|
-
dataSourse: {
|
|
7
|
-
type: Array,
|
|
8
|
-
default() {
|
|
9
|
-
return []
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
columns: {
|
|
13
|
-
type: Array,
|
|
14
|
-
default() {
|
|
15
|
-
return []
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
width: {
|
|
19
|
-
type: [Number, String]
|
|
20
|
-
},
|
|
21
|
-
height: {
|
|
22
|
-
type: [Number, String]
|
|
23
|
-
},
|
|
24
|
-
minHeight: {
|
|
25
|
-
type: [Number, String]
|
|
26
|
-
},
|
|
27
|
-
maxHeight: {
|
|
28
|
-
type: [Number, String]
|
|
29
|
-
},
|
|
30
|
-
autoResize: {
|
|
31
|
-
type: Boolean
|
|
32
|
-
},
|
|
33
|
-
syncResize: {
|
|
34
|
-
type: [Boolean, String, Number],
|
|
35
|
-
default: true
|
|
36
|
-
},
|
|
37
|
-
stripe: {
|
|
38
|
-
type: Boolean
|
|
39
|
-
},
|
|
40
|
-
border: {
|
|
41
|
-
type: [Boolean, String],
|
|
42
|
-
default: 'full'
|
|
43
|
-
},
|
|
44
|
-
round: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: false
|
|
47
|
-
},
|
|
48
|
-
size: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: 'small' // medium / small / mini
|
|
51
|
-
},
|
|
52
|
-
loading: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
default: false
|
|
55
|
-
},
|
|
56
|
-
align: {
|
|
57
|
-
type: String,
|
|
58
|
-
default: 'left'
|
|
59
|
-
},
|
|
60
|
-
headerAlign: {
|
|
61
|
-
type: String,
|
|
62
|
-
default: 'center'
|
|
63
|
-
},
|
|
64
|
-
showHeader: {
|
|
65
|
-
type: Boolean,
|
|
66
|
-
default: true
|
|
67
|
-
},
|
|
68
|
-
rowClassName: {
|
|
69
|
-
type: [String, Function]
|
|
70
|
-
},
|
|
71
|
-
cellClassName: {
|
|
72
|
-
type: [String, Function]
|
|
73
|
-
},
|
|
74
|
-
headerRowClassName: {
|
|
75
|
-
type: [String, Function]
|
|
76
|
-
},
|
|
77
|
-
headerCellClassName: {
|
|
78
|
-
type: [String, Function]
|
|
79
|
-
},
|
|
80
|
-
footerRowClassName: {
|
|
81
|
-
type: [String, Function]
|
|
82
|
-
},
|
|
83
|
-
footerCellClassName: {
|
|
84
|
-
type: [String, Function]
|
|
85
|
-
},
|
|
86
|
-
showFooter: {
|
|
87
|
-
type: Boolean,
|
|
88
|
-
default: false
|
|
89
|
-
},
|
|
90
|
-
footerMethod: {
|
|
91
|
-
type: Function
|
|
92
|
-
},
|
|
93
|
-
mergeCells: {
|
|
94
|
-
type: [Array]
|
|
95
|
-
},
|
|
96
|
-
mergeFooterItems: {
|
|
97
|
-
type: [Array]
|
|
98
|
-
},
|
|
99
|
-
showOverflow: {
|
|
100
|
-
type: [Boolean, String],
|
|
101
|
-
default: 'tooltip'
|
|
102
|
-
},
|
|
103
|
-
showHeaderOverflow: {
|
|
104
|
-
type: [Boolean, String],
|
|
105
|
-
default: 'tooltip'
|
|
106
|
-
},
|
|
107
|
-
showFooterOverflow: {
|
|
108
|
-
type: [Boolean, String],
|
|
109
|
-
default: false
|
|
110
|
-
},
|
|
111
|
-
footerSpanMethod: {
|
|
112
|
-
type: [Function]
|
|
113
|
-
},
|
|
114
|
-
keepSource: {
|
|
115
|
-
type: Boolean,
|
|
116
|
-
default: true
|
|
117
|
-
},
|
|
118
|
-
emptyIcon: {
|
|
119
|
-
type: String
|
|
120
|
-
},
|
|
121
|
-
emptyText: {
|
|
122
|
-
type: String
|
|
123
|
-
},
|
|
124
|
-
rowConfig: {
|
|
125
|
-
type: Object,
|
|
126
|
-
default() {
|
|
127
|
-
return {}
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
columnConfig: {
|
|
131
|
-
type: Object,
|
|
132
|
-
default() {
|
|
133
|
-
return {}
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
seqConfig: {
|
|
137
|
-
type: Object,
|
|
138
|
-
default() {
|
|
139
|
-
return {}
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
checkboxConfig: {
|
|
143
|
-
type: Object,
|
|
144
|
-
default() {
|
|
145
|
-
return {}
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
radioConfig: {
|
|
149
|
-
type: Object,
|
|
150
|
-
default() {
|
|
151
|
-
return {}
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
treeConfig: {
|
|
155
|
-
type: Object,
|
|
156
|
-
default() {
|
|
157
|
-
return {}
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
expandConfig: {
|
|
161
|
-
type: Object,
|
|
162
|
-
default() {
|
|
163
|
-
return {}
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
tooltipConfig: {
|
|
167
|
-
type: Object,
|
|
168
|
-
default() {
|
|
169
|
-
return {}
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
editConfig: {
|
|
173
|
-
type: Object,
|
|
174
|
-
default() {
|
|
175
|
-
return {}
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
validConfig: {
|
|
179
|
-
default() {
|
|
180
|
-
return { autoPos: true, showMessage: true }
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
editRules: {
|
|
184
|
-
type: Object,
|
|
185
|
-
default() {
|
|
186
|
-
return {}
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
sortConfig: {
|
|
190
|
-
type: Object,
|
|
191
|
-
default() {
|
|
192
|
-
return {}
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
mouseConfig: {
|
|
196
|
-
type: Object,
|
|
197
|
-
default() {
|
|
198
|
-
return {}
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
customConfig: {
|
|
202
|
-
type: Object,
|
|
203
|
-
default() {
|
|
204
|
-
return {}
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
importConfig: {
|
|
208
|
-
type: Object,
|
|
209
|
-
default() {
|
|
210
|
-
return {}
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
exportConfig: {
|
|
214
|
-
type: Object,
|
|
215
|
-
default() {
|
|
216
|
-
return {}
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
printConfig: {
|
|
220
|
-
type: Object,
|
|
221
|
-
default() {
|
|
222
|
-
return {}
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
formConfig: {
|
|
226
|
-
type: Object,
|
|
227
|
-
default() {
|
|
228
|
-
return {}
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
toolbarConfig: {
|
|
232
|
-
type: Object,
|
|
233
|
-
default() {
|
|
234
|
-
return {}
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
pagerConfig: {
|
|
238
|
-
type: [Object, Boolean],
|
|
239
|
-
default: false
|
|
240
|
-
},
|
|
241
|
-
keyboardConfig: {
|
|
242
|
-
type: Object,
|
|
243
|
-
default() {
|
|
244
|
-
return {}
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
scrollX: {
|
|
248
|
-
type: Object
|
|
249
|
-
},
|
|
250
|
-
scrollY: {
|
|
251
|
-
type: Object
|
|
252
|
-
},
|
|
253
|
-
|
|
254
|
-
// 扩展配置
|
|
255
|
-
disabled: {
|
|
256
|
-
type: Boolean, // 表格是否可编辑,默认不可编辑
|
|
257
|
-
default: true
|
|
258
|
-
},
|
|
259
|
-
customLayout: Boolean,
|
|
260
|
-
columnObj: {
|
|
261
|
-
type: Object,
|
|
262
|
-
default() {
|
|
263
|
-
return {}
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
globalConfig: {
|
|
267
|
-
type: Object,
|
|
268
|
-
default() {
|
|
269
|
-
return {}
|
|
270
|
-
}
|
|
271
|
-
},
|
|
272
|
-
footerCalculate: {
|
|
273
|
-
type: Object,
|
|
274
|
-
default() {
|
|
275
|
-
return {
|
|
276
|
-
calculate: ['subTotal']
|
|
277
|
-
// subTotal: { name: '合计', data: {} },
|
|
278
|
-
// allTotal: { name: '总计', data: {} },
|
|
279
|
-
// mean: { name: '平均', data: {} }
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
tableName: {
|
|
284
|
-
type: String,
|
|
285
|
-
default: ''
|
|
286
|
-
},
|
|
287
|
-
queryData: {
|
|
288
|
-
type: Object,
|
|
289
|
-
default() {
|
|
290
|
-
return {}
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
|
-
onToolbarBtnAddBefore: {
|
|
294
|
-
type: Function
|
|
295
|
-
},
|
|
296
|
-
onToolbarBtnDeleteBefore: {
|
|
297
|
-
type: Function
|
|
298
|
-
},
|
|
299
|
-
onExportMethod: {
|
|
300
|
-
type: Function
|
|
301
|
-
},
|
|
302
|
-
onPrintMethod: {
|
|
303
|
-
type: Function
|
|
304
|
-
}
|
|
305
|
-
}
|
|
1
|
+
export default {
|
|
2
|
+
id: {
|
|
3
|
+
type: String,
|
|
4
|
+
default: 'shtable'
|
|
5
|
+
},
|
|
6
|
+
dataSourse: {
|
|
7
|
+
type: Array,
|
|
8
|
+
default() {
|
|
9
|
+
return []
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
columns: {
|
|
13
|
+
type: Array,
|
|
14
|
+
default() {
|
|
15
|
+
return []
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
width: {
|
|
19
|
+
type: [Number, String]
|
|
20
|
+
},
|
|
21
|
+
height: {
|
|
22
|
+
type: [Number, String]
|
|
23
|
+
},
|
|
24
|
+
minHeight: {
|
|
25
|
+
type: [Number, String]
|
|
26
|
+
},
|
|
27
|
+
maxHeight: {
|
|
28
|
+
type: [Number, String]
|
|
29
|
+
},
|
|
30
|
+
autoResize: {
|
|
31
|
+
type: Boolean
|
|
32
|
+
},
|
|
33
|
+
syncResize: {
|
|
34
|
+
type: [Boolean, String, Number],
|
|
35
|
+
default: true
|
|
36
|
+
},
|
|
37
|
+
stripe: {
|
|
38
|
+
type: Boolean
|
|
39
|
+
},
|
|
40
|
+
border: {
|
|
41
|
+
type: [Boolean, String],
|
|
42
|
+
default: 'full'
|
|
43
|
+
},
|
|
44
|
+
round: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: false
|
|
47
|
+
},
|
|
48
|
+
size: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: 'small' // medium / small / mini
|
|
51
|
+
},
|
|
52
|
+
loading: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: false
|
|
55
|
+
},
|
|
56
|
+
align: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: 'left'
|
|
59
|
+
},
|
|
60
|
+
headerAlign: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: 'center'
|
|
63
|
+
},
|
|
64
|
+
showHeader: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: true
|
|
67
|
+
},
|
|
68
|
+
rowClassName: {
|
|
69
|
+
type: [String, Function]
|
|
70
|
+
},
|
|
71
|
+
cellClassName: {
|
|
72
|
+
type: [String, Function]
|
|
73
|
+
},
|
|
74
|
+
headerRowClassName: {
|
|
75
|
+
type: [String, Function]
|
|
76
|
+
},
|
|
77
|
+
headerCellClassName: {
|
|
78
|
+
type: [String, Function]
|
|
79
|
+
},
|
|
80
|
+
footerRowClassName: {
|
|
81
|
+
type: [String, Function]
|
|
82
|
+
},
|
|
83
|
+
footerCellClassName: {
|
|
84
|
+
type: [String, Function]
|
|
85
|
+
},
|
|
86
|
+
showFooter: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: false
|
|
89
|
+
},
|
|
90
|
+
footerMethod: {
|
|
91
|
+
type: Function
|
|
92
|
+
},
|
|
93
|
+
mergeCells: {
|
|
94
|
+
type: [Array]
|
|
95
|
+
},
|
|
96
|
+
mergeFooterItems: {
|
|
97
|
+
type: [Array]
|
|
98
|
+
},
|
|
99
|
+
showOverflow: {
|
|
100
|
+
type: [Boolean, String],
|
|
101
|
+
default: 'tooltip'
|
|
102
|
+
},
|
|
103
|
+
showHeaderOverflow: {
|
|
104
|
+
type: [Boolean, String],
|
|
105
|
+
default: 'tooltip'
|
|
106
|
+
},
|
|
107
|
+
showFooterOverflow: {
|
|
108
|
+
type: [Boolean, String],
|
|
109
|
+
default: false
|
|
110
|
+
},
|
|
111
|
+
footerSpanMethod: {
|
|
112
|
+
type: [Function]
|
|
113
|
+
},
|
|
114
|
+
keepSource: {
|
|
115
|
+
type: Boolean,
|
|
116
|
+
default: true
|
|
117
|
+
},
|
|
118
|
+
emptyIcon: {
|
|
119
|
+
type: String
|
|
120
|
+
},
|
|
121
|
+
emptyText: {
|
|
122
|
+
type: String
|
|
123
|
+
},
|
|
124
|
+
rowConfig: {
|
|
125
|
+
type: Object,
|
|
126
|
+
default() {
|
|
127
|
+
return {}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
columnConfig: {
|
|
131
|
+
type: Object,
|
|
132
|
+
default() {
|
|
133
|
+
return {}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
seqConfig: {
|
|
137
|
+
type: Object,
|
|
138
|
+
default() {
|
|
139
|
+
return {}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
checkboxConfig: {
|
|
143
|
+
type: Object,
|
|
144
|
+
default() {
|
|
145
|
+
return {}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
radioConfig: {
|
|
149
|
+
type: Object,
|
|
150
|
+
default() {
|
|
151
|
+
return {}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
treeConfig: {
|
|
155
|
+
type: Object,
|
|
156
|
+
default() {
|
|
157
|
+
return {}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
expandConfig: {
|
|
161
|
+
type: Object,
|
|
162
|
+
default() {
|
|
163
|
+
return {}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
tooltipConfig: {
|
|
167
|
+
type: Object,
|
|
168
|
+
default() {
|
|
169
|
+
return {}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
editConfig: {
|
|
173
|
+
type: Object,
|
|
174
|
+
default() {
|
|
175
|
+
return {}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
validConfig: {
|
|
179
|
+
default() {
|
|
180
|
+
return { autoPos: true, showMessage: true }
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
editRules: {
|
|
184
|
+
type: Object,
|
|
185
|
+
default() {
|
|
186
|
+
return {}
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
sortConfig: {
|
|
190
|
+
type: Object,
|
|
191
|
+
default() {
|
|
192
|
+
return {}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
mouseConfig: {
|
|
196
|
+
type: Object,
|
|
197
|
+
default() {
|
|
198
|
+
return {}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
customConfig: {
|
|
202
|
+
type: Object,
|
|
203
|
+
default() {
|
|
204
|
+
return {}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
importConfig: {
|
|
208
|
+
type: Object,
|
|
209
|
+
default() {
|
|
210
|
+
return {}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
exportConfig: {
|
|
214
|
+
type: Object,
|
|
215
|
+
default() {
|
|
216
|
+
return {}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
printConfig: {
|
|
220
|
+
type: Object,
|
|
221
|
+
default() {
|
|
222
|
+
return {}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
formConfig: {
|
|
226
|
+
type: Object,
|
|
227
|
+
default() {
|
|
228
|
+
return {}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
toolbarConfig: {
|
|
232
|
+
type: Object,
|
|
233
|
+
default() {
|
|
234
|
+
return {}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
pagerConfig: {
|
|
238
|
+
type: [Object, Boolean],
|
|
239
|
+
default: false
|
|
240
|
+
},
|
|
241
|
+
keyboardConfig: {
|
|
242
|
+
type: Object,
|
|
243
|
+
default() {
|
|
244
|
+
return {}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
scrollX: {
|
|
248
|
+
type: Object
|
|
249
|
+
},
|
|
250
|
+
scrollY: {
|
|
251
|
+
type: Object
|
|
252
|
+
},
|
|
253
|
+
|
|
254
|
+
// 扩展配置
|
|
255
|
+
disabled: {
|
|
256
|
+
type: Boolean, // 表格是否可编辑,默认不可编辑
|
|
257
|
+
default: true
|
|
258
|
+
},
|
|
259
|
+
customLayout: Boolean,
|
|
260
|
+
columnObj: {
|
|
261
|
+
type: Object,
|
|
262
|
+
default() {
|
|
263
|
+
return {}
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
globalConfig: {
|
|
267
|
+
type: Object,
|
|
268
|
+
default() {
|
|
269
|
+
return {}
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
footerCalculate: {
|
|
273
|
+
type: Object,
|
|
274
|
+
default() {
|
|
275
|
+
return {
|
|
276
|
+
calculate: ['subTotal']
|
|
277
|
+
// subTotal: { name: '合计', data: {} },
|
|
278
|
+
// allTotal: { name: '总计', data: {} },
|
|
279
|
+
// mean: { name: '平均', data: {} }
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
tableName: {
|
|
284
|
+
type: String,
|
|
285
|
+
default: ''
|
|
286
|
+
},
|
|
287
|
+
queryData: {
|
|
288
|
+
type: Object,
|
|
289
|
+
default() {
|
|
290
|
+
return {}
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
onToolbarBtnAddBefore: {
|
|
294
|
+
type: Function
|
|
295
|
+
},
|
|
296
|
+
onToolbarBtnDeleteBefore: {
|
|
297
|
+
type: Function
|
|
298
|
+
},
|
|
299
|
+
onExportMethod: {
|
|
300
|
+
type: Function
|
|
301
|
+
},
|
|
302
|
+
onPrintMethod: {
|
|
303
|
+
type: Function
|
|
304
|
+
}
|
|
305
|
+
}
|