knt-shared 1.4.7 → 1.4.9

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.
Files changed (28) hide show
  1. package/dist/components/Form/componentMap.d.ts +482 -0
  2. package/dist/components/Form/componentMap.d.ts.map +1 -1
  3. package/dist/components/Form/components/ApiCascader.vue.d.ts +122 -0
  4. package/dist/components/Form/components/ApiCascader.vue.d.ts.map +1 -0
  5. package/dist/components/Form/components/ApiSelect.vue.d.ts +109 -0
  6. package/dist/components/Form/components/ApiSelect.vue.d.ts.map +1 -0
  7. package/dist/components/Form/components/index.d.ts +5 -0
  8. package/dist/components/Form/components/index.d.ts.map +1 -0
  9. package/dist/components/Form/hooks/useApiRequest.d.ts +54 -0
  10. package/dist/components/Form/hooks/useApiRequest.d.ts.map +1 -0
  11. package/dist/components/Form/index.d.ts +3 -0
  12. package/dist/components/Form/index.d.ts.map +1 -1
  13. package/dist/components/Form/types.d.ts +51 -0
  14. package/dist/components/Form/types.d.ts.map +1 -1
  15. package/dist/components/Modal/BasicModal.vue.d.ts.map +1 -1
  16. package/dist/components/Modal/types.d.ts +8 -8
  17. package/dist/components/Modal/types.d.ts.map +1 -1
  18. package/dist/components/Table/BasicTable.vue.d.ts.map +1 -1
  19. package/dist/components/Table/components/componentMap.d.ts +482 -0
  20. package/dist/components/Table/components/componentMap.d.ts.map +1 -1
  21. package/dist/components/Table/types.d.ts +2 -0
  22. package/dist/components/Table/types.d.ts.map +1 -1
  23. package/dist/index.cjs.js +890 -205
  24. package/dist/index.cjs.js.map +1 -1
  25. package/dist/index.esm.js +891 -206
  26. package/dist/index.esm.js.map +1 -1
  27. package/dist/style.css +15 -15
  28. package/package.json +1 -1
@@ -413,11 +413,493 @@ export declare const componentMap: {
413
413
  };
414
414
  readonly AutoComplete: any;
415
415
  readonly Select: any;
