cc1-form 1.2.17 → 1.2.19

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.
@@ -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?: any[] | boolean | undefined;
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?: any[] | boolean | undefined;
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?: any[] | boolean | undefined;
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?: any[] | boolean | undefined;
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;
@@ -1829,6 +1855,7 @@ export declare const curdConf: (props: {
1829
1855
  selection: {
1830
1856
  list: any[];
1831
1857
  change: (selection: any[]) => void;
1858
+ runFun: () => void;
1832
1859
  setList: (list: any[], callback?: (item: any) => any) => void;
1833
1860
  };
1834
1861
  sort: {
@@ -2252,7 +2279,13 @@ export declare const curdConf: (props: {
2252
2279
  show?: boolean | undefined;
2253
2280
  } | undefined;
2254
2281
  } | undefined;
2255
- rules?: any[] | boolean | undefined;
2282
+ rules?: boolean | {
2283
+ [x: string]: any;
2284
+ required?: boolean | undefined;
2285
+ message?: string | undefined;
2286
+ trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
2287
+ validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
2288
+ }[] | undefined;
2256
2289
  text?: {
2257
2290
  search?: {
2258
2291
  label?: string | undefined;
@@ -461,7 +461,13 @@ declare const conf: {
461
461
  show?: boolean | undefined;
462
462
  } | undefined;
463
463
  } | undefined;
464
- rules?: any[] | boolean | undefined;
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?: any[] | boolean | undefined;
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?: any[] | boolean | undefined;
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?: any[] | boolean | undefined;
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;
@@ -1836,6 +1860,7 @@ declare const conf: {
1836
1860
  selection: {
1837
1861
  list: any[];
1838
1862
  change: (selection: any[]) => void;
1863
+ runFun: () => void;
1839
1864
  setList: (list: any[], callback?: (item: any) => any) => void;
1840
1865
  };
1841
1866
  sort: {
@@ -2259,7 +2284,13 @@ declare const conf: {
2259
2284
  show?: boolean | undefined;
2260
2285
  } | undefined;
2261
2286
  } | undefined;
2262
- rules?: any[] | boolean | undefined;
2287
+ rules?: boolean | {
2288
+ [x: string]: any;
2289
+ required?: boolean | undefined;
2290
+ message?: string | undefined;
2291
+ trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
2292
+ validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
2293
+ }[] | undefined;
2263
2294
  text?: {
2264
2295
  search?: {
2265
2296
  label?: string | undefined;
@@ -2734,7 +2765,13 @@ declare var __VLS_1: {}, __VLS_7: {
2734
2765
  show?: boolean | undefined;
2735
2766
  } | undefined;
2736
2767
  } | undefined;
2737
- rules?: any[] | boolean | undefined;
2768
+ rules?: boolean | {
2769
+ [x: string]: any;
2770
+ required?: boolean | undefined;
2771
+ message?: string | undefined;
2772
+ trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
2773
+ validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
2774
+ }[] | undefined;
2738
2775
  text?: {
2739
2776
  search?: {
2740
2777
  label?: string | undefined;
@@ -2806,6 +2843,18 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
2806
2843
  option: {
2807
2844
  default: CurdConfig;
2808
2845
  };
2846
+ /**
2847
+ * 表单值对象
2848
+ */
2849
+ form: {
2850
+ default: any;
2851
+ };
2852
+ /**
2853
+ * 搜索栏值对象
2854
+ */
2855
+ searchForm: {
2856
+ default: any;
2857
+ };
2809
2858
  }>, {
2810
2859
  TFormI18n: typeof TFormI18n;
2811
2860
  SwitchConfirm: typeof SwitchConfirm;
@@ -2839,8 +2888,22 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
2839
2888
  option: {
2840
2889
  default: CurdConfig;
2841
2890
  };
2891
+ /**
2892
+ * 表单值对象
2893
+ */
2894
+ form: {
2895
+ default: any;
2896
+ };
2897
+ /**
2898
+ * 搜索栏值对象
2899
+ */
2900
+ searchForm: {
2901
+ default: any;
2902
+ };
2842
2903
  }>> & Readonly<{}>, {
2843
2904
  option: CurdConfig<any>;
2905
+ form: any;
2906
+ searchForm: any;
2844
2907
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2845
2908
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2846
2909
  /**
@@ -2849,6 +2912,18 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
2849
2912
  option: {
2850
2913
  default: CurdConfig;
2851
2914
  };
2915
+ /**
2916
+ * 表单值对象
2917
+ */
2918
+ form: {
2919
+ default: any;
2920
+ };
2921
+ /**
2922
+ * 搜索栏值对象
2923
+ */
2924
+ searchForm: {
2925
+ default: any;
2926
+ };
2852
2927
  }>, {
2853
2928
  conf: {
2854
2929
  option: {
@@ -3294,7 +3369,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
3294
3369
  show?: boolean | undefined;
3295
3370
  } | undefined;
3296
3371
  } | undefined;
3297
- rules?: any[] | boolean | undefined;
3372
+ rules?: boolean | {
3373
+ [x: string]: any;
3374
+ required?: boolean | undefined;
3375
+ message?: string | undefined;
3376
+ trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
3377
+ validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
3378
+ }[] | undefined;
3298
3379
  text?: {
3299
3380
  search?: {
3300
3381
  label?: string | undefined;
@@ -3763,7 +3844,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
3763
3844
  show?: boolean | undefined;
3764
3845
  } | undefined;
3765
3846
  } | undefined;
3766
- rules?: any[] | boolean | undefined;
3847
+ rules?: boolean | {
3848
+ [x: string]: any;
3849
+ required?: boolean | undefined;
3850
+ message?: string | undefined;
3851
+ trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
3852
+ validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
3853
+ }[] | undefined;
3767
3854
  text?: {
3768
3855
  search?: {
3769
3856
  label?: string | undefined;
@@ -4187,7 +4274,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
4187
4274
  show?: boolean | undefined;
4188
4275
  } | undefined;
4189
4276
  } | undefined;
4190
- rules?: any[] | boolean | undefined;
4277
+ rules?: boolean | {
4278
+ [x: string]: any;
4279
+ required?: boolean | undefined;
4280
+ message?: string | undefined;
4281
+ trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
4282
+ validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
4283
+ }[] | undefined;
4191
4284
  text?: {
4192
4285
  search?: {
4193
4286
  label?: string | undefined;
@@ -4633,7 +4726,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
4633
4726
  show?: boolean | undefined;
4634
4727
  } | undefined;
4635
4728
  } | undefined;
4636
- rules?: any[] | boolean | undefined;
4729
+ rules?: boolean | {
4730
+ [x: string]: any;
4731
+ required?: boolean | undefined;
4732
+ message?: string | undefined;
4733
+ trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
4734
+ validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
4735
+ }[] | undefined;
4637
4736
  text?: {
4638
4737
  search?: {
4639
4738
  label?: string | undefined;
@@ -4669,6 +4768,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
4669
4768
  selection: {
4670
4769
  list: any[];
4671
4770
  change: (selection: any[]) => void;
4771
+ runFun: () => void;
4672
4772
  setList: (list: any[], callback?: (item: any) => any) => void;
4673
4773
  };
4674
4774
  sort: {
@@ -5092,7 +5192,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
5092
5192
  show?: boolean | undefined;
5093
5193
  } | undefined;
5094
5194
  } | undefined;
5095
- rules?: any[] | boolean | undefined;
5195
+ rules?: boolean | {
5196
+ [x: string]: any;
5197
+ required?: boolean | undefined;
5198
+ message?: string | undefined;
5199
+ trigger?: "blur" | "change" | "input" | "submit" | "custom" | undefined;
5200
+ validator?: ((rule: any, value: any, callback: any, form: any) => any) | undefined;
5201
+ }[] | undefined;
5096
5202
  text?: {
5097
5203
  search?: {
5098
5204
  label?: string | undefined;
@@ -5156,8 +5262,22 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
5156
5262
  option: {
5157
5263
  default: CurdConfig;
5158
5264
  };
5265
+ /**
5266
+ * 表单值对象
5267
+ */
5268
+ form: {
5269
+ default: any;
5270
+ };
5271
+ /**
5272
+ * 搜索栏值对象
5273
+ */
5274
+ searchForm: {
5275
+ default: any;
5276
+ };
5159
5277
  }>> & Readonly<{}>, {
5160
5278
  option: CurdConfig<any>;
5279
+ form: any;
5280
+ searchForm: any;
5161
5281
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5162
5282
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
5163
5283
  export default _default;
@@ -602,7 +602,17 @@ export interface CurdConfigColumn<T = any> {
602
602
  * }
603
603
  * }, trigger: 'blur' }
604
604
  */
605
- rules?: any[] | boolean;
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc1-form",
3
- "version": "1.2.17",
3
+ "version": "1.2.19",
4
4
  "description": "我来助你-表单组件库",
5
5
  "repository": {
6
6
  "type": "git",