cc1-form 1.1.26 → 1.1.28
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.css +1 -1
- package/dist/cc1-form.js +824 -784
- package/dist/cc1-form.umd.cjs +1 -1
- package/dist/components/TCurd/com/form/column.vue.d.ts +60 -50
- package/dist/components/TCurd/index.d.ts +47 -34
- package/dist/components/TCurd/index.vue.d.ts +170 -140
- package/dist/components/TCurd/indexType.d.ts +33 -36
- package/dist/utils/TFormConfig.d.ts +6 -2
- package/package.json +20 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import TSys from '../../utils/TSys';
|
|
2
2
|
import { type FormInstance } from 'element-plus';
|
|
3
|
-
import type { CurdConfig, CurdConfigColumn } from './indexType';
|
|
3
|
+
import type { CurdConfig, CurdConfigColumn, CurdFormColumn } from './indexType';
|
|
4
4
|
declare const EDialog: {
|
|
5
5
|
Insert: any;
|
|
6
6
|
Update: any;
|
|
@@ -43,7 +43,7 @@ export declare const curdConf: (props: {
|
|
|
43
43
|
data?: {
|
|
44
44
|
[x: string]: any;
|
|
45
45
|
label: string;
|
|
46
|
-
value:
|
|
46
|
+
value: any;
|
|
47
47
|
}[] | undefined;
|
|
48
48
|
dataApi?: ((param?: any) => import("./indexType").CurdSelectData[] | Promise<import("./indexType").CurdSelectData[]> | boolean) | undefined;
|
|
49
49
|
dataApiConfig?: {
|
|
@@ -63,13 +63,13 @@ export declare const curdConf: (props: {
|
|
|
63
63
|
list?: {
|
|
64
64
|
on?: Record<string, any> | undefined;
|
|
65
65
|
label?: string | undefined;
|
|
66
|
-
value?:
|
|
67
|
-
itemFields?:
|
|
68
|
-
[x: string]:
|
|
66
|
+
value?: any;
|
|
67
|
+
itemFields?: {
|
|
68
|
+
[x: string]: any;
|
|
69
69
|
label: string;
|
|
70
|
-
value:
|
|
71
|
-
}
|
|
72
|
-
inputWidth?:
|
|
70
|
+
value: any;
|
|
71
|
+
}[] | undefined;
|
|
72
|
+
inputWidth?: any;
|
|
73
73
|
inputClass?: string | undefined;
|
|
74
74
|
} | undefined;
|
|
75
75
|
radio?: {
|
|
@@ -78,7 +78,7 @@ export declare const curdConf: (props: {
|
|
|
78
78
|
data?: {
|
|
79
79
|
[x: string]: any;
|
|
80
80
|
label: string;
|
|
81
|
-
value:
|
|
81
|
+
value: any;
|
|
82
82
|
}[] | undefined;
|
|
83
83
|
dataApi?: ((param?: any) => import("./indexType").CurdSelectData[] | Promise<import("./indexType").CurdSelectData[]> | boolean) | undefined;
|
|
84
84
|
dataApiConfig?: {
|
|
@@ -92,12 +92,14 @@ export declare const curdConf: (props: {
|
|
|
92
92
|
labelWidth?: string | undefined;
|
|
93
93
|
width?: string | undefined;
|
|
94
94
|
span?: number | undefined;
|
|
95
|
+
spanCol?: boolean | undefined;
|
|
96
|
+
tipText?: string | undefined;
|
|
95
97
|
} | undefined;
|
|
96
98
|
type?: "input" | "select" | "switch" | "radio" | "checkbox" | "date" | "time" | "datetime" | "number" | "color" | "icon" | "slider" | "upload" | "editor" | "tree" | "tree-select" | "list" | undefined;
|
|
97
99
|
table?: {
|
|
98
100
|
table?: boolean | undefined;
|
|
99
|
-
minWidth?:
|
|
100
|
-
width?:
|
|
101
|
+
minWidth?: any;
|
|
102
|
+
width?: any;
|
|
101
103
|
fixed?: "left" | "right" | undefined;
|
|
102
104
|
align?: "center" | "left" | "right" | undefined;
|
|
103
105
|
showOverflowTooltip?: boolean | undefined;
|
|
@@ -121,7 +123,9 @@ export declare const curdConf: (props: {
|
|
|
121
123
|
show?: {
|
|
122
124
|
table?: boolean | undefined;
|
|
123
125
|
search?: boolean | ((data: any) => boolean) | undefined;
|
|
124
|
-
form?: boolean | ((data: any, type: typeof TSys.EDialog.Insert | typeof TSys.EDialog.Update | typeof TSys.
|
|
126
|
+
form?: boolean | ((data: any, type: typeof TSys.EDialog.Insert /** 待删除数据项集合 */ | typeof TSys.EDialog.Update | typeof TSys.
|
|
127
|
+
/** 删除操作loading */
|
|
128
|
+
EDialog /** 删除操作loading */.View) => boolean) | undefined;
|
|
125
129
|
} | undefined;
|
|
126
130
|
sort?: {
|
|
127
131
|
search?: number | undefined;
|
|
@@ -187,7 +191,7 @@ export declare const curdConf: (props: {
|
|
|
187
191
|
data?: {
|
|
188
192
|
[x: string]: any;
|
|
189
193
|
label: string;
|
|
190
|
-
value:
|
|
194
|
+
value: any;
|
|
191
195
|
}[] | undefined;
|
|
192
196
|
dataApi?: ((param?: any) => import("./indexType").CurdSelectData[] | Promise<import("./indexType").CurdSelectData[]> | boolean) | undefined;
|
|
193
197
|
dataApiConfig?: {
|
|
@@ -207,13 +211,13 @@ export declare const curdConf: (props: {
|
|
|
207
211
|
list?: {
|
|
208
212
|
on?: Record<string, any> | undefined;
|
|
209
213
|
label?: string | undefined;
|
|
210
|
-
value?:
|
|
211
|
-
itemFields?:
|
|
212
|
-
[x: string]:
|
|
214
|
+
value?: any;
|
|
215
|
+
itemFields?: {
|
|
216
|
+
[x: string]: any;
|
|
213
217
|
label: string;
|
|
214
|
-
value:
|
|
215
|
-
}
|
|
216
|
-
inputWidth?:
|
|
218
|
+
value: any;
|
|
219
|
+
}[] | undefined;
|
|
220
|
+
inputWidth?: any;
|
|
217
221
|
inputClass?: string | undefined;
|
|
218
222
|
} | undefined;
|
|
219
223
|
radio?: {
|
|
@@ -222,7 +226,7 @@ export declare const curdConf: (props: {
|
|
|
222
226
|
data?: {
|
|
223
227
|
[x: string]: any;
|
|
224
228
|
label: string;
|
|
225
|
-
value:
|
|
229
|
+
value: any;
|
|
226
230
|
}[] | undefined;
|
|
227
231
|
dataApi?: ((param?: any) => import("./indexType").CurdSelectData[] | Promise<import("./indexType").CurdSelectData[]> | boolean) | undefined;
|
|
228
232
|
dataApiConfig?: {
|
|
@@ -236,12 +240,14 @@ export declare const curdConf: (props: {
|
|
|
236
240
|
labelWidth?: string | undefined;
|
|
237
241
|
width?: string | undefined;
|
|
238
242
|
span?: number | undefined;
|
|
243
|
+
spanCol?: boolean | undefined;
|
|
244
|
+
tipText?: string | undefined;
|
|
239
245
|
} | undefined;
|
|
240
246
|
type?: "input" | "select" | "switch" | "radio" | "checkbox" | "date" | "time" | "datetime" | "number" | "color" | "icon" | "slider" | "upload" | "editor" | "tree" | "tree-select" | "list" | undefined;
|
|
241
247
|
table?: {
|
|
242
248
|
table?: boolean | undefined;
|
|
243
|
-
minWidth?:
|
|
244
|
-
width?:
|
|
249
|
+
minWidth?: any;
|
|
250
|
+
width?: any;
|
|
245
251
|
fixed?: "left" | "right" | undefined;
|
|
246
252
|
align?: "center" | "left" | "right" | undefined;
|
|
247
253
|
showOverflowTooltip?: boolean | undefined;
|
|
@@ -265,7 +271,9 @@ export declare const curdConf: (props: {
|
|
|
265
271
|
show?: {
|
|
266
272
|
table?: boolean | undefined;
|
|
267
273
|
search?: boolean | ((data: any) => boolean) | undefined;
|
|
268
|
-
form?: boolean | ((data: any, type: typeof TSys.EDialog.Insert | typeof TSys.EDialog.Update | typeof TSys.
|
|
274
|
+
form?: boolean | ((data: any, type: typeof TSys.EDialog.Insert /** 待删除数据项集合 */ | typeof TSys.EDialog.Update | typeof TSys.
|
|
275
|
+
/** 删除操作loading */
|
|
276
|
+
EDialog /** 删除操作loading */.View) => boolean) | undefined;
|
|
269
277
|
} | undefined;
|
|
270
278
|
sort?: {
|
|
271
279
|
search?: number | undefined;
|
|
@@ -348,7 +356,7 @@ export declare const curdConf: (props: {
|
|
|
348
356
|
data?: {
|
|
349
357
|
[x: string]: any;
|
|
350
358
|
label: string;
|
|
351
|
-
value:
|
|
359
|
+
value: any;
|
|
352
360
|
}[] | undefined;
|
|
353
361
|
dataApi?: ((param?: any) => import("./indexType").CurdSelectData[] | Promise<import("./indexType").CurdSelectData[]> | boolean) | undefined;
|
|
354
362
|
dataApiConfig?: {
|
|
@@ -368,13 +376,13 @@ export declare const curdConf: (props: {
|
|
|
368
376
|
list?: {
|
|
369
377
|
on?: Record<string, any> | undefined;
|
|
370
378
|
label?: string | undefined;
|
|
371
|
-
value?:
|
|
372
|
-
itemFields?:
|
|
373
|
-
[x: string]:
|
|
379
|
+
value?: any;
|
|
380
|
+
itemFields?: {
|
|
381
|
+
[x: string]: any;
|
|
374
382
|
label: string;
|
|
375
|
-
value:
|
|
376
|
-
}
|
|
377
|
-
inputWidth?:
|
|
383
|
+
value: any;
|
|
384
|
+
}[] | undefined;
|
|
385
|
+
inputWidth?: any;
|
|
378
386
|
inputClass?: string | undefined;
|
|
379
387
|
} | undefined;
|
|
380
388
|
radio?: {
|
|
@@ -383,7 +391,7 @@ export declare const curdConf: (props: {
|
|
|
383
391
|
data?: {
|
|
384
392
|
[x: string]: any;
|
|
385
393
|
label: string;
|
|
386
|
-
value:
|
|
394
|
+
value: any;
|
|
387
395
|
}[] | undefined;
|
|
388
396
|
dataApi?: ((param?: any) => import("./indexType").CurdSelectData[] | Promise<import("./indexType").CurdSelectData[]> | boolean) | undefined;
|
|
389
397
|
dataApiConfig?: {
|
|
@@ -397,12 +405,14 @@ export declare const curdConf: (props: {
|
|
|
397
405
|
labelWidth?: string | undefined;
|
|
398
406
|
width?: string | undefined;
|
|
399
407
|
span?: number | undefined;
|
|
408
|
+
spanCol?: boolean | undefined;
|
|
409
|
+
tipText?: string | undefined;
|
|
400
410
|
} | undefined;
|
|
401
411
|
type?: "input" | "select" | "switch" | "radio" | "checkbox" | "date" | "time" | "datetime" | "number" | "color" | "icon" | "slider" | "upload" | "editor" | "tree" | "tree-select" | "list" | undefined;
|
|
402
412
|
table?: {
|
|
403
413
|
table?: boolean | undefined;
|
|
404
|
-
minWidth?:
|
|
405
|
-
width?:
|
|
414
|
+
minWidth?: any;
|
|
415
|
+
width?: any;
|
|
406
416
|
fixed?: "left" | "right" | undefined;
|
|
407
417
|
align?: "center" | "left" | "right" | undefined;
|
|
408
418
|
showOverflowTooltip?: boolean | undefined;
|
|
@@ -426,7 +436,9 @@ export declare const curdConf: (props: {
|
|
|
426
436
|
show?: {
|
|
427
437
|
table?: boolean | undefined;
|
|
428
438
|
search?: boolean | ((data: any) => boolean) | undefined;
|
|
429
|
-
form?: boolean | ((data: any, type: typeof TSys.EDialog.Insert | typeof TSys.EDialog.Update | typeof TSys.
|
|
439
|
+
form?: boolean | ((data: any, type: typeof TSys.EDialog.Insert /** 待删除数据项集合 */ | typeof TSys.EDialog.Update | typeof TSys.
|
|
440
|
+
/** 删除操作loading */
|
|
441
|
+
EDialog /** 删除操作loading */.View) => boolean) | undefined;
|
|
430
442
|
} | undefined;
|
|
431
443
|
sort?: {
|
|
432
444
|
search?: number | undefined;
|
|
@@ -469,6 +481,7 @@ export declare const curdConf: (props: {
|
|
|
469
481
|
initApiData: (tag: "update" | "init") => Promise<boolean>;
|
|
470
482
|
initCurdConfig: () => void;
|
|
471
483
|
initColumnOptions: () => void;
|
|
484
|
+
getColumnSpan: (column: CurdFormColumn, itemConfig: CurdFormColumn[]) => number | undefined;
|
|
472
485
|
initColumnForm: () => void;
|
|
473
486
|
};
|
|
474
487
|
switchConfirmRef: import("vue").Ref<any, any>;
|