416
+ readonly ApiSelect: {
417
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
418
+ onError: {
419
+ type: import('vue').PropType<(error: any) => void>;
420
+ };
421
+ modelValue: {
422
+ type: import('vue').PropType<any>;
423
+ };
424
+ immediate: {
425
+ type: import('vue').PropType<boolean>;
426
+ default: boolean;
427
+ };
428
+ api: {
429
+ type: import('vue').PropType<(...args: any[]) => Promise<any>>;
430
+ };
431
+ params: {
432
+ type: import('vue').PropType<Record<string, any>>;
433
+ };
434
+ resultField: {
435
+ type: import('vue').PropType<string>;
436
+ default: string;
437
+ };
438
+ cacheTime: {
439
+ type: import('vue').PropType<number>;
440
+ default: number;
441
+ };
442
+ enableCache: {
443
+ type: import('vue').PropType<boolean>;
444
+ default: boolean;
445
+ };
446
+ beforeFetch: {
447
+ type: import('vue').PropType<(params: any) => any>;
448
+ };
449
+ afterFetch: {
450
+ type: import('vue').PropType<(data: any) => any>;
451
+ };
452
+ alwaysLoad: {
453
+ type: import('vue').PropType<boolean>;
454
+ default: boolean;
455
+ };
456
+ labelField: {
457
+ type: import('vue').PropType<string>;
458
+ default: string;
459
+ };
460
+ valueField: {
461
+ type: import('vue').PropType<string>;
462
+ default: string;
463
+ };
464
+ numberToString: {
465
+ type: import('vue').PropType<boolean>;
466
+ default: boolean;
467
+ };
468
+ }>> & Readonly<{
469
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
470
+ onChange?: ((value: any, option: import('./components').ApiSelectOptionItem | import('./components').ApiSelectOptionItem[]) => any) | undefined;
471
+ "onOptions-change"?: ((options: import('./components').ApiSelectOptionItem[]) => any) | undefined;
472
+ }>, {
473
+ refresh: () => Promise<void>;
474
+ getOptions: () => import('./components').ApiSelectOptionItem[];
475
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
476
+ "update:modelValue": (value: any) => void;
477
+ change: (value: any, option: import('./components').ApiSelectOptionItem | import('./components').ApiSelectOptionItem[]) => void;
478
+ "options-change": (options: import('./components').ApiSelectOptionItem[]) => void;
479
+ }, import('vue').PublicProps, {
480
+ immediate: boolean;
481
+ resultField: string;
482
+ cacheTime: number;
483
+ enableCache: boolean;
484
+ alwaysLoad: boolean;
485
+ labelField: string;
486
+ valueField: string;
487
+ numberToString: boolean;
488
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
489
+ P: {};
490
+ B: {};
491
+ D: {};
492
+ C: {};
493
+ M: {};
494
+ Defaults: {};
495
+ }, Readonly<import('vue').ExtractPropTypes<{
496
+ onError: {
497
+ type: import('vue').PropType<(error: any) => void>;
498
+ };
499
+ modelValue: {
500
+ type: import('vue').PropType<any>;
501
+ };
502
+ immediate: {
503
+ type: import('vue').PropType<boolean>;
504
+ default: boolean;
505
+ };
506
+ api: {
507
+ type: import('vue').PropType<(...args: any[]) => Promise<any>>;
508
+ };
509
+ params: {
510
+ type: import('vue').PropType<Record<string, any>>;
511
+ };
512
+ resultField: {
513
+ type: import('vue').PropType<string>;
514
+ default: string;
515
+ };
516
+ cacheTime: {
517
+ type: import('vue').PropType<number>;
518
+ default: number;
519
+ };
520
+ enableCache: {
521
+ type: import('vue').PropType<boolean>;
522
+ default: boolean;
523
+ };
524
+ beforeFetch: {
525
+ type: import('vue').PropType<(params: any) => any>;
526
+ };
527
+ afterFetch: {
528
+ type: import('vue').PropType<(data: any) => any>;
529
+ };
530
+ alwaysLoad: {
531
+ type: import('vue').PropType<boolean>;
532
+ default: boolean;
533
+ };
534
+ labelField: {
535
+ type: import('vue').PropType<string>;
536
+ default: string;
537
+ };
538
+ valueField: {
539
+ type: import('vue').PropType<string>;
540
+ default: string;
541
+ };
542
+ numberToString: {
543
+ type: import('vue').PropType<boolean>;
544
+ default: boolean;
545
+ };
546
+ }>> & Readonly<{
547
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
548
+ onChange?: ((value: any, option: import('./components').ApiSelectOptionItem | import('./components').ApiSelectOptionItem[]) => any) | undefined;
549
+ "onOptions-change"?: ((options: import('./components').ApiSelectOptionItem[]) => any) | undefined;
550
+ }>, {
551
+ refresh: () => Promise<void>;
552
+ getOptions: () => import('./components').ApiSelectOptionItem[];
553
+ }, {}, {}, {}, {
554
+ immediate: boolean;
555
+ resultField: string;
556
+ cacheTime: number;
557
+ enableCache: boolean;
558
+ alwaysLoad: boolean;
559
+ labelField: string;
560
+ valueField: string;
561
+ numberToString: boolean;
562
+ }>;
563
+ __isFragment?: never;
564
+ __isTeleport?: never;
565
+ __isSuspense?: never;
566
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
567
+ onError: {
568
+ type: import('vue').PropType<(error: any) => void>;
569
+ };
570
+ modelValue: {
571
+ type: import('vue').PropType<any>;
572
+ };
573
+ immediate: {
574
+ type: import('vue').PropType<boolean>;
575
+ default: boolean;
576
+ };
577
+ api: {
578
+ type: import('vue').PropType<(...args: any[]) => Promise<any>>;
579
+ };
580
+ params: {
581
+ type: import('vue').PropType<Record<string, any>>;
582
+ };
583
+ resultField: {
584
+ type: import('vue').PropType<string>;
585
+ default: string;
586
+ };
587
+ cacheTime: {
588
+ type: import('vue').PropType<number>;
589
+ default: number;
590
+ };
591
+ enableCache: {
592
+ type: import('vue').PropType<boolean>;
593
+ default: boolean;
594
+ };
595
+ beforeFetch: {
596
+ type: import('vue').PropType<(params: any) => any>;
597
+ };
598
+ afterFetch: {
599
+ type: import('vue').PropType<(data: any) => any>;
600
+ };
601
+ alwaysLoad: {
602
+ type: import('vue').PropType<boolean>;
603
+ default: boolean;
604
+ };
605
+ labelField: {
606
+ type: import('vue').PropType<string>;
607
+ default: string;
608
+ };
609
+ valueField: {
610
+ type: import('vue').PropType<string>;
611
+ default: string;
612
+ };
613
+ numberToString: {
614
+ type: import('vue').PropType<boolean>;
615
+ default: boolean;
616
+ };
617
+ }>> & Readonly<{
618
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
619
+ onChange?: ((value: any, option: import('./components').ApiSelectOptionItem | import('./components').ApiSelectOptionItem[]) => any) | undefined;
620
+ "onOptions-change"?: ((options: import('./components').ApiSelectOptionItem[]) => any) | undefined;
621
+ }>, {
622
+ refresh: () => Promise<void>;
623
+ getOptions: () => import('./components').ApiSelectOptionItem[];
624
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
625
+ "update:modelValue": (value: any) => void;
626
+ change: (value: any, option: import('./components').ApiSelectOptionItem | import('./components').ApiSelectOptionItem[]) => void;
627
+ "options-change": (options: import('./components').ApiSelectOptionItem[]) => void;
628
+ }, string, {
629
+ immediate: boolean;
630
+ resultField: string;
631
+ cacheTime: number;
632
+ enableCache: boolean;
633
+ alwaysLoad: boolean;
634
+ labelField: string;
635
+ valueField: string;
636
+ numberToString: boolean;
637
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
638
+ $slots: Partial<Record<NonNullable<string | number>, (_: any) => any>>;
639
+ });
416
640
  readonly Radio: any;
