cc1-form 1.1.22 → 1.1.24
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/dist/cc1-form.js +1000 -898
- package/dist/cc1-form.umd.cjs +1 -1
- package/dist/components/TCurd/com/form/column.vue.d.ts +92 -11
- package/dist/components/TCurd/com/form/list.vue.d.ts +2 -2
- package/dist/components/TCurd/index.d.ts +61 -7
- package/dist/components/TCurd/index.vue.d.ts +280 -54
- package/dist/components/TCurd/indexType.d.ts +70 -40
- package/dist/components/TCurd/tableColumn.vue.d.ts +4 -0
- package/dist/index.d.ts +2 -1
- package/dist/utils/TFormConfig.d.ts +10 -0
- package/dist/utils/TFormI18n.d.ts +2 -0
- package/dist/utils/TSys.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import TSys from '../../utils/TSys';
|
|
1
2
|
import { type FormInstance } from 'element-plus';
|
|
2
3
|
import type { CurdConfig, CurdConfigColumn } from './indexType';
|
|
3
4
|
declare const EDialog: {
|
|
4
5
|
Insert: any;
|
|
5
6
|
Update: any;
|
|
7
|
+
View: any;
|
|
6
8
|
Remove: any;
|
|
7
9
|
};
|
|
8
10
|
export declare const curdConf: (props: {
|
|
@@ -70,6 +72,21 @@ export declare const curdConf: (props: {
|
|
|
70
72
|
inputWidth?: string | undefined;
|
|
71
73
|
inputClass?: string | undefined;
|
|
72
74
|
} | undefined;
|
|
75
|
+
radio?: {
|
|
76
|
+
[x: string]: any;
|
|
77
|
+
on?: any;
|
|
78
|
+
data?: {
|
|
79
|
+
[x: string]: any;
|
|
80
|
+
label: string;
|
|
81
|
+
value: string;
|
|
82
|
+
}[] | undefined;
|
|
83
|
+
dataApi?: ((param?: any) => import("./indexType").CurdSelectData[] | Promise<import("./indexType").CurdSelectData[]> | boolean) | undefined;
|
|
84
|
+
dataApiConfig?: {
|
|
85
|
+
once: boolean;
|
|
86
|
+
init: boolean;
|
|
87
|
+
update: boolean;
|
|
88
|
+
} | undefined;
|
|
89
|
+
} | undefined;
|
|
73
90
|
} | undefined;
|
|
74
91
|
form?: {
|
|
75
92
|
labelWidth?: string | undefined;
|
|
@@ -82,7 +99,7 @@ export declare const curdConf: (props: {
|
|
|
82
99
|
minWidth?: string | undefined;
|
|
83
100
|
width?: string | undefined;
|
|
84
101
|
fixed?: "left" | "right" | undefined;
|
|
85
|
-
align?: "
|
|
102
|
+
align?: "center" | "left" | "right" | undefined;
|
|
86
103
|
showOverflowTooltip?: boolean | undefined;
|
|
87
104
|
format?: ((data: any) => any) | undefined;
|
|
88
105
|
click?: {
|
|
@@ -104,7 +121,7 @@ export declare const curdConf: (props: {
|
|
|
104
121
|
show?: {
|
|
105
122
|
table?: boolean | undefined;
|
|
106
123
|
search?: boolean | ((data: any) => boolean) | undefined;
|
|
107
|
-
form?: boolean | ((data: any) => boolean) | undefined;
|
|
124
|
+
form?: boolean | ((data: any, type: typeof TSys.EDialog.Insert | typeof TSys.EDialog.Update | typeof TSys.EDialog.View) => boolean) | undefined;
|
|
108
125
|
} | undefined;
|
|
109
126
|
sort?: {
|
|
110
127
|
search?: number | undefined;
|
|
@@ -199,6 +216,21 @@ export declare const curdConf: (props: {
|
|
|
199
216
|
inputWidth?: string | undefined;
|
|
200
217
|
inputClass?: string | undefined;
|
|
201
218
|
} | undefined;
|
|
219
|
+
radio?: {
|
|
220
|
+
[x: string]: any;
|
|
221
|
+
on?: any;
|
|
222
|
+
data?: {
|
|
223
|
+
[x: string]: any;
|
|
224
|
+
label: string;
|
|
225
|
+
value: string;
|
|
226
|
+
}[] | undefined;
|
|
227
|
+
dataApi?: ((param?: any) => import("./indexType").CurdSelectData[] | Promise<import("./indexType").CurdSelectData[]> | boolean) | undefined;
|
|
228
|
+
dataApiConfig?: {
|
|
229
|
+
once: boolean;
|
|
230
|
+
init: boolean;
|
|
231
|
+
update: boolean;
|
|
232
|
+
} | undefined;
|
|
233
|
+
} | undefined;
|
|
202
234
|
} | undefined;
|
|
203
235
|
form?: {
|
|
204
236
|
labelWidth?: string | undefined;
|
|
@@ -211,7 +243,7 @@ export declare const curdConf: (props: {
|
|
|
211
243
|
minWidth?: string | undefined;
|
|
212
244
|
width?: string | undefined;
|
|
213
245
|
fixed?: "left" | "right" | undefined;
|
|
214
|
-
align?: "
|
|
246
|
+
align?: "center" | "left" | "right" | undefined;
|
|
215
247
|
showOverflowTooltip?: boolean | undefined;
|
|
216
248
|
format?: ((data: any) => any) | undefined;
|
|
217
249
|
click?: {
|
|
@@ -233,7 +265,7 @@ export declare const curdConf: (props: {
|
|
|
233
265
|
show?: {
|
|
234
266
|
table?: boolean | undefined;
|
|
235
267
|
search?: boolean | ((data: any) => boolean) | undefined;
|
|
236
|
-
form?: boolean | ((data: any) => boolean) | undefined;
|
|
268
|
+
form?: boolean | ((data: any, type: typeof TSys.EDialog.Insert | typeof TSys.EDialog.Update | typeof TSys.EDialog.View) => boolean) | undefined;
|
|
237
269
|
} | undefined;
|
|
238
270
|
sort?: {
|
|
239
271
|
search?: number | undefined;
|
|
@@ -268,7 +300,12 @@ export declare const curdConf: (props: {
|
|
|
268
300
|
show: boolean;
|
|
269
301
|
showContent: boolean;
|
|
270
302
|
loading: boolean;
|
|
271
|
-
type:
|
|
303
|
+
type: {
|
|
304
|
+
Insert: any;
|
|
305
|
+
Update: any;
|
|
306
|
+
View: any;
|
|
307
|
+
Remove: any;
|
|
308
|
+
};
|
|
272
309
|
form: any;
|
|
273
310
|
formDefault: any;
|
|
274
311
|
formColumn: {
|
|
@@ -331,6 +368,21 @@ export declare const curdConf: (props: {
|
|
|
331
368
|
inputWidth?: string | undefined;
|
|
332
369
|
inputClass?: string | undefined;
|
|
333
370
|
} | undefined;
|
|
371
|
+
radio?: {
|
|
372
|
+
[x: string]: any;
|
|
373
|
+
on?: any;
|
|
374
|
+
data?: {
|
|
375
|
+
[x: string]: any;
|
|
376
|
+
label: string;
|
|
377
|
+
value: string;
|
|
378
|
+
}[] | undefined;
|
|
379
|
+
dataApi?: ((param?: any) => import("./indexType").CurdSelectData[] | Promise<import("./indexType").CurdSelectData[]> | boolean) | undefined;
|
|
380
|
+
dataApiConfig?: {
|
|
381
|
+
once: boolean;
|
|
382
|
+
init: boolean;
|
|
383
|
+
update: boolean;
|
|
384
|
+
} | undefined;
|
|
385
|
+
} | undefined;
|
|
334
386
|
} | undefined;
|
|
335
387
|
form?: {
|
|
336
388
|
labelWidth?: string | undefined;
|
|
@@ -343,7 +395,7 @@ export declare const curdConf: (props: {
|
|
|
343
395
|
minWidth?: string | undefined;
|
|
344
396
|
width?: string | undefined;
|
|
345
397
|
fixed?: "left" | "right" | undefined;
|
|
346
|
-
align?: "
|
|
398
|
+
align?: "center" | "left" | "right" | undefined;
|
|
347
399
|
showOverflowTooltip?: boolean | undefined;
|
|
348
400
|
format?: ((data: any) => any) | undefined;
|
|
349
401
|
click?: {
|
|
@@ -365,7 +417,7 @@ export declare const curdConf: (props: {
|
|
|
365
417
|
show?: {
|
|
366
418
|
table?: boolean | undefined;
|
|
367
419
|
search?: boolean | ((data: any) => boolean) | undefined;
|
|
368
|
-
form?: boolean | ((data: any) => boolean) | undefined;
|
|
420
|
+
form?: boolean | ((data: any, type: typeof TSys.EDialog.Insert | typeof TSys.EDialog.Update | typeof TSys.EDialog.View) => boolean) | undefined;
|
|
369
421
|
} | undefined;
|
|
370
422
|
sort?: {
|
|
371
423
|
search?: number | undefined;
|
|
@@ -381,6 +433,7 @@ export declare const curdConf: (props: {
|
|
|
381
433
|
data: any;
|
|
382
434
|
getApiData: (form: any) => any;
|
|
383
435
|
};
|
|
436
|
+
view: {};
|
|
384
437
|
open: (type: typeof EDialog, item?: any) => void;
|
|
385
438
|
submit: () => void;
|
|
386
439
|
close: () => void;
|
|
@@ -412,4 +465,5 @@ export declare const curdConf: (props: {
|
|
|
412
465
|
switchConfirmRef: import("vue").Ref<any, any>;
|
|
413
466
|
ruleFormRef: import("vue").Ref<FormInstance | undefined, FormInstance | undefined>;
|
|
414
467
|
};
|
|
468
|
+
export type curdConfType = ReturnType<typeof curdConf>;
|
|
415
469
|
export {};
|