cc1-form 1.2.17 → 1.2.18
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 +597 -524
- package/dist/cc1-form.umd.cjs +1 -1
- package/dist/components/TCurd/com/form/column.vue.d.ts +49 -7
- package/dist/components/TCurd/formColumn.vue.d.ts +35 -5
- package/dist/components/TCurd/index.d.ts +37 -5
- package/dist/components/TCurd/index.vue.d.ts +129 -11
- package/dist/components/TCurd/indexType.d.ts +11 -1
- package/dist/utils/TObj.d.ts +16 -0
- package/package.json +1 -1
|
@@ -9,6 +9,8 @@ declare const EDialog: {
|
|
|
9
9
|
};
|
|
10
10
|
export declare const curdConf: (props: {
|
|
11
11
|
option: CurdConfig;
|
|
12
|
+
form?: any;
|
|
13
|
+
searchForm?: any;
|
|
12
14
|
}) => {
|
|
13
15
|
conf: {
|
|
14
16
|
option: {
|
|
@@ -454,7 +456,13 @@ export declare const curdConf: (props: {
|
|
|
454
456
|
show?: boolean | undefined;
|
|
455
457
|
} | undefined;
|
|
456
458
|
} | undefined;
|
|
457
|
-
rules?:
|
|
459
|
+
rules?: boolean | {
|
|
460
|
+
[x: string]: any;
|
|
461
|
+
required?: boolean | undefined;
|
|
462
|
+
message?: string | undefined;
|
|
463
|
+
trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
|
|
464
|
+
validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
|
|
465
|
+
}[] | undefined;
|
|
458
466
|
text?: {
|
|
459
467
|
search?: {
|
|
460
468
|
label?: string | undefined;
|
|
@@ -923,7 +931,13 @@ export declare const curdConf: (props: {
|
|
|
923
931
|
show?: boolean | undefined;
|
|
924
932
|
} | undefined;
|
|
925
933
|
} | undefined;
|
|
926
|
-
rules?:
|
|
934
|
+
rules?: boolean | {
|
|
935
|
+
[x: string]: any;
|
|
936
|
+
required?: boolean | undefined;
|
|
937
|
+
message?: string | undefined;
|
|
938
|
+
trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
|
|
939
|
+
validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
|
|
940
|
+
}[] | undefined;
|
|
927
941
|
text?: {
|
|
928
942
|
search?: {
|
|
929
943
|
label?: string | undefined;
|
|
@@ -1347,7 +1361,13 @@ export declare const curdConf: (props: {
|
|
|
1347
1361
|
show?: boolean | undefined;
|
|
1348
1362
|
} | undefined;
|
|
1349
1363
|
} | undefined;
|
|
1350
|
-
rules?:
|
|
1364
|
+
rules?: boolean | {
|
|
1365
|
+
[x: string]: any;
|
|
1366
|
+
required?: boolean | undefined;
|
|
1367
|
+
message?: string | undefined;
|
|
1368
|
+
trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
|
|
1369
|
+
validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
|
|
1370
|
+
}[] | undefined;
|
|
1351
1371
|
text?: {
|
|
1352
1372
|
search?: {
|
|
1353
1373
|
label?: string | undefined;
|
|
@@ -1793,7 +1813,13 @@ export declare const curdConf: (props: {
|
|
|
1793
1813
|
show?: boolean | undefined;
|
|
1794
1814
|
} | undefined;
|
|
1795
1815
|
} | undefined;
|
|
1796
|
-
rules?:
|
|
1816
|
+
rules?: boolean | {
|
|
1817
|
+
[x: string]: any;
|
|
1818
|
+
required?: boolean | undefined;
|
|
1819
|
+
message?: string | undefined;
|
|
1820
|
+
trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
|
|
1821
|
+
validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
|
|
1822
|
+
}[] | undefined;
|
|
1797
1823
|
text?: {
|
|
1798
1824
|
search?: {
|
|
1799
1825
|
label?: string | undefined;
|
|
@@ -2252,7 +2278,13 @@ export declare const curdConf: (props: {
|
|
|
2252
2278
|
show?: boolean | undefined;
|
|
2253
2279
|
} | undefined;
|
|
2254
2280
|
} | undefined;
|
|
2255
|
-
rules?:
|
|
2281
|
+
rules?: boolean | {
|
|
2282
|
+
[x: string]: any;
|
|
2283
|
+
required?: boolean | undefined;
|
|
2284
|
+
message?: string | undefined;
|
|
2285
|
+
trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
|
|
2286
|
+
validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
|
|
2287
|
+
}[] | undefined;
|
|
2256
2288
|
text?: {
|
|
2257
2289
|
search?: {
|
|
2258
2290
|
label?: string | undefined;
|
|
@@ -461,7 +461,13 @@ declare const conf: {
|
|
|
461
461
|
show?: boolean | undefined;
|
|
462
462
|
} | undefined;
|
|
463
463
|
} | undefined;
|
|
464
|
-
rules?:
|
|
464
|
+
rules?: boolean | {
|
|
465
|
+
[x: string]: any;
|
|
466
|
+
required?: boolean | undefined;
|
|
467
|
+
message?: string | undefined;
|
|
468
|
+
trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
|
|
469
|
+
validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
|
|
470
|
+
}[] | undefined;
|
|
465
471
|
text?: {
|
|
466
472
|
search?: {
|
|
467
473
|
label?: string | undefined;
|
|
@@ -930,7 +936,13 @@ declare const conf: {
|
|
|
930
936
|
show?: boolean | undefined;
|
|
931
937
|
} | undefined;
|
|
932
938
|
} | undefined;
|
|
933
|
-
rules?:
|
|
939
|
+
rules?: boolean | {
|
|
940
|
+
[x: string]: any;
|
|
941
|
+
required?: boolean | undefined;
|
|
942
|
+
message?: string | undefined;
|
|
943
|
+
trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
|
|
944
|
+
validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
|
|
945
|
+
}[] | undefined;
|
|
934
946
|
text?: {
|
|
935
947
|
search?: {
|
|
936
948
|
label?: string | undefined;
|
|
@@ -1354,7 +1366,13 @@ declare const conf: {
|
|
|
1354
1366
|
show?: boolean | undefined;
|
|
1355
1367
|
} | undefined;
|
|
1356
1368
|
} | undefined;
|
|
1357
|
-
rules?:
|
|
1369
|
+
rules?: boolean | {
|
|
1370
|
+
[x: string]: any;
|
|
1371
|
+
required?: boolean | undefined;
|
|
1372
|
+
message?: string | undefined;
|
|
1373
|
+
trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
|
|
1374
|
+
validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
|
|
1375
|
+
}[] | undefined;
|
|
1358
1376
|
text?: {
|
|
1359
1377
|
search?: {
|
|
1360
1378
|
label?: string | undefined;
|
|
@@ -1800,7 +1818,13 @@ declare const conf: {
|
|
|
1800
1818
|
show?: boolean | undefined;
|
|
1801
1819
|
} | undefined;
|
|
1802
1820
|
} | undefined;
|
|
1803
|
-
rules?:
|
|
1821
|
+
rules?: boolean | {
|
|
1822
|
+
[x: string]: any;
|
|
1823
|
+
required?: boolean | undefined;
|
|
1824
|
+
message?: string | undefined;
|
|
1825
|
+
trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
|
|
1826
|
+
validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
|
|
1827
|
+
}[] | undefined;
|
|
1804
1828
|
text?: {
|
|
1805
1829
|
search?: {
|
|
1806
1830
|
label?: string | undefined;
|
|
@@ -2259,7 +2283,13 @@ declare const conf: {
|
|
|
2259
2283
|
show?: boolean | undefined;
|
|
2260
2284
|
} | undefined;
|
|
2261
2285
|
} | undefined;
|
|
2262
|
-
rules?:
|
|
2286
|
+
rules?: boolean | {
|
|
2287
|
+
[x: string]: any;
|
|
2288
|
+
required?: boolean | undefined;
|
|
2289
|
+
message?: string | undefined;
|
|
2290
|
+
trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
|
|
2291
|
+
validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
|
|
2292
|
+
}[] | undefined;
|
|
2263
2293
|
text?: {
|
|
2264
2294
|
search?: {
|
|
2265
2295
|
label?: string | undefined;
|
|
@@ -2734,7 +2764,13 @@ declare var __VLS_1: {}, __VLS_7: {
|
|
|
2734
2764
|
show?: boolean | undefined;
|
|
2735
2765
|
} | undefined;
|
|
2736
2766
|
} | undefined;
|
|
2737
|
-
rules?:
|
|
2767
|
+
rules?: boolean | {
|
|
2768
|
+
[x: string]: any;
|
|
2769
|
+
required?: boolean | undefined;
|
|
2770
|
+
message?: string | undefined;
|
|
2771
|
+
trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
|
|
2772
|
+
validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
|
|
2773
|
+
}[] | undefined;
|
|
2738
2774
|
text?: {
|
|
2739
2775
|
search?: {
|
|
2740
2776
|
label?: string | undefined;
|
|
@@ -2806,6 +2842,18 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
2806
2842
|
option: {
|
|
2807
2843
|
default: CurdConfig;
|
|
2808
2844
|
};
|
|
2845
|
+
/**
|
|
2846
|
+
* 表单值对象
|
|
2847
|
+
*/
|
|
2848
|
+
form: {
|
|
2849
|
+
default: any;
|
|
2850
|
+
};
|
|
2851
|
+
/**
|
|
2852
|
+
* 搜索栏值对象
|
|
2853
|
+
*/
|
|
2854
|
+
searchForm: {
|
|
2855
|
+
default: any;
|
|
2856
|
+
};
|
|
2809
2857
|
}>, {
|
|
2810
2858
|
TFormI18n: typeof TFormI18n;
|
|
2811
2859
|
SwitchConfirm: typeof SwitchConfirm;
|
|
@@ -2839,8 +2887,22 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
2839
2887
|
option: {
|
|
2840
2888
|
default: CurdConfig;
|
|
2841
2889
|
};
|
|
2890
|
+
/**
|
|
2891
|
+
* 表单值对象
|
|
2892
|
+
*/
|
|
2893
|
+
form: {
|
|
2894
|
+
default: any;
|
|
2895
|
+
};
|
|
2896
|
+
/**
|
|
2897
|
+
* 搜索栏值对象
|
|
2898
|
+
*/
|
|
2899
|
+
searchForm: {
|
|
2900
|
+
default: any;
|
|
2901
|
+
};
|
|
2842
2902
|
}>> & Readonly<{}>, {
|
|
2843
2903
|
option: CurdConfig<any>;
|
|
2904
|
+
form: any;
|
|
2905
|
+
searchForm: any;
|
|
2844
2906
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2845
2907
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2846
2908
|
/**
|
|
@@ -2849,6 +2911,18 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
2849
2911
|
option: {
|
|
2850
2912
|
default: CurdConfig;
|
|
2851
2913
|
};
|
|
2914
|
+
/**
|
|
2915
|
+
* 表单值对象
|
|
2916
|
+
*/
|
|
2917
|
+
form: {
|
|
2918
|
+
default: any;
|
|
2919
|
+
};
|
|
2920
|
+
/**
|
|
2921
|
+
* 搜索栏值对象
|
|
2922
|
+
*/
|
|
2923
|
+
searchForm: {
|
|
2924
|
+
default: any;
|
|
2925
|
+
};
|
|
2852
2926
|
}>, {
|
|
2853
2927
|
conf: {
|
|
2854
2928
|
option: {
|
|
@@ -3294,7 +3368,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
3294
3368
|
show?: boolean | undefined;
|
|
3295
3369
|
} | undefined;
|
|
3296
3370
|
} | undefined;
|
|
3297
|
-
rules?:
|
|
3371
|
+
rules?: boolean | {
|
|
3372
|
+
[x: string]: any;
|
|
3373
|
+
required?: boolean | undefined;
|
|
3374
|
+
message?: string | undefined;
|
|
3375
|
+
trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
|
|
3376
|
+
validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
|
|
3377
|
+
}[] | undefined;
|
|
3298
3378
|
text?: {
|
|
3299
3379
|
search?: {
|
|
3300
3380
|
label?: string | undefined;
|
|
@@ -3763,7 +3843,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
3763
3843
|
show?: boolean | undefined;
|
|
3764
3844
|
} | undefined;
|
|
3765
3845
|
} | undefined;
|
|
3766
|
-
rules?:
|
|
3846
|
+
rules?: boolean | {
|
|
3847
|
+
[x: string]: any;
|
|
3848
|
+
required?: boolean | undefined;
|
|
3849
|
+
message?: string | undefined;
|
|
3850
|
+
trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
|
|
3851
|
+
validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
|
|
3852
|
+
}[] | undefined;
|
|
3767
3853
|
text?: {
|
|
3768
3854
|
search?: {
|
|
3769
3855
|
label?: string | undefined;
|
|
@@ -4187,7 +4273,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
4187
4273
|
show?: boolean | undefined;
|
|
4188
4274
|
} | undefined;
|
|
4189
4275
|
} | undefined;
|
|
4190
|
-
rules?:
|
|
4276
|
+
rules?: boolean | {
|
|
4277
|
+
[x: string]: any;
|
|
4278
|
+
required?: boolean | undefined;
|
|
4279
|
+
message?: string | undefined;
|
|
4280
|
+
trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
|
|
4281
|
+
validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
|
|
4282
|
+
}[] | undefined;
|
|
4191
4283
|
text?: {
|
|
4192
4284
|
search?: {
|
|
4193
4285
|
label?: string | undefined;
|
|
@@ -4633,7 +4725,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
4633
4725
|
show?: boolean | undefined;
|
|
4634
4726
|
} | undefined;
|
|
4635
4727
|
} | undefined;
|
|
4636
|
-
rules?:
|
|
4728
|
+
rules?: boolean | {
|
|
4729
|
+
[x: string]: any;
|
|
4730
|
+
required?: boolean | undefined;
|
|
4731
|
+
message?: string | undefined;
|
|
4732
|
+
trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
|
|
4733
|
+
validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
|
|
4734
|
+
}[] | undefined;
|
|
4637
4735
|
text?: {
|
|
4638
4736
|
search?: {
|
|
4639
4737
|
label?: string | undefined;
|
|
@@ -5092,7 +5190,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
5092
5190
|
show?: boolean | undefined;
|
|
5093
5191
|
} | undefined;
|
|
5094
5192
|
} | undefined;
|
|
5095
|
-
rules?:
|
|
5193
|
+
rules?: boolean | {
|
|
5194
|
+
[x: string]: any;
|
|
5195
|
+
required?: boolean | undefined;
|
|
5196
|
+
message?: string | undefined;
|
|
5197
|
+
trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
|
|
5198
|
+
validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
|
|
5199
|
+
}[] | undefined;
|
|
5096
5200
|
text?: {
|
|
5097
5201
|
search?: {
|
|
5098
5202
|
label?: string | undefined;
|
|
@@ -5156,8 +5260,22 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
5156
5260
|
option: {
|
|
5157
5261
|
default: CurdConfig;
|
|
5158
5262
|
};
|
|
5263
|
+
/**
|
|
5264
|
+
* 表单值对象
|
|
5265
|
+
*/
|
|
5266
|
+
form: {
|
|
5267
|
+
default: any;
|
|
5268
|
+
};
|
|
5269
|
+
/**
|
|
5270
|
+
* 搜索栏值对象
|
|
5271
|
+
*/
|
|
5272
|
+
searchForm: {
|
|
5273
|
+
default: any;
|
|
5274
|
+
};
|
|
5159
5275
|
}>> & Readonly<{}>, {
|
|
5160
5276
|
option: CurdConfig<any>;
|
|
5277
|
+
form: any;
|
|
5278
|
+
searchForm: any;
|
|
5161
5279
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5162
5280
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
5163
5281
|
export default _default;
|
|
@@ -602,7 +602,17 @@ export interface CurdConfigColumn<T = any> {
|
|
|
602
602
|
* }
|
|
603
603
|
* }, trigger: 'blur' }
|
|
604
604
|
*/
|
|
605
|
-
rules?:
|
|
605
|
+
rules?: {
|
|
606
|
+
[key: string]: any;
|
|
607
|
+
/** 是否必填 */
|
|
608
|
+
required?: boolean;
|
|
609
|
+
/** 提示信息 */
|
|
610
|
+
message?: string;
|
|
611
|
+
/** 触发方式 */
|
|
612
|
+
trigger?: 'blur' | 'change' | 'input' | 'submit' | 'custom';
|
|
613
|
+
/** 自定义校验 */
|
|
614
|
+
validator?: (rule: any, value: any, callback: any, form: T) => any;
|
|
615
|
+
}[] | boolean;
|
|
606
616
|
/** 文本配置 */
|
|
607
617
|
text?: Partial<{
|
|
608
618
|
/** 搜索文本配置 */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default class TObj {
|
|
2
|
+
/**
|
|
3
|
+
* 删除对象所有属性
|
|
4
|
+
* @param obj 对象
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
static delAllKey: (obj: any) => void;
|
|
8
|
+
/**
|
|
9
|
+
* 设置目标对象属性值为源对象属性值
|
|
10
|
+
* @param a 目标对象
|
|
11
|
+
* @param b 源对象
|
|
12
|
+
* @param delAll 是否删除目标对象所有属性
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
static setValue: (a: any, b: any, delAll?: boolean) => void;
|
|
16
|
+
}
|