417
641
  readonly RadioGroup: any;
418
642
  readonly Checkbox: any;
419
643
  readonly CheckboxGroup: any;
420
644
  readonly Cascader: any;
645
+ readonly ApiCascader: {
646
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
647
+ onError: {
648
+ type: import('vue').PropType<(error: any) => void>;
649
+ };
650
+ modelValue: {
651
+ type: import('vue').PropType<any>;
652
+ };
653
+ immediate: {
654
+ type: import('vue').PropType<boolean>;
655
+ default: boolean;
656
+ };
657
+ api: {
658
+ type: import('vue').PropType<(...args: any[]) => Promise<any>>;
659
+ };
660
+ resultField: {
661
+ type: import('vue').PropType<string>;
662
+ default: string;
663
+ };
664
+ cacheTime: {
665
+ type: import('vue').PropType<number>;
666
+ default: number;
667
+ };
668
+ enableCache: {
669
+ type: import('vue').PropType<boolean>;
670
+ default: boolean;
671
+ };
672
+ beforeFetch: {
673
+ type: import('vue').PropType<(params: any) => any>;
674
+ };
675
+ afterFetch: {
676
+ type: import('vue').PropType<(data: any) => any>;
677
+ };
678
+ labelField: {
679
+ type: import('vue').PropType<string>;
680
+ default: string;
681
+ };
682
+ valueField: {
683
+ type: import('vue').PropType<string>;
684
+ default: string;
685
+ };
686
+ numberToString: {
687
+ type: import('vue').PropType<boolean>;
688
+ default: boolean;
689
+ };
690
+ isLeaf: {
691
+ type: import('vue').PropType<(record: any) => boolean>;
692
+ };
693
+ initFetchParams: {
694
+ type: import('vue').PropType<Record<string, any>>;
695
+ };
696
+ childrenField: {
697
+ type: import('vue').PropType<string>;
698
+ default: string;
699
+ };
700
+ enableLoadData: {
701
+ type: import('vue').PropType<boolean>;
702
+ default: boolean;
703
+ };
704
+ asyncFetchParamKey: {
705
+ type: import('vue').PropType<string>;
706
+ default: string;
707
+ };
708
+ }>> & Readonly<{
709
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
710
+ onChange?: ((value: any, selectedOptions: import('./components').ApiCascaderOption[]) => any) | undefined;
711
+ }>, {
712
+ refresh: () => Promise<void>;
713
+ getOptions: () => import('./components').ApiCascaderOption[];
714
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
715
+ "update:modelValue": (value: any) => void;
716
+ change: (value: any, selectedOptions: import('./components').ApiCascaderOption[]) => void;
717
+ }, import('vue').PublicProps, {
718
+ immediate: boolean;
719
+ resultField: string;
720
+ cacheTime: number;
721
+ enableCache: boolean;
722
+ labelField: string;
723
+ valueField: string;
724
+ numberToString: boolean;
725
+ childrenField: string;
726
+ enableLoadData: boolean;
727
+ asyncFetchParamKey: string;
728
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
729
+ P: {};
730
+ B: {};
731
+ D: {};
732
+ C: {};
733
+ M: {};
734
+ Defaults: {};
735
+ }, Readonly<import('vue').ExtractPropTypes<{
736
+ onError: {
737
+ type: import('vue').PropType<(error: any) => void>;
738
+ };
739
+ modelValue: {
740
+ type: import('vue').PropType<any>;
741
+ };
742
+ immediate: {
743
+ type: import('vue').PropType<boolean>;
744
+ default: boolean;
745
+ };
746
+ api: {
747
+ type: import('vue').PropType<(...args: any[]) => Promise<any>>;
748
+ };
749
+ resultField: {
750
+ type: import('vue').PropType<string>;
751
+ default: string;
752
+ };
753
+ cacheTime: {
754
+ type: import('vue').PropType<number>;
755
+ default: number;
756
+ };
757
+ enableCache: {
758
+ type: import('vue').PropType<boolean>;
759
+ default: boolean;
760
+ };
761
+ beforeFetch: {
762
+ type: import('vue').PropType<(params: any) => any>;
763
+ };
764
+ afterFetch: {
765
+ type: import('vue').PropType<(data: any) => any>;
766
+ };
767
+ labelField: {
768
+ type: import('vue').PropType<string>;
769
+ default: string;
770
+ };
771
+ valueField: {
772
+ type: import('vue').PropType<string>;
773
+ default: string;
774
+ };
775
+ numberToString: {
776
+ type: import('vue').PropType<boolean>;
777
+ default: boolean;
778
+ };
779
+ isLeaf: {
780
+ type: import('vue').PropType<(record: any) => boolean>;
781
+ };
782
+ initFetchParams: {
783
+ type: import('vue').PropType<Record<string, any>>;
784
+ };
785
+ childrenField: {
786
+ type: import('vue').PropType<string>;
787
+ default: string;
788
+ };
789
+ enableLoadData: {
790
+ type: import('vue').PropType<boolean>;
791
+ default: boolean;
792
+ };
793
+ asyncFetchParamKey: {
794
+ type: import('vue').PropType<string>;
795
+ default: string;
796
+ };
797
+ }>> & Readonly<{
798
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
799
+ onChange?: ((value: any, selectedOptions: import('./components').ApiCascaderOption[]) => any) | undefined;
800
+ }>, {
801
+ refresh: () => Promise<void>;
802
+ getOptions: () => import('./components').ApiCascaderOption[];
803
+ }, {}, {}, {}, {
804
+ immediate: boolean;
805
+ resultField: string;
806
+ cacheTime: number;
807
+ enableCache: boolean;
808
+ labelField: string;
809
+ valueField: string;
810
+ numberToString: boolean;
811
+ childrenField: string;
812
+ enableLoadData: boolean;
813
+ asyncFetchParamKey: string;
814
+ }>;
815
+ __isFragment?: never;
816
+ __isTeleport?: never;
817
+ __isSuspense?: never;
818
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
819
+ onError: {
820
+ type: import('vue').PropType<(error: any) => void>;
821
+ };
822
+ modelValue: {
823
+ type: import('vue').PropType<any>;
824
+ };
825
+ immediate: {
826
+ type: import('vue').PropType<boolean>;
827
+ default: boolean;
828
+ };
829
+ api: {
830
+ type: import('vue').PropType<(...args: any[]) => Promise<any>>;
831
+ };
832
+ resultField: {
833
+ type: import('vue').PropType<string>;
834
+ default: string;
835
+ };
836
+ cacheTime: {
837
+ type: import('vue').PropType<number>;
838
+ default: number;
839
+ };
840
+ enableCache: {
841
+ type: import('vue').PropType<boolean>;
842
+ default: boolean;
843
+ };
844
+ beforeFetch: {
845
+ type: import('vue').PropType<(params: any) => any>;
846
+ };
847
+ afterFetch: {
848
+ type: import('vue').PropType<(data: any) => any>;
849
+ };
850
+ labelField: {
851
+ type: import('vue').PropType<string>;
852
+ default: string;
853
+ };
854
+ valueField: {
855
+ type: import('vue').PropType<string>;
856
+ default: string;
857
+ };
858
+ numberToString: {
859
+ type: import('vue').PropType<boolean>;
860
+ default: boolean;
861
+ };
862
+ isLeaf: {
863
+ type: import('vue').PropType<(record: any) => boolean>;
864
+ };
865
+ initFetchParams: {
866
+ type: import('vue').PropType<Record<string, any>>;
867
+ };
868
+ childrenField: {
869
+ type: import('vue').PropType<string>;
870
+ default: string;
871
+ };
872
+ enableLoadData: {
873
+ type: import('vue').PropType<boolean>;
874
+ default: boolean;
875
+ };
876
+ asyncFetchParamKey: {
877
+ type: import('vue').PropType<string>;
878
+ default: string;
879
+ };
880
+ }>> & Readonly<{
881
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
882
+ onChange?: ((value: any, selectedOptions: import('./components').ApiCascaderOption[]) => any) | undefined;
883
+ }>, {
884
+ refresh: () => Promise<void>;
885
+ getOptions: () => import('./components').ApiCascaderOption[];
886
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
887
+ "update:modelValue": (value: any) => void;
888
+ change: (value: any, selectedOptions: import('./components').ApiCascaderOption[]) => void;
889
+ }, string, {
890
+ immediate: boolean;
891
+ resultField: string;
892
+ cacheTime: number;
893
+ enableCache: boolean;
894
+ labelField: string;
895
+ valueField: string;
896
+ numberToString: boolean;
897
+ childrenField: string;
898
+ enableLoadData: boolean;
899
+ asyncFetchParamKey: string;
900
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
901
+ $slots: Partial<Record<NonNullable<string | number>, (_: any) => any>>;
902
+ });
421
903
  readonly TreeSelect: any;
