fast-crud-ui3 1.5.16-tsc-beta → 1.5.16
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/lib/fast-crud-ui3.cjs.js +7 -7
- package/lib/fast-crud-ui3.es.js +1960 -2003
- package/lib/fast-crud-ui3.umd.js +7 -7
- package/lib/style.css +1 -1
- package/package.json +5 -18
- package/lib/assets/fonts/iconfont.d.ts +0 -0
- package/lib/components/checkbox-group/index.d.ts +0 -2
- package/lib/components/checkbox-group/src/fast-checkbox-group.d.ts +0 -72
- package/lib/components/content-dialog/index.d.ts +0 -2
- package/lib/components/content-dialog/src/fast-cell-content.d.ts +0 -83
- package/lib/components/json-viewer/index.d.ts +0 -2
- package/lib/components/json-viewer/src/fast-json-viewer.d.ts +0 -48
- package/lib/components/mapping.d.ts +0 -5
- package/lib/components/object-picker/index.d.ts +0 -2
- package/lib/components/object-picker/src/fast-object-picker.d.ts +0 -132
- package/lib/components/select/index.d.ts +0 -2
- package/lib/components/select/src/fast-select.d.ts +0 -83
- package/lib/components/table/index.d.ts +0 -2
- package/lib/components/table/src/RowConfirm.d.ts +0 -39
- package/lib/components/table/src/dynamic-filter-form.d.ts +0 -118
- package/lib/components/table/src/dynamic-filter-list.d.ts +0 -57
- package/lib/components/table/src/easy-filter.d.ts +0 -118
- package/lib/components/table/src/export-confirm.d.ts +0 -12
- package/lib/components/table/src/quick-filter-form.d.ts +0 -42
- package/lib/components/table/src/row-form.d.ts +0 -33
- package/lib/components/table/src/stored-filter-manager.d.ts +0 -55
- package/lib/components/table/src/stored-filter.d.ts +0 -37
- package/lib/components/table/src/table-head-cell.d.ts +0 -9
- package/lib/components/table/src/table.d.ts +0 -497
- package/lib/components/table/src/util.d.ts +0 -77
- package/lib/components/table-column/config.d.ts +0 -5
- package/lib/components/table-column/index.d.ts +0 -2
- package/lib/components/table-column/src/table-column.d.ts +0 -256
- package/lib/components/table-column-date-picker/config.d.ts +0 -5
- package/lib/components/table-column-date-picker/index.d.ts +0 -2
- package/lib/components/table-column-date-picker/src/table-column-date-picker.d.ts +0 -173
- package/lib/components/table-column-file/config.d.ts +0 -5
- package/lib/components/table-column-file/index.d.ts +0 -2
- package/lib/components/table-column-file/src/table-column-file.d.ts +0 -285
- package/lib/components/table-column-img/config.d.ts +0 -5
- package/lib/components/table-column-img/index.d.ts +0 -2
- package/lib/components/table-column-img/src/table-column-img.d.ts +0 -285
- package/lib/components/table-column-input/config.d.ts +0 -5
- package/lib/components/table-column-input/index.d.ts +0 -2
- package/lib/components/table-column-input/src/table-column-input.d.ts +0 -173
- package/lib/components/table-column-number/config.d.ts +0 -5
- package/lib/components/table-column-number/index.d.ts +0 -2
- package/lib/components/table-column-number/src/table-column-number.d.ts +0 -173
- package/lib/components/table-column-object/config.d.ts +0 -5
- package/lib/components/table-column-object/index.d.ts +0 -2
- package/lib/components/table-column-object/src/table-column-object.d.ts +0 -315
- package/lib/components/table-column-select/config.d.ts +0 -5
- package/lib/components/table-column-select/index.d.ts +0 -2
- package/lib/components/table-column-select/src/table-column-select.d.ts +0 -276
- package/lib/components/table-column-switch/config.d.ts +0 -5
- package/lib/components/table-column-switch/index.d.ts +0 -2
- package/lib/components/table-column-switch/src/table-column-switch.d.ts +0 -175
- package/lib/components/table-column-textarea/config.d.ts +0 -5
- package/lib/components/table-column-textarea/index.d.ts +0 -2
- package/lib/components/table-column-textarea/src/table-column-textarea.d.ts +0 -173
- package/lib/components/table-column-time-picker/config.d.ts +0 -5
- package/lib/components/table-column-time-picker/index.d.ts +0 -2
- package/lib/components/table-column-time-picker/src/table-column-time-picker.d.ts +0 -173
- package/lib/components/upload/index.d.ts +0 -2
- package/lib/components/upload/src/fast-upload.d.ts +0 -120
- package/lib/global.d.ts +0 -42
- package/lib/index.d.ts +0 -56
- package/lib/mixins/table-column.d.ts +0 -104
- package/lib/mixins/upload.d.ts +0 -15
- package/lib/model/cond.d.ts +0 -25
- package/lib/model/editComponentConfig.d.ts +0 -25
- package/lib/model/fastTableOption.d.ts +0 -355
- package/lib/model/filterComponentConfig.d.ts +0 -57
- package/lib/model/opt.d.ts +0 -20
- package/lib/model/order.d.ts +0 -7
- package/lib/model/pageQuery.d.ts +0 -23
- package/lib/model/query.d.ts +0 -33
- package/lib/model/rel.d.ts +0 -5
- package/lib/util/cache.d.ts +0 -17
- package/lib/util/dialog.d.ts +0 -49
- package/lib/util/escape.d.ts +0 -7
- package/lib/util/http.d.ts +0 -8
- package/lib/util/pick.d.ts +0 -14
- package/lib/util/util.d.ts +0 -252
- package/packages/assets/fonts/iconfont.css +0 -163
- package/packages/assets/fonts/iconfont.js +0 -1
- package/packages/assets/fonts/iconfont.ttf +0 -0
- package/packages/assets/fonts/iconfont.woff +0 -0
- package/packages/assets/fonts/iconfont.woff2 +0 -0
- package/packages/components/checkbox-group/index.js +0 -7
- package/packages/components/checkbox-group/src/fast-checkbox-group.vue +0 -83
- package/packages/components/content-dialog/index.js +0 -7
- package/packages/components/content-dialog/src/fast-cell-content.vue +0 -115
- package/packages/components/json-viewer/index.js +0 -7
- package/packages/components/json-viewer/src/fast-json-viewer.vue +0 -54
- package/packages/components/mapping.js +0 -95
- package/packages/components/object-picker/index.js +0 -7
- package/packages/components/object-picker/src/fast-object-picker.vue +0 -170
- package/packages/components/select/index.js +0 -7
- package/packages/components/select/src/fast-select.vue +0 -89
- package/packages/components/table/index.js +0 -7
- package/packages/components/table/src/RowConfirm.vue +0 -87
- package/packages/components/table/src/dynamic-filter-form.vue +0 -253
- package/packages/components/table/src/dynamic-filter-list.vue +0 -172
- package/packages/components/table/src/easy-filter.vue +0 -129
- package/packages/components/table/src/export-confirm.vue +0 -55
- package/packages/components/table/src/quick-filter-form.vue +0 -140
- package/packages/components/table/src/row-form.vue +0 -137
- package/packages/components/table/src/stored-filter-manager.vue +0 -240
- package/packages/components/table/src/stored-filter.vue +0 -180
- package/packages/components/table/src/table-head-cell.vue +0 -41
- package/packages/components/table/src/table.vue +0 -1309
- package/packages/components/table/src/util.js +0 -496
- package/packages/components/table-column/config.js +0 -64
- package/packages/components/table-column/index.js +0 -7
- package/packages/components/table-column/src/table-column.vue +0 -44
- package/packages/components/table-column-date-picker/config.js +0 -139
- package/packages/components/table-column-date-picker/index.js +0 -7
- package/packages/components/table-column-date-picker/src/table-column-date-picker.vue +0 -54
- package/packages/components/table-column-file/config.js +0 -83
- package/packages/components/table-column-file/index.js +0 -7
- package/packages/components/table-column-file/src/table-column-file.vue +0 -79
- package/packages/components/table-column-img/config.js +0 -83
- package/packages/components/table-column-img/index.js +0 -7
- package/packages/components/table-column-img/src/table-column-img.vue +0 -82
- package/packages/components/table-column-input/config.js +0 -77
- package/packages/components/table-column-input/index.js +0 -7
- package/packages/components/table-column-input/src/table-column-input.vue +0 -60
- package/packages/components/table-column-number/config.js +0 -89
- package/packages/components/table-column-number/index.js +0 -7
- package/packages/components/table-column-number/src/table-column-number.vue +0 -54
- package/packages/components/table-column-object/config.js +0 -66
- package/packages/components/table-column-object/index.js +0 -7
- package/packages/components/table-column-object/src/table-column-object.vue +0 -75
- package/packages/components/table-column-select/config.js +0 -66
- package/packages/components/table-column-select/index.js +0 -7
- package/packages/components/table-column-select/src/table-column-select.vue +0 -101
- package/packages/components/table-column-switch/config.js +0 -55
- package/packages/components/table-column-switch/index.js +0 -7
- package/packages/components/table-column-switch/src/table-column-switch.vue +0 -82
- package/packages/components/table-column-textarea/config.js +0 -77
- package/packages/components/table-column-textarea/index.js +0 -7
- package/packages/components/table-column-textarea/src/table-column-textarea.vue +0 -56
- package/packages/components/table-column-time-picker/config.js +0 -62
- package/packages/components/table-column-time-picker/index.js +0 -7
- package/packages/components/table-column-time-picker/src/table-column-time-picker.vue +0 -53
- package/packages/components/upload/index.js +0 -7
- package/packages/components/upload/src/fast-upload.vue +0 -272
- package/packages/global.d.ts +0 -42
- package/packages/index.js +0 -145
- package/packages/mixins/table-column.js +0 -133
- package/packages/mixins/upload.js +0 -14
- package/packages/model/cond.js +0 -65
- package/packages/model/editComponentConfig.js +0 -72
- package/packages/model/fastTableOption.js +0 -538
- package/packages/model/filterComponentConfig.js +0 -185
- package/packages/model/opt.js +0 -21
- package/packages/model/order.js +0 -16
- package/packages/model/pageQuery.js +0 -31
- package/packages/model/query.js +0 -93
- package/packages/model/rel.js +0 -5
- package/packages/style.scss +0 -5
- package/packages/util/cache.js +0 -92
- package/packages/util/dialog.js +0 -133
- package/packages/util/escape.js +0 -34
- package/packages/util/http.js +0 -18
- package/packages/util/pick.js +0 -92
- package/packages/util/util.js +0 -833
|
@@ -1,355 +0,0 @@
|
|
|
1
|
-
import { default as Vue } from 'vue';
|
|
2
|
-
export default FastTableOption;
|
|
3
|
-
declare class FastTableOption {
|
|
4
|
-
static $http: any;
|
|
5
|
-
static $router: any;
|
|
6
|
-
constructor({ context, id, title, showTitle, module, baseUrl, pageUrl, listUrl, insertUrl, batchInsertUrl, updateUrl, batchUpdateUrl, deleteUrl, batchDeleteUrl, uploadUrl, exportUrl, existsUrl, enableDblClickEdit, enableMulti, enableIndex, enableColumnFilter, enableFilterCache, lazyLoad, editType, queryable, insertable, updatable, deletable, exportable, idField, createTimeField, sortField, sortDesc, moreButtons, pagination, style, render, conds, condGroups, condExtra, beforeReset, beforeLoad, loadSuccess, loadFail, beforeToInsert, beforeInsert, insertSuccess, insertFail, beforeToUpdate, beforeUpdate, updateSuccess, updateFail, beforeDeleteTip, beforeDelete, deleteSuccess, deleteFail, beforeCancel, beforeExport, exportSuccess, exportFail }: {
|
|
7
|
-
context: any;
|
|
8
|
-
id?: string;
|
|
9
|
-
title?: string;
|
|
10
|
-
showTitle?: boolean;
|
|
11
|
-
module?: string;
|
|
12
|
-
baseUrl?: string;
|
|
13
|
-
pageUrl?: string;
|
|
14
|
-
listUrl?: string;
|
|
15
|
-
insertUrl?: string;
|
|
16
|
-
batchInsertUrl?: string;
|
|
17
|
-
updateUrl?: string;
|
|
18
|
-
batchUpdateUrl?: string;
|
|
19
|
-
deleteUrl?: string;
|
|
20
|
-
batchDeleteUrl?: string;
|
|
21
|
-
uploadUrl?: string;
|
|
22
|
-
exportUrl?: string;
|
|
23
|
-
existsUrl?: string;
|
|
24
|
-
enableDblClickEdit?: boolean;
|
|
25
|
-
enableMulti?: boolean;
|
|
26
|
-
enableIndex?: boolean;
|
|
27
|
-
enableColumnFilter?: boolean;
|
|
28
|
-
enableFilterCache?: boolean;
|
|
29
|
-
lazyLoad?: boolean;
|
|
30
|
-
editType?: string;
|
|
31
|
-
queryable?: boolean;
|
|
32
|
-
insertable?: boolean;
|
|
33
|
-
updatable?: boolean;
|
|
34
|
-
deletable?: boolean;
|
|
35
|
-
exportable?: boolean;
|
|
36
|
-
idField?: string;
|
|
37
|
-
createTimeField?: string;
|
|
38
|
-
sortField?: string;
|
|
39
|
-
sortDesc?: boolean;
|
|
40
|
-
moreButtons?: any[];
|
|
41
|
-
pagination?: {
|
|
42
|
-
layout: string;
|
|
43
|
-
'page-sizes': number[];
|
|
44
|
-
size: number;
|
|
45
|
-
};
|
|
46
|
-
style?: {};
|
|
47
|
-
render?: () => any[];
|
|
48
|
-
conds?: any[];
|
|
49
|
-
condGroups?: any[];
|
|
50
|
-
condExtra?: {};
|
|
51
|
-
beforeReset?: ({ query }: {
|
|
52
|
-
query: any;
|
|
53
|
-
}) => Promise<void>;
|
|
54
|
-
beforeLoad?: ({ query }: {
|
|
55
|
-
query: any;
|
|
56
|
-
}) => Promise<void>;
|
|
57
|
-
loadSuccess?: ({ query, res }: {
|
|
58
|
-
query: any;
|
|
59
|
-
res: any;
|
|
60
|
-
}) => Promise<any>;
|
|
61
|
-
loadFail?: ({ query, error }: {
|
|
62
|
-
query: any;
|
|
63
|
-
error: any;
|
|
64
|
-
}) => Promise<void>;
|
|
65
|
-
beforeToInsert?: (rows: any) => Promise<void>;
|
|
66
|
-
beforeInsert?: ({ fatRows, rows, editRows }: {
|
|
67
|
-
fatRows: any;
|
|
68
|
-
rows: any;
|
|
69
|
-
editRows: any;
|
|
70
|
-
}) => Promise<any>;
|
|
71
|
-
insertSuccess?: ({ fatRows, rows, editRows, res }: {
|
|
72
|
-
fatRows: any;
|
|
73
|
-
rows: any;
|
|
74
|
-
editRows: any;
|
|
75
|
-
res: any;
|
|
76
|
-
}) => Promise<void>;
|
|
77
|
-
insertFail?: ({ fatRows, rows, editRows, error }: {
|
|
78
|
-
fatRows: any;
|
|
79
|
-
rows: any;
|
|
80
|
-
editRows: any;
|
|
81
|
-
error: any;
|
|
82
|
-
}) => Promise<void>;
|
|
83
|
-
beforeToUpdate?: ({ fatRows, rows }: {
|
|
84
|
-
fatRows: any;
|
|
85
|
-
rows: any;
|
|
86
|
-
}) => Promise<void>;
|
|
87
|
-
beforeUpdate?: ({ fatRows, rows, editRows }: {
|
|
88
|
-
fatRows: any;
|
|
89
|
-
rows: any;
|
|
90
|
-
editRows: any;
|
|
91
|
-
}) => Promise<any>;
|
|
92
|
-
updateSuccess?: ({ fatRows, rows, editRows, res }: {
|
|
93
|
-
fatRows: any;
|
|
94
|
-
rows: any;
|
|
95
|
-
editRows: any;
|
|
96
|
-
res: any;
|
|
97
|
-
}) => Promise<void>;
|
|
98
|
-
updateFail?: ({ fatRows, rows, editRows, error }: {
|
|
99
|
-
fatRows: any;
|
|
100
|
-
rows: any;
|
|
101
|
-
editRows: any;
|
|
102
|
-
error: any;
|
|
103
|
-
}) => Promise<void>;
|
|
104
|
-
beforeDeleteTip?: ({ fatRows, rows }: {
|
|
105
|
-
fatRows: any;
|
|
106
|
-
rows: any;
|
|
107
|
-
}) => Promise<void>;
|
|
108
|
-
beforeDelete?: ({ fatRows, rows }: {
|
|
109
|
-
fatRows: any;
|
|
110
|
-
rows: any;
|
|
111
|
-
}) => Promise<any>;
|
|
112
|
-
deleteSuccess?: ({ fatRows, rows, res }: {
|
|
113
|
-
fatRows: any;
|
|
114
|
-
rows: any;
|
|
115
|
-
res: any;
|
|
116
|
-
}) => Promise<void>;
|
|
117
|
-
deleteFail?: ({ fatRows, rows, error }: {
|
|
118
|
-
fatRows: any;
|
|
119
|
-
rows: any;
|
|
120
|
-
error: any;
|
|
121
|
-
}) => Promise<void>;
|
|
122
|
-
beforeCancel?: ({ fatRows, rows, status }: {
|
|
123
|
-
fatRows: any;
|
|
124
|
-
rows: any;
|
|
125
|
-
status: any;
|
|
126
|
-
}) => Promise<void>;
|
|
127
|
-
beforeExport?: ({ columns, pageQuery }: {
|
|
128
|
-
columns: any;
|
|
129
|
-
pageQuery: any;
|
|
130
|
-
}) => Promise<any>;
|
|
131
|
-
exportSuccess?: ({ columns, pageQuery, data }: {
|
|
132
|
-
columns: any;
|
|
133
|
-
pageQuery: any;
|
|
134
|
-
data: any;
|
|
135
|
-
}) => Promise<void>;
|
|
136
|
-
exportFail?: ({ columns, pageQuery, error }: {
|
|
137
|
-
columns: any;
|
|
138
|
-
pageQuery: any;
|
|
139
|
-
error: any;
|
|
140
|
-
}) => Promise<void>;
|
|
141
|
-
});
|
|
142
|
-
/**
|
|
143
|
-
* 当前组件。一般配置当前组件(this), 这样钩子函数中可以使用this
|
|
144
|
-
* @type {Vue}
|
|
145
|
-
*/
|
|
146
|
-
context: typeof Vue;
|
|
147
|
-
ref: any;
|
|
148
|
-
/**
|
|
149
|
-
* 唯一id值。用于浏览器缓存时不同fast-table之间的隔离,不配置则内部默认生成
|
|
150
|
-
* @type {string}
|
|
151
|
-
*/
|
|
152
|
-
id: string;
|
|
153
|
-
/**
|
|
154
|
-
* 表格标题。配置后默认会显示在表格上方
|
|
155
|
-
* @type {string}
|
|
156
|
-
*/
|
|
157
|
-
title: string;
|
|
158
|
-
/**
|
|
159
|
-
* 是否显示标题。默认true
|
|
160
|
-
* @type {boolean}
|
|
161
|
-
*/
|
|
162
|
-
showTitle: boolean;
|
|
163
|
-
/**
|
|
164
|
-
* 表格Rest接口的根path。
|
|
165
|
-
* @type {string}
|
|
166
|
-
*/
|
|
167
|
-
baseUrl: string;
|
|
168
|
-
pageUrl: string;
|
|
169
|
-
listUrl: string;
|
|
170
|
-
insertUrl: string;
|
|
171
|
-
batchInsertUrl: string;
|
|
172
|
-
updateUrl: string;
|
|
173
|
-
batchUpdateUrl: string;
|
|
174
|
-
deleteUrl: string;
|
|
175
|
-
batchDeleteUrl: string;
|
|
176
|
-
uploadUrl: string;
|
|
177
|
-
exportUrl: string;
|
|
178
|
-
existsUrl: string;
|
|
179
|
-
enableDblClickEdit: boolean;
|
|
180
|
-
enableMulti: boolean;
|
|
181
|
-
enableIndex: boolean;
|
|
182
|
-
enableColumnFilter: boolean;
|
|
183
|
-
enableFilterCache: boolean;
|
|
184
|
-
lazyLoad: boolean;
|
|
185
|
-
editType: string;
|
|
186
|
-
queryable: boolean;
|
|
187
|
-
insertable: boolean;
|
|
188
|
-
updatable: boolean;
|
|
189
|
-
deletable: boolean;
|
|
190
|
-
exportable: boolean;
|
|
191
|
-
idField: string;
|
|
192
|
-
createTimeField: string;
|
|
193
|
-
parent: {
|
|
194
|
-
option: typeof FastTableOption;
|
|
195
|
-
map: ObjectConstructor;
|
|
196
|
-
};
|
|
197
|
-
sortField: any;
|
|
198
|
-
sortDesc: boolean;
|
|
199
|
-
moreButtons: any[];
|
|
200
|
-
pagination: {
|
|
201
|
-
layout: string;
|
|
202
|
-
'page-sizes': number[];
|
|
203
|
-
size: number;
|
|
204
|
-
};
|
|
205
|
-
style: {
|
|
206
|
-
flexHeight: boolean;
|
|
207
|
-
bodyRowHeight: string;
|
|
208
|
-
size: string;
|
|
209
|
-
formLabelWidth: string;
|
|
210
|
-
formLayout: any;
|
|
211
|
-
quickFilterSpan: number;
|
|
212
|
-
quickFilterGridGap: string;
|
|
213
|
-
};
|
|
214
|
-
render: () => any[];
|
|
215
|
-
conds: any[];
|
|
216
|
-
condGroups: any[];
|
|
217
|
-
condExtra: {};
|
|
218
|
-
beforeReset: ({ query }: {
|
|
219
|
-
query: any;
|
|
220
|
-
}) => Promise<void>;
|
|
221
|
-
beforeLoad: ({ query }: {
|
|
222
|
-
query: any;
|
|
223
|
-
}) => Promise<void>;
|
|
224
|
-
loadSuccess: ({ query, res }: {
|
|
225
|
-
query: any;
|
|
226
|
-
res: any;
|
|
227
|
-
}) => Promise<any>;
|
|
228
|
-
loadFail: ({ query, error }: {
|
|
229
|
-
query: any;
|
|
230
|
-
error: any;
|
|
231
|
-
}) => Promise<void>;
|
|
232
|
-
beforeInsert: ({ fatRows, rows, editRows }: {
|
|
233
|
-
fatRows: any;
|
|
234
|
-
rows: any;
|
|
235
|
-
editRows: any;
|
|
236
|
-
}) => Promise<any>;
|
|
237
|
-
insertSuccess: ({ fatRows, rows, editRows, res }: {
|
|
238
|
-
fatRows: any;
|
|
239
|
-
rows: any;
|
|
240
|
-
editRows: any;
|
|
241
|
-
res: any;
|
|
242
|
-
}) => Promise<void>;
|
|
243
|
-
insertFail: ({ fatRows, rows, editRows, error }: {
|
|
244
|
-
fatRows: any;
|
|
245
|
-
rows: any;
|
|
246
|
-
editRows: any;
|
|
247
|
-
error: any;
|
|
248
|
-
}) => Promise<void>;
|
|
249
|
-
beforeUpdate: ({ fatRows, rows, editRows }: {
|
|
250
|
-
fatRows: any;
|
|
251
|
-
rows: any;
|
|
252
|
-
editRows: any;
|
|
253
|
-
}) => Promise<any>;
|
|
254
|
-
updateSuccess: ({ fatRows, rows, editRows, res }: {
|
|
255
|
-
fatRows: any;
|
|
256
|
-
rows: any;
|
|
257
|
-
editRows: any;
|
|
258
|
-
res: any;
|
|
259
|
-
}) => Promise<void>;
|
|
260
|
-
updateFail: ({ fatRows, rows, editRows, error }: {
|
|
261
|
-
fatRows: any;
|
|
262
|
-
rows: any;
|
|
263
|
-
editRows: any;
|
|
264
|
-
error: any;
|
|
265
|
-
}) => Promise<void>;
|
|
266
|
-
beforeDelete: ({ fatRows, rows }: {
|
|
267
|
-
fatRows: any;
|
|
268
|
-
rows: any;
|
|
269
|
-
}) => Promise<any>;
|
|
270
|
-
deleteSuccess: ({ fatRows, rows, res }: {
|
|
271
|
-
fatRows: any;
|
|
272
|
-
rows: any;
|
|
273
|
-
res: any;
|
|
274
|
-
}) => Promise<void>;
|
|
275
|
-
deleteFail: ({ fatRows, rows, error }: {
|
|
276
|
-
fatRows: any;
|
|
277
|
-
rows: any;
|
|
278
|
-
error: any;
|
|
279
|
-
}) => Promise<void>;
|
|
280
|
-
beforeToInsert: (rows: any) => Promise<void>;
|
|
281
|
-
beforeToUpdate: ({ fatRows, rows }: {
|
|
282
|
-
fatRows: any;
|
|
283
|
-
rows: any;
|
|
284
|
-
}) => Promise<void>;
|
|
285
|
-
beforeDeleteTip: ({ fatRows, rows }: {
|
|
286
|
-
fatRows: any;
|
|
287
|
-
rows: any;
|
|
288
|
-
}) => Promise<void>;
|
|
289
|
-
beforeCancel: ({ fatRows, rows, status }: {
|
|
290
|
-
fatRows: any;
|
|
291
|
-
rows: any;
|
|
292
|
-
status: any;
|
|
293
|
-
}) => Promise<void>;
|
|
294
|
-
beforeExport: ({ columns, pageQuery }: {
|
|
295
|
-
columns: any;
|
|
296
|
-
pageQuery: any;
|
|
297
|
-
}) => Promise<any>;
|
|
298
|
-
exportSuccess: ({ columns, pageQuery, data }: {
|
|
299
|
-
columns: any;
|
|
300
|
-
pageQuery: any;
|
|
301
|
-
data: any;
|
|
302
|
-
}) => Promise<void>;
|
|
303
|
-
exportFail: ({ columns, pageQuery, error }: {
|
|
304
|
-
columns: any;
|
|
305
|
-
pageQuery: any;
|
|
306
|
-
error: any;
|
|
307
|
-
}) => Promise<void>;
|
|
308
|
-
/**
|
|
309
|
-
* 向内置条件组中增加条件
|
|
310
|
-
* @param cond
|
|
311
|
-
* @param repeatable 是否允许重复的col, 默认false, 即若多次添加相同col的条件, 只会保留最新的
|
|
312
|
-
*/
|
|
313
|
-
addCond(cond: any, repeatable?: boolean): void;
|
|
314
|
-
/**
|
|
315
|
-
* 从内置条件组中移除条件
|
|
316
|
-
* @param col
|
|
317
|
-
*/
|
|
318
|
-
removeCond(col: any): void;
|
|
319
|
-
/**
|
|
320
|
-
* 新增行, 返回promise
|
|
321
|
-
* @param fatRows
|
|
322
|
-
* @returns {Promise<void>|Promise<unknown>}
|
|
323
|
-
*/
|
|
324
|
-
_insertRows(fatRows: any): Promise<void> | Promise<unknown>;
|
|
325
|
-
/**
|
|
326
|
-
* 更新行
|
|
327
|
-
* @param fatRows
|
|
328
|
-
* @return 返回promise, 若成功更新则resolve; 若失败或取消, 则返回reject err或用户自定义的内容
|
|
329
|
-
*/
|
|
330
|
-
_updateRows(fatRows: any): Promise<any>;
|
|
331
|
-
/**
|
|
332
|
-
* 列表查询
|
|
333
|
-
* @param query 查询条件 Query类型
|
|
334
|
-
* @param config
|
|
335
|
-
*/
|
|
336
|
-
_list(query: any, config: any): any;
|
|
337
|
-
/**
|
|
338
|
-
* 导出
|
|
339
|
-
* @param columnConfigs
|
|
340
|
-
* @param pageQuery
|
|
341
|
-
*/
|
|
342
|
-
_exportData(columnConfigs: any, pageQuery: any): void;
|
|
343
|
-
/**
|
|
344
|
-
* 存在性判断
|
|
345
|
-
*/
|
|
346
|
-
_exist(conds?: any[]): Promise<any>;
|
|
347
|
-
/**
|
|
348
|
-
* 利用/list接口构造选项列表数据
|
|
349
|
-
* @param query
|
|
350
|
-
* @param valKey
|
|
351
|
-
* @param labelKey
|
|
352
|
-
* @return {Promise<*>}
|
|
353
|
-
*/
|
|
354
|
-
_buildSelectOptions(query: any, valKey: any, labelKey: any): Promise<any>;
|
|
355
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export default FilterComponentConfig;
|
|
2
|
-
/**
|
|
3
|
-
* 筛选组件配置
|
|
4
|
-
*/
|
|
5
|
-
declare class FilterComponentConfig {
|
|
6
|
-
/**
|
|
7
|
-
* 构造函数
|
|
8
|
-
* @param component 组件
|
|
9
|
-
* @param col 字段名
|
|
10
|
-
* @param opt 操作符
|
|
11
|
-
* @param val 值
|
|
12
|
-
* @param label 中文名
|
|
13
|
-
* @param props 组件对应的props
|
|
14
|
-
* @param condMapFn 条件获取过滤函数
|
|
15
|
-
*/
|
|
16
|
-
constructor({ component, col, opt, val, label, props, condMapFn, type }: {
|
|
17
|
-
component: any;
|
|
18
|
-
col: any;
|
|
19
|
-
opt?: "like";
|
|
20
|
-
val: any;
|
|
21
|
-
label: any;
|
|
22
|
-
props: any;
|
|
23
|
-
condMapFn?: (cond: any) => any[];
|
|
24
|
-
type: any;
|
|
25
|
-
});
|
|
26
|
-
component: any;
|
|
27
|
-
col: any;
|
|
28
|
-
opt: "like";
|
|
29
|
-
val: any;
|
|
30
|
-
label: any;
|
|
31
|
-
props: any;
|
|
32
|
-
defaultVal: any;
|
|
33
|
-
disabled: boolean;
|
|
34
|
-
type: any;
|
|
35
|
-
condMapFn: (cond: any) => any[];
|
|
36
|
-
index: number;
|
|
37
|
-
condMsg: string;
|
|
38
|
-
/**
|
|
39
|
-
* 值为默认值
|
|
40
|
-
*/
|
|
41
|
-
isDefaultVal(): boolean;
|
|
42
|
-
/**
|
|
43
|
-
* 此筛选项是否有效
|
|
44
|
-
* @returns {boolean}
|
|
45
|
-
*/
|
|
46
|
-
isEffective(): boolean;
|
|
47
|
-
/**
|
|
48
|
-
* 返回值是否变更
|
|
49
|
-
* @return {boolean}
|
|
50
|
-
*/
|
|
51
|
-
reset(): boolean;
|
|
52
|
-
getConds(): any[];
|
|
53
|
-
/**
|
|
54
|
-
* 更新条件的文本描述, 例如用于回显在dynamic-filter-list上
|
|
55
|
-
*/
|
|
56
|
-
updateCondMsg(): Promise<any>;
|
|
57
|
-
}
|
package/lib/model/opt.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export default Opt;
|
|
2
|
-
declare const Opt: Readonly<{
|
|
3
|
-
EQ: "=";
|
|
4
|
-
NE: "!=";
|
|
5
|
-
GT: ">";
|
|
6
|
-
GE: ">=";
|
|
7
|
-
LT: "<";
|
|
8
|
-
LE: "<=";
|
|
9
|
-
IN: "in";
|
|
10
|
-
NIN: "nin";
|
|
11
|
-
LIKE: "like";
|
|
12
|
-
LLIKE: "llike";
|
|
13
|
-
RLIKE: "rlike";
|
|
14
|
-
NLIKE: "nlike";
|
|
15
|
-
NULL: "null";
|
|
16
|
-
NNULL: "nnull";
|
|
17
|
-
EMPTY: "empty";
|
|
18
|
-
NEMPTY: "nempty";
|
|
19
|
-
BTW: "between";
|
|
20
|
-
}>;
|
package/lib/model/order.d.ts
DELETED
package/lib/model/pageQuery.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { default as Query } from './query.js';
|
|
2
|
-
export default PageQuery;
|
|
3
|
-
declare class PageQuery extends Query {
|
|
4
|
-
constructor(current?: number, size?: number);
|
|
5
|
-
current: number;
|
|
6
|
-
size: number;
|
|
7
|
-
/**
|
|
8
|
-
* 设置每页大小
|
|
9
|
-
* @param size
|
|
10
|
-
*/
|
|
11
|
-
setSize(size: any): this;
|
|
12
|
-
toJson(): {
|
|
13
|
-
current: number;
|
|
14
|
-
size: number;
|
|
15
|
-
cols: any[];
|
|
16
|
-
conds: import('./cond.js').default[];
|
|
17
|
-
orders: import('./order.js').default[];
|
|
18
|
-
distinct: boolean;
|
|
19
|
-
extra: {
|
|
20
|
-
[k: string]: any;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}
|
package/lib/model/query.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { default as Cond } from './cond.js';
|
|
2
|
-
import { default as Order } from './order.js';
|
|
3
|
-
export default Query;
|
|
4
|
-
declare class Query {
|
|
5
|
-
cols: any[];
|
|
6
|
-
conds: any[];
|
|
7
|
-
distinct: boolean;
|
|
8
|
-
orders: any[];
|
|
9
|
-
extra: {};
|
|
10
|
-
setCols(cols: any): this;
|
|
11
|
-
/**
|
|
12
|
-
* @param cond
|
|
13
|
-
* @param repeatable 是否允许重复的col, 默认true, 即若多次添加相同col的条件, 只会保留最新的
|
|
14
|
-
* @return {Query}
|
|
15
|
-
*/
|
|
16
|
-
addCond(cond: any, repeatable?: boolean): Query;
|
|
17
|
-
removeCond(col: any): this;
|
|
18
|
-
setConds(conds: any): this;
|
|
19
|
-
getCond(col: any): any;
|
|
20
|
-
setDistinct(): this;
|
|
21
|
-
addOrder(col: any, asc: any): this;
|
|
22
|
-
removeOrder(col: any): this;
|
|
23
|
-
getOrder(col: any): any;
|
|
24
|
-
toJson(): {
|
|
25
|
-
cols: any[];
|
|
26
|
-
conds: Cond[];
|
|
27
|
-
orders: Order[];
|
|
28
|
-
distinct: boolean;
|
|
29
|
-
extra: {
|
|
30
|
-
[k: string]: any;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
}
|
package/lib/model/rel.d.ts
DELETED
package/lib/util/cache.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 保存到localStorage中
|
|
3
|
-
* @param key 会拼接"FC:"前缀
|
|
4
|
-
* @param value any
|
|
5
|
-
* @param minutes 缓存有效期(null/undefined, 均表示不设置有效期)
|
|
6
|
-
*/
|
|
7
|
-
export function setToLocalStorage(key: any, value: any, minutes: any): void;
|
|
8
|
-
/**
|
|
9
|
-
* 从localStorage中获取
|
|
10
|
-
* @param key 会拼接"FC:"前缀
|
|
11
|
-
* @return {string}
|
|
12
|
-
*/
|
|
13
|
-
export function getFromLocalStorage(key: any): string;
|
|
14
|
-
export function deleteFromLocalStorage(key: any): void;
|
|
15
|
-
export function setToSessionStorage(key: any, value: any, minutes: any): void;
|
|
16
|
-
export function getFromSessionStorage(key: any): any;
|
|
17
|
-
export function deleteFromSessionStorage(key: any): void;
|
package/lib/util/dialog.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 动态打开弹窗。
|
|
3
|
-
* @param component 弹窗中的组件,可通过emit('ok', data)触发后续then, 或者 通过emit('cancel')取消弹窗触发catch
|
|
4
|
-
* @param props 传递给component的props
|
|
5
|
-
* @param dialogProps 传递给dialog的props, 其中还支持自定义的buttons数组,描述dialog按钮
|
|
6
|
-
* @example
|
|
7
|
-
* openDialog({
|
|
8
|
-
* component: YourComponent,
|
|
9
|
-
* props: {
|
|
10
|
-
* model: {...}
|
|
11
|
-
* },
|
|
12
|
-
* dialogProps: {
|
|
13
|
-
* width: '50%',
|
|
14
|
-
* // dialog支持的props...
|
|
15
|
-
* ...
|
|
16
|
-
* // 自定义的配置
|
|
17
|
-
* okClose: true, // 弹出组件如果emit ok后是否关闭dialog, 默认关闭
|
|
18
|
-
* handleOk: (param) => {}, // ok事件处理的回调函数(作用同then, 但当okClose=true时, then只会执行一次, 单handleOk可以多次执行)
|
|
19
|
-
* handleCancel: (param) => {}, // cancel事件处理回调函数
|
|
20
|
-
* handleCancel: () => {},
|
|
21
|
-
* buttons: [
|
|
22
|
-
* {
|
|
23
|
-
* text: '确定',
|
|
24
|
-
* type: 'primary',
|
|
25
|
-
* onClick: (component) => { // component是你传入的YourComponent组件实例
|
|
26
|
-
* if (!component.validate()) { // YourComponent里提供的校验方法
|
|
27
|
-
* ElMessage.warning('校验不通过!')
|
|
28
|
-
* return // 返回非Promise则不会关闭对话框
|
|
29
|
-
* }
|
|
30
|
-
* return Promise.resolve(component.getModel()) // YourComponent提供的getModel获取表单数据, 走resolve逻辑
|
|
31
|
-
* }
|
|
32
|
-
* },
|
|
33
|
-
* {
|
|
34
|
-
* text: '取消',
|
|
35
|
-
* onClick: (component) => {
|
|
36
|
-
* return Promise.reject() // 走catch逻辑
|
|
37
|
-
* }
|
|
38
|
-
* }
|
|
39
|
-
* // 其它自定义按钮
|
|
40
|
-
* ]
|
|
41
|
-
* }
|
|
42
|
-
* })
|
|
43
|
-
* @returns {Promise<unknown>} 可以通过返回的Promise.then和catch分别处理ok事件(可获取component抛出的参数)和弹窗关闭事件
|
|
44
|
-
*/
|
|
45
|
-
export function openDialog({ component, props, dialogProps }: {
|
|
46
|
-
component: any;
|
|
47
|
-
props?: {};
|
|
48
|
-
dialogProps?: {};
|
|
49
|
-
}): Promise<unknown>;
|
package/lib/util/escape.d.ts
DELETED
package/lib/util/http.d.ts
DELETED
package/lib/util/pick.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* pick弹窗选择表格数据
|
|
3
|
-
* @param option FastTableOption实例
|
|
4
|
-
* @param multiple 是否多选
|
|
5
|
-
* @param dialog 弹窗配置
|
|
6
|
-
* @returns {Promise<*>|*}
|
|
7
|
-
*/
|
|
8
|
-
export function pick({ option, multiple, dialog }: {
|
|
9
|
-
option: any;
|
|
10
|
-
multiple?: boolean;
|
|
11
|
-
dialog?: {
|
|
12
|
-
width: string;
|
|
13
|
-
};
|
|
14
|
-
}): Promise<any> | any;
|