cc1-form 1.4.4 → 1.4.5

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.
@@ -1,7 +1,8 @@
1
1
  import TForm from '../../../../utils/TForm';
2
2
  import FormList from './list.vue';
3
- import { ElCheckbox, ElCheckboxButton, ElCheckboxGroup, ElInputNumber, ElDatePicker, ElFormItem, ElInput, ElOption, ElRadio, ElRadioButton, ElRadioGroup, ElSelect, ElSwitch, ElTreeSelect, ElColorPicker, ElSlider } from 'element-plus';
3
+ import { ElCheckbox, ElCheckboxButton, ElCheckboxGroup, ElInputNumber, ElDatePicker, ElFormItem, ElInput, ElOption, ElRadio, ElRadioButton, ElRadioGroup, ElSelect, ElSwitch, ElTreeSelect, ElColorPicker, ElSlider, ElTooltip } from 'element-plus';
4
4
  import type { CurdConfigColumn } from '../../indexType';
5
+ import questionFilled from '../../icon/questionFilled.vue';
5
6
  type __VLS_Props = {
6
7
  item: CurdConfigColumn;
7
8
  form: Record<string, any>;
@@ -13,32 +14,32 @@ type __VLS_Props = {
13
14
  };
14
15
  declare const formItemRef: import("vue").Ref<any, any>;
15
16
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
16
- declare var __VLS_8: string, __VLS_9: {
17
+ declare var __VLS_15: string, __VLS_16: {
17
18
  row: Record<string, any>;
18
19
  item: CurdConfigColumn<any>;
19
- }, __VLS_12: string, __VLS_13: {
20
+ }, __VLS_19: string, __VLS_20: {
20
21
  row: Record<string, any>;
21
22
  item: CurdConfigColumn<any>;
22
- }, __VLS_91: string, __VLS_92: {
23
+ }, __VLS_98: string, __VLS_99: {
23
24
  row: Record<string, any>;
24
25
  item: CurdConfigColumn<any>;
25
- }, __VLS_95: string, __VLS_96: {
26
+ }, __VLS_102: string, __VLS_103: {
26
27
  row: Record<string, any>;
27
28
  item: CurdConfigColumn<any>;
28
- }, __VLS_99: string, __VLS_100: {
29
+ }, __VLS_106: string, __VLS_107: {
29
30
  row: Record<string, any>;
30
31
  item: CurdConfigColumn<any>;
31
32
  };
32
33
  type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
33
- [K in NonNullable<typeof __VLS_8>]?: (props: typeof __VLS_9) => any;
34
+ [K in NonNullable<typeof __VLS_15>]?: (props: typeof __VLS_16) => any;
34
35
  } & {
35
- [K in NonNullable<typeof __VLS_12>]?: (props: typeof __VLS_13) => any;
36
+ [K in NonNullable<typeof __VLS_19>]?: (props: typeof __VLS_20) => any;
36
37
  } & {
37
- [K in NonNullable<typeof __VLS_91>]?: (props: typeof __VLS_92) => any;
38
+ [K in NonNullable<typeof __VLS_98>]?: (props: typeof __VLS_99) => any;
38
39
  } & {
39
- [K in NonNullable<typeof __VLS_95>]?: (props: typeof __VLS_96) => any;
40
+ [K in NonNullable<typeof __VLS_102>]?: (props: typeof __VLS_103) => any;
40
41
  } & {
41
- [K in NonNullable<typeof __VLS_99>]?: (props: typeof __VLS_100) => any;
42
+ [K in NonNullable<typeof __VLS_106>]?: (props: typeof __VLS_107) => any;
42
43
  }>;
43
44
  declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
44
45
  TForm: typeof TForm;
@@ -59,6 +60,8 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
59
60
  ElTreeSelect: typeof ElTreeSelect;
60
61
  ElColorPicker: typeof ElColorPicker;
61
62
  ElSlider: typeof ElSlider;
63
+ ElTooltip: typeof ElTooltip;
64
+ questionFilled: typeof questionFilled;
62
65
  formItemRef: typeof formItemRef;
63
66
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
64
67
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -32,6 +32,7 @@ export declare const curdConf: (props: CurdProps) => {
32
32
  key: string;
33
33
  label: string;
34
34
  value?: any;
35
+ tip?: string | undefined;
35
36
  children?: /*elided*/ any[] | undefined;
36
37
  disabled?: {
37
38
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -439,6 +440,7 @@ export declare const curdConf: (props: CurdProps) => {
439
440
  } | undefined;
440
441
  form?: {
441
442
  label?: string | undefined;
443
+ tip?: string | undefined;
442
444
  } | undefined;
443
445
  } | undefined;
444
446
  show?: {
@@ -464,6 +466,7 @@ export declare const curdConf: (props: CurdProps) => {
464
466
  key: string;
465
467
  label: string;
466
468
  value?: any;
469
+ tip?: string | undefined;
467
470
  children?: /*elided*/ any[] | undefined;
468
471
  disabled?: {
469
472
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -871,6 +874,7 @@ export declare const curdConf: (props: CurdProps) => {
871
874
  } | undefined;
872
875
  form?: {
873
876
  label?: string | undefined;
877
+ tip?: string | undefined;
874
878
  } | undefined;
875
879
  } | undefined;
876
880
  show?: {
@@ -951,6 +955,7 @@ export declare const curdConf: (props: CurdProps) => {
951
955
  key: string;
952
956
  label: string;
953
957
  value?: any;
958
+ tip?: string | undefined;
954
959
  children?: /*elided*/ any[] | undefined;
955
960
  disabled?: {
956
961
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -1358,6 +1363,7 @@ export declare const curdConf: (props: CurdProps) => {
1358
1363
  } | undefined;
1359
1364
  form?: {
1360
1365
  label?: string | undefined;
1366
+ tip?: string | undefined;
1361
1367
  } | undefined;
1362
1368
  } | undefined;
1363
1369
  show?: {
@@ -1532,6 +1538,7 @@ export declare const curdConf: (props: CurdProps) => {
1532
1538
  key: string;
1533
1539
  label: string;
1534
1540
  value?: any;
1541
+ tip?: string | undefined;
1535
1542
  children?: /*elided*/ any[] | undefined;
1536
1543
  disabled?: {
1537
1544
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -1939,6 +1946,7 @@ export declare const curdConf: (props: CurdProps) => {
1939
1946
  } | undefined;
1940
1947
  form?: {
1941
1948
  label?: string | undefined;
1949
+ tip?: string | undefined;
1942
1950
  } | undefined;
1943
1951
  } | undefined;
1944
1952
  show?: {
@@ -2036,6 +2044,7 @@ export declare const curdConf: (props: CurdProps) => {
2036
2044
  key: string;
2037
2045
  label: string;
2038
2046
  value?: any;
2047
+ tip?: string | undefined;
2039
2048
  children?: /*elided*/ any[] | undefined;
2040
2049
  disabled?: {
2041
2050
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -2443,6 +2452,7 @@ export declare const curdConf: (props: CurdProps) => {
2443
2452
  } | undefined;
2444
2453
  form?: {
2445
2454
  label?: string | undefined;
2455
+ tip?: string | undefined;
2446
2456
  } | undefined;
2447
2457
  } | undefined;
2448
2458
  show?: {
@@ -2519,6 +2529,7 @@ export declare const curdConf: (props: CurdProps) => {
2519
2529
  key: string;
2520
2530
  label: string;
2521
2531
  value?: any;
2532
+ tip?: string | undefined;
2522
2533
  children?: /*elided*/ any[] | undefined;
2523
2534
  disabled?: {
2524
2535
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -2926,6 +2937,7 @@ export declare const curdConf: (props: CurdProps) => {
2926
2937
  } | undefined;
2927
2938
  form?: {
2928
2939
  label?: string | undefined;
2940
+ tip?: string | undefined;
2929
2941
  } | undefined;
2930
2942
  } | undefined;
2931
2943
  show?: {
@@ -49,6 +49,7 @@ declare const conf: {
49
49
  key: string;
50
50
  label: string;
51
51
  value?: any;
52
+ tip?: string | undefined;
52
53
  children?: /*elided*/ any[] | undefined;
53
54
  disabled?: {
54
55
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -456,6 +457,7 @@ declare const conf: {
456
457
  } | undefined;
457
458
  form?: {
458
459
  label?: string | undefined;
460
+ tip?: string | undefined;
459
461
  } | undefined;
460
462
  } | undefined;
461
463
  show?: {
@@ -481,6 +483,7 @@ declare const conf: {
481
483
  key: string;
482
484
  label: string;
483
485
  value?: any;
486
+ tip?: string | undefined;
484
487
  children?: /*elided*/ any[] | undefined;
485
488
  disabled?: {
486
489
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -888,6 +891,7 @@ declare const conf: {
888
891
  } | undefined;
889
892
  form?: {
890
893
  label?: string | undefined;
894
+ tip?: string | undefined;
891
895
  } | undefined;
892
896
  } | undefined;
893
897
  show?: {
@@ -968,6 +972,7 @@ declare const conf: {
968
972
  key: string;
969
973
  label: string;
970
974
  value?: any;
975
+ tip?: string | undefined;
971
976
  children?: /*elided*/ any[] | undefined;
972
977
  disabled?: {
973
978
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -1375,6 +1380,7 @@ declare const conf: {
1375
1380
  } | undefined;
1376
1381
  form?: {
1377
1382
  label?: string | undefined;
1383
+ tip?: string | undefined;
1378
1384
  } | undefined;
1379
1385
  } | undefined;
1380
1386
  show?: {
@@ -1549,6 +1555,7 @@ declare const conf: {
1549
1555
  key: string;
1550
1556
  label: string;
1551
1557
  value?: any;
1558
+ tip?: string | undefined;
1552
1559
  children?: /*elided*/ any[] | undefined;
1553
1560
  disabled?: {
1554
1561
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -1956,6 +1963,7 @@ declare const conf: {
1956
1963
  } | undefined;
1957
1964
  form?: {
1958
1965
  label?: string | undefined;
1966
+ tip?: string | undefined;
1959
1967
  } | undefined;
1960
1968
  } | undefined;
1961
1969
  show?: {
@@ -2053,6 +2061,7 @@ declare const conf: {
2053
2061
  key: string;
2054
2062
  label: string;
2055
2063
  value?: any;
2064
+ tip?: string | undefined;
2056
2065
  children?: /*elided*/ any[] | undefined;
2057
2066
  disabled?: {
2058
2067
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -2460,6 +2469,7 @@ declare const conf: {
2460
2469
  } | undefined;
2461
2470
  form?: {
2462
2471
  label?: string | undefined;
2472
+ tip?: string | undefined;
2463
2473
  } | undefined;
2464
2474
  } | undefined;
2465
2475
  show?: {
@@ -2536,6 +2546,7 @@ declare const conf: {
2536
2546
  key: string;
2537
2547
  label: string;
2538
2548
  value?: any;
2549
+ tip?: string | undefined;
2539
2550
  children?: /*elided*/ any[] | undefined;
2540
2551
  disabled?: {
2541
2552
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -2943,6 +2954,7 @@ declare const conf: {
2943
2954
  } | undefined;
2944
2955
  form?: {
2945
2956
  label?: string | undefined;
2957
+ tip?: string | undefined;
2946
2958
  } | undefined;
2947
2959
  } | undefined;
2948
2960
  show?: {
@@ -3015,6 +3027,7 @@ declare var __VLS_1: {}, __VLS_7: {
3015
3027
  key: string;
3016
3028
  label: string;
3017
3029
  value?: any;
3030
+ tip?: string | undefined;
3018
3031
  children?: /*elided*/ any[] | undefined;
3019
3032
  disabled?: {
3020
3033
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -3422,6 +3435,7 @@ declare var __VLS_1: {}, __VLS_7: {
3422
3435
  } | undefined;
3423
3436
  form?: {
3424
3437
  label?: string | undefined;
3438
+ tip?: string | undefined;
3425
3439
  } | undefined;
3426
3440
  } | undefined;
3427
3441
  show?: {
@@ -3447,6 +3461,7 @@ declare var __VLS_1: {}, __VLS_7: {
3447
3461
  key: string;
3448
3462
  label: string;
3449
3463
  value?: any;
3464
+ tip?: string | undefined;
3450
3465
  children?: /*elided*/ any[] | undefined;
3451
3466
  disabled?: {
3452
3467
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -3854,6 +3869,7 @@ declare var __VLS_1: {}, __VLS_7: {
3854
3869
  } | undefined;
3855
3870
  form?: {
3856
3871
  label?: string | undefined;
3872
+ tip?: string | undefined;
3857
3873
  } | undefined;
3858
3874
  } | undefined;
3859
3875
  show?: {
@@ -3918,6 +3934,7 @@ declare var __VLS_1: {}, __VLS_7: {
3918
3934
  key: string;
3919
3935
  label: string;
3920
3936
  value?: any;
3937
+ tip?: string | undefined;
3921
3938
  children?: /*elided*/ any[] | undefined;
3922
3939
  disabled?: {
3923
3940
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -4325,6 +4342,7 @@ declare var __VLS_1: {}, __VLS_7: {
4325
4342
  } | undefined;
4326
4343
  form?: {
4327
4344
  label?: string | undefined;
4345
+ tip?: string | undefined;
4328
4346
  } | undefined;
4329
4347
  } | undefined;
4330
4348
  show?: {
@@ -4350,6 +4368,7 @@ declare var __VLS_1: {}, __VLS_7: {
4350
4368
  key: string;
4351
4369
  label: string;
4352
4370
  value?: any;
4371
+ tip?: string | undefined;
4353
4372
  children?: /*elided*/ any[] | undefined;
4354
4373
  disabled?: {
4355
4374
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -4757,6 +4776,7 @@ declare var __VLS_1: {}, __VLS_7: {
4757
4776
  } | undefined;
4758
4777
  form?: {
4759
4778
  label?: string | undefined;
4779
+ tip?: string | undefined;
4760
4780
  } | undefined;
4761
4781
  } | undefined;
4762
4782
  show?: {
@@ -4818,6 +4838,7 @@ declare var __VLS_1: {}, __VLS_7: {
4818
4838
  key: string;
4819
4839
  label: string;
4820
4840
  value?: any;
4841
+ tip?: string | undefined;
4821
4842
  children?: /*elided*/ any[] | undefined;
4822
4843
  disabled?: {
4823
4844
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -5225,6 +5246,7 @@ declare var __VLS_1: {}, __VLS_7: {
5225
5246
  } | undefined;
5226
5247
  form?: {
5227
5248
  label?: string | undefined;
5249
+ tip?: string | undefined;
5228
5250
  } | undefined;
5229
5251
  } | undefined;
5230
5252
  show?: {
@@ -5250,6 +5272,7 @@ declare var __VLS_1: {}, __VLS_7: {
5250
5272
  key: string;
5251
5273
  label: string;
5252
5274
  value?: any;
5275
+ tip?: string | undefined;
5253
5276
  children?: /*elided*/ any[] | undefined;
5254
5277
  disabled?: {
5255
5278
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -5657,6 +5680,7 @@ declare var __VLS_1: {}, __VLS_7: {
5657
5680
  } | undefined;
5658
5681
  form?: {
5659
5682
  label?: string | undefined;
5683
+ tip?: string | undefined;
5660
5684
  } | undefined;
5661
5685
  } | undefined;
5662
5686
  show?: {
@@ -5870,6 +5894,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
5870
5894
  key: string;
5871
5895
  label: string;
5872
5896
  value?: any;
5897
+ tip?: string | undefined;
5873
5898
  children?: /*elided*/ any[] | undefined;
5874
5899
  disabled?: {
5875
5900
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -6277,6 +6302,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
6277
6302
  } | undefined;
6278
6303
  form?: {
6279
6304
  label?: string | undefined;
6305
+ tip?: string | undefined;
6280
6306
  } | undefined;
6281
6307
  } | undefined;
6282
6308
  show?: {
@@ -6302,6 +6328,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
6302
6328
  key: string;
6303
6329
  label: string;
6304
6330
  value?: any;
6331
+ tip?: string | undefined;
6305
6332
  children?: /*elided*/ any[] | undefined;
6306
6333
  disabled?: {
6307
6334
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -6709,6 +6736,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
6709
6736
  } | undefined;
6710
6737
  form?: {
6711
6738
  label?: string | undefined;
6739
+ tip?: string | undefined;
6712
6740
  } | undefined;
6713
6741
  } | undefined;
6714
6742
  show?: {
@@ -6789,6 +6817,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
6789
6817
  key: string;
6790
6818
  label: string;
6791
6819
  value?: any;
6820
+ tip?: string | undefined;
6792
6821
  children?: /*elided*/ any[] | undefined;
6793
6822
  disabled?: {
6794
6823
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -7196,6 +7225,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
7196
7225
  } | undefined;
7197
7226
  form?: {
7198
7227
  label?: string | undefined;
7228
+ tip?: string | undefined;
7199
7229
  } | undefined;
7200
7230
  } | undefined;
7201
7231
  show?: {
@@ -7370,6 +7400,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
7370
7400
  key: string;
7371
7401
  label: string;
7372
7402
  value?: any;
7403
+ tip?: string | undefined;
7373
7404
  children?: /*elided*/ any[] | undefined;
7374
7405
  disabled?: {
7375
7406
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -7777,6 +7808,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
7777
7808
  } | undefined;
7778
7809
  form?: {
7779
7810
  label?: string | undefined;
7811
+ tip?: string | undefined;
7780
7812
  } | undefined;
7781
7813
  } | undefined;
7782
7814
  show?: {
@@ -7874,6 +7906,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
7874
7906
  key: string;
7875
7907
  label: string;
7876
7908
  value?: any;
7909
+ tip?: string | undefined;
7877
7910
  children?: /*elided*/ any[] | undefined;
7878
7911
  disabled?: {
7879
7912
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -8281,6 +8314,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
8281
8314
  } | undefined;
8282
8315
  form?: {
8283
8316
  label?: string | undefined;
8317
+ tip?: string | undefined;
8284
8318
  } | undefined;
8285
8319
  } | undefined;
8286
8320
  show?: {
@@ -8357,6 +8391,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
8357
8391
  key: string;
8358
8392
  label: string;
8359
8393
  value?: any;
8394
+ tip?: string | undefined;
8360
8395
  children?: /*elided*/ any[] | undefined;
8361
8396
  disabled?: {
8362
8397
  table?: boolean | ((data: any) => boolean) | undefined;
@@ -8764,6 +8799,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
8764
8799
  } | undefined;
8765
8800
  form?: {
8766
8801
  label?: string | undefined;
8802
+ tip?: string | undefined;
8767
8803
  } | undefined;
8768
8804
  } | undefined;
8769
8805
  show?: {
@@ -488,6 +488,10 @@ export interface CurdConfigColumn<T = any> {
488
488
  * 新增表单的默认值
489
489
  */
490
490
  value?: any;
491
+ /**
492
+ * 新增编辑表单文本提示
493
+ */
494
+ tip?: string;
491
495
  /**
492
496
  * 表头存在子字段时,子字段列表配置
493
497
  */
@@ -688,6 +692,8 @@ export interface CurdConfigColumn<T = any> {
688
692
  form: Partial<{
689
693
  /** 新增编辑表单文本标签 如果为false则不显示标签 */
690
694
  label: string;
695
+ /** 新增编辑表单文本提示 */
696
+ tip: string;
691
697
  }>;
692
698
  }>;
693
699
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc1-form",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "我来助你-表单组件库",
5
5
  "repository": {
6
6
  "type": "git",