422
904
  readonly DatePicker: any;
423
905
  readonly TimePicker: any;
@@ -1 +1 @@
1
- {"version":3,"file":"componentMap.d.ts","sourceRoot":"","sources":["../../../src/components/Form/componentMap.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EAqBN,MAAM,sBAAsB,CAAC;AAG9B;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;6BA4BlB,CAAA;;;;;;;;;;;;;;2BAmBQ,CAAC;2BAEwB,CAAC;;;;;;;;;;;;;;mBAuB9B,CAAC;mBAEoB,CAAC;oBAG5B,CAAC;kBAOL,CAAD;mBAEoB,CAAC;iCAMf,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA8Bi6C,CAAC;;;;uBAAmH,CAAC;uBAAyC,CAAC;;;;;;wBAAib,CAAC,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAmlE,CAAC;;;;;;;;;;;;;;2BAA4X,CAAC;2BAA6C,CAAC;;;;;;;;;;;;;;mBAAob,CAAC;mBA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AG,GAAG,EAAE,CAQhE"}
@@ -0,0 +1,122 @@
1
+ /**
2
+ * 级联选项项类型
3
+ */
4
+ export interface ApiCascaderOption {
5
+ label: string;
6
+ value: string | number;
7
+ disabled?: boolean;
8
+ isLeaf?: boolean;
9
+ loading?: boolean;
10
+ children?: ApiCascaderOption[];
11
+ [key: string]: any;
12
+ }
13
+ /**
14
+ * 组件 Props
15
+ */
16
+ export interface ApiCascaderProps {
17
+ /** 当前值 */
18
+ modelValue?: (string | number)[] | any;
19
+ /** API 请求函数 */
20
+ api?: (...args: any[]) => Promise<any>;
21
+ /** 初始请求参数(用于静态模式) */
22
+ initFetchParams?: Record<string, any>;
23
+ /** 是否立即加载(默认 true) */
24
+ immediate?: boolean;
25
+ /** 结果字段路径(支持 'data.list' 格式) */
26
+ resultField?: string;
27
+ /** label 字段名(默认 'label') */
28
+ labelField?: string;
29
+ /** value 字段名(默认 'value') */
30
+ valueField?: string;
31
+ /** children 字段名(默认 'children') */
32
+ childrenField?: string;
33
+ /** 数字转字符串 */
34
+ numberToString?: boolean;
35
+ /** 启用动态加载模式 */
36
+ enableLoadData?: boolean;
37
+ /** 判断是否为叶子节点 */
38
+ isLeaf?: (record: any) => boolean;
39
+ /** 异步请求的参数 key(默认 'parentCode') */
40
+ asyncFetchParamKey?: string;
41
+ /** 缓存时间(毫秒,默认 5 分钟) */
42
+ cacheTime?: number;
43
+ /** 是否启用缓存(默认 true) */
44
+ enableCache?: boolean;
45
+ /** 请求前钩子 */
46
+ beforeFetch?: (params: any) => any;
47
+ /** 请求后钩子 */
48
+ afterFetch?: (data: any) => any;
49
+ /** 错误处理钩子 */
50
+ onError?: (error: any) => void;
51
+ }
52
+ declare function __VLS_template(): Partial<Record<NonNullable<string | number>, (_: any) => any>>;
53
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApiCascaderProps>, {
54
+ immediate: boolean;
55
+ resultField: string;
56
+ labelField: string;
57
+ valueField: string;
58
+ childrenField: string;
59
+ numberToString: boolean;
60
+ enableLoadData: boolean;
61
+ asyncFetchParamKey: string;
62
+ cacheTime: number;
63
+ enableCache: boolean;
64
+ }>>, {
65
+ /** 刷新数据 */
66
+ refresh: () => Promise<void>;
67
+ /** 获取选项列表 */
68
+ getOptions: () => ApiCascaderOption[];
69
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
70
+ "update:modelValue": (value: any) => void;
71
+ change: (value: any, selectedOptions: ApiCascaderOption[]) => void;
72
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApiCascaderProps>, {
73
+ immediate: boolean;
74
+ resultField: string;
75
+ labelField: string;
76
+ valueField: string;
77
+ childrenField: string;
78
+ numberToString: boolean;
79
+ enableLoadData: boolean;
80
+ asyncFetchParamKey: string;
81
+ cacheTime: number;
82
+ enableCache: boolean;
83
+ }>>> & Readonly<{
84
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
85
+ onChange?: ((value: any, selectedOptions: ApiCascaderOption[]) => any) | undefined;
86
+ }>, {
87
+ immediate: boolean;
88
+ resultField: string;
89
+ cacheTime: number;
90
+ enableCache: boolean;
91
+ labelField: string;
92
+ valueField: string;
93
+ numberToString: boolean;
94
+ childrenField: string;
95
+ enableLoadData: boolean;
96
+ asyncFetchParamKey: string;
97
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
98
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
99
+ export default _default;
100
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
101
+ type __VLS_TypePropsToRuntimeProps<T> = {
102
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
103
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
104
+ } : {
105
+ type: import('vue').PropType<T[K]>;
106
+ required: true;
107
+ };
108
+ };
109
+ type __VLS_WithDefaults<P, D> = {
110
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
111
+ default: D[K];
112
+ }> : P[K];
113
+ };
114
+ type __VLS_Prettify<T> = {
115
+ [K in keyof T]: T[K];
116
+ } & {};
117
+ type __VLS_WithTemplateSlots<T, S> = T & {
118
+ new (): {
119
+ $slots: S;
120
+ };
121
+ };
122
+ //# sourceMappingURL=ApiCascader.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiCascader.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/components/ApiCascader.vue"],"names":[],"mappings":"AAoBA;AAMA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,UAAU;IACV,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,GAAG,CAAC;IACvC,eAAe;IACf,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACvC,qBAAqB;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACtC,sBAAsB;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4BAA4B;IAC5B,UAAU,CAA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