@vue-start/pro 0.5.47 → 0.5.49

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/index.d.ts CHANGED
@@ -545,6 +545,196 @@ declare const useProRouter: () => {
545
545
  route: RouteLocationNormalizedLoaded;
546
546
  };
547
547
 
548
+ declare const ThemeKey: unique symbol;
549
+ declare type TLight = Record<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9", string>;
550
+ declare type TDark = Record<"2", string>;
551
+ declare type TColor = {
552
+ base: string;
553
+ light: TLight;
554
+ dark: TDark;
555
+ };
556
+ declare type TSubType = {
557
+ base: string;
558
+ lg: string;
559
+ md: string;
560
+ sm: string;
561
+ };
562
+ interface ITheme {
563
+ color: {
564
+ primary: TColor;
565
+ success: TColor;
566
+ warning: TColor;
567
+ danger: TColor;
568
+ error: TColor;
569
+ info: TColor;
570
+ text: {
571
+ base: string;
572
+ regular: string;
573
+ secondary: string;
574
+ placeholder: string;
575
+ disabled: string;
576
+ };
577
+ border: {
578
+ base: string;
579
+ light: string;
580
+ };
581
+ bg: {
582
+ base: string;
583
+ light: string;
584
+ };
585
+ mode: {
586
+ base: string;
587
+ reverse: string;
588
+ };
589
+ };
590
+ radius: TSubType;
591
+ fontSize: TSubType & {
592
+ xs: string;
593
+ };
594
+ lineHeight: {
595
+ base: number;
596
+ lg: number;
597
+ md: number;
598
+ sm: number;
599
+ };
600
+ spacing: TLight;
601
+ shadow: TSubType & {
602
+ inner: string;
603
+ };
604
+ }
605
+ interface IThemeProvide {
606
+ theme: ITheme;
607
+ }
608
+ declare const useTheme: () => IThemeProvide;
609
+ interface IThemeToken {
610
+ color?: {
611
+ primary?: string;
612
+ success?: string;
613
+ warning?: string;
614
+ danger?: string;
615
+ error?: string;
616
+ info?: string;
617
+ };
618
+ extraColor?: {
619
+ text: {
620
+ base: string;
621
+ regular: string;
622
+ secondary: string;
623
+ placeholder: string;
624
+ disabled: string;
625
+ };
626
+ border: {
627
+ base: string;
628
+ light: string;
629
+ };
630
+ bg: {
631
+ base: string;
632
+ light: string;
633
+ };
634
+ mode: {
635
+ base: string;
636
+ reverse: string;
637
+ };
638
+ };
639
+ radius?: string;
640
+ lineHeight?: number;
641
+ spacing?: number;
642
+ }
643
+ declare const ThemeToken: {
644
+ color: {
645
+ primary: string;
646
+ success: string;
647
+ warning: string;
648
+ danger: string;
649
+ error: string;
650
+ info: string;
651
+ };
652
+ extraColor: {
653
+ text: {
654
+ base: string;
655
+ regular: string;
656
+ secondary: string;
657
+ placeholder: string;
658
+ disabled: string;
659
+ };
660
+ border: {
661
+ base: string;
662
+ light: string;
663
+ };
664
+ bg: {
665
+ base: string;
666
+ light: string;
667
+ };
668
+ mode: {
669
+ base: string;
670
+ rgb: string;
671
+ reverse: string;
672
+ "reverse-rgb": string;
673
+ };
674
+ };
675
+ radius: string;
676
+ lineHeight: number;
677
+ spacing: number;
678
+ };
679
+ /**
680
+ *
681
+ */
682
+ declare const DarkThemeToken: {
683
+ extraColor: {
684
+ text: {
685
+ base: string;
686
+ regular: string;
687
+ secondary: string;
688
+ placeholder: string;
689
+ disabled: string;
690
+ };
691
+ border: {
692
+ base: string;
693
+ light: string;
694
+ };
695
+ bg: {
696
+ base: string;
697
+ light: string;
698
+ };
699
+ mode: {
700
+ base: string;
701
+ rgb: string;
702
+ reverse: string;
703
+ "reverse-rgb": string;
704
+ };
705
+ };
706
+ color: {
707
+ primary: string;
708
+ success: string;
709
+ warning: string;
710
+ danger: string;
711
+ error: string;
712
+ info: string;
713
+ };
714
+ radius: string;
715
+ lineHeight: number;
716
+ spacing: number;
717
+ };
718
+ /****************************************************/
719
+ declare const AppConfig: {
720
+ layout: string;
721
+ primary: string;
722
+ isDark: boolean;
723
+ menuBar: string;
724
+ menuBarColor: string;
725
+ menuBarActiveColor: string;
726
+ isTagsView: boolean;
727
+ isTagsViewIcon: boolean;
728
+ isTagsViewCache: boolean;
729
+ isTagsViewDrag: boolean;
730
+ isCollapse: boolean;
731
+ isShowLogo: boolean;
732
+ isGray: boolean;
733
+ isInvert: boolean;
734
+ isWatermark: boolean;
735
+ };
736
+ declare type TAppConfig = typeof AppConfig;
737
+
548
738
  declare const proBasePropsFn: () => {
549
739
  /**
550
740
  * 组件集
@@ -627,6 +817,7 @@ interface IProConfigProvide {
627
817
  showMsg: (opts: Record<string, any>) => any;
628
818
  showModal: (opts: Record<string, any>) => any;
629
819
  showNotify: (opts: Record<string, any>) => any;
820
+ appConfig: TAppConfig;
630
821
  }
631
822
  declare const proConfigProps: () => {
632
823
  elementMap: {
@@ -666,6 +857,42 @@ declare const proConfigProps: () => {
666
857
  showNotify: {
667
858
  type: FunctionConstructor;
668
859
  };
860
+ appConfig: {
861
+ type: PropType<{
862
+ layout: string;
863
+ primary: string;
864
+ isDark: boolean;
865
+ menuBar: string;
866
+ menuBarColor: string;
867
+ menuBarActiveColor: string;
868
+ isTagsView: boolean;
869
+ isTagsViewIcon: boolean;
870
+ isTagsViewCache: boolean;
871
+ isTagsViewDrag: boolean;
872
+ isCollapse: boolean;
873
+ isShowLogo: boolean;
874
+ isGray: boolean;
875
+ isInvert: boolean;
876
+ isWatermark: boolean;
877
+ }>;
878
+ default: {
879
+ layout: string;
880
+ primary: string;
881
+ isDark: boolean;
882
+ menuBar: string;
883
+ menuBarColor: string;
884
+ menuBarActiveColor: string;
885
+ isTagsView: boolean;
886
+ isTagsViewIcon: boolean;
887
+ isTagsViewCache: boolean;
888
+ isTagsViewDrag: boolean;
889
+ isCollapse: boolean;
890
+ isShowLogo: boolean;
891
+ isGray: boolean;
892
+ isInvert: boolean;
893
+ isWatermark: boolean;
894
+ };
895
+ };
669
896
  };
670
897
  declare const useProConfig: () => IProConfigProvide;
671
898
  declare const useProMsg: () => (opts: Record<string, any>) => any;
@@ -713,6 +940,42 @@ declare const ProConfig: vue.DefineComponent<Partial<ExtractPropTypes<{
713
940
  showNotify: {
714
941
  type: FunctionConstructor;
715
942
  };
943
+ appConfig: {
944
+ type: PropType<{
945
+ layout: string;
946
+ primary: string;
947
+ isDark: boolean;
948
+ menuBar: string;
949
+ menuBarColor: string;
950
+ menuBarActiveColor: string;
951
+ isTagsView: boolean;
952
+ isTagsViewIcon: boolean;
953
+ isTagsViewCache: boolean;
954
+ isTagsViewDrag: boolean;
955
+ isCollapse: boolean;
956
+ isShowLogo: boolean;
957
+ isGray: boolean;
958
+ isInvert: boolean;
959
+ isWatermark: boolean;
960
+ }>;
961
+ default: {
962
+ layout: string;
963
+ primary: string;
964
+ isDark: boolean;
965
+ menuBar: string;
966
+ menuBarColor: string;
967
+ menuBarActiveColor: string;
968
+ isTagsView: boolean;
969
+ isTagsViewIcon: boolean;
970
+ isTagsViewCache: boolean;
971
+ isTagsViewDrag: boolean;
972
+ isCollapse: boolean;
973
+ isShowLogo: boolean;
974
+ isGray: boolean;
975
+ isInvert: boolean;
976
+ isWatermark: boolean;
977
+ };
978
+ };
716
979
  }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
717
980
  elementMap: {
718
981
  type: PropType<TElementMap>;
@@ -751,6 +1014,42 @@ declare const ProConfig: vue.DefineComponent<Partial<ExtractPropTypes<{
751
1014
  showNotify: {
752
1015
  type: FunctionConstructor;
753
1016
  };
1017
+ appConfig: {
1018
+ type: PropType<{
1019
+ layout: string;
1020
+ primary: string;
1021
+ isDark: boolean;
1022
+ menuBar: string;
1023
+ menuBarColor: string;
1024
+ menuBarActiveColor: string;
1025
+ isTagsView: boolean;
1026
+ isTagsViewIcon: boolean;
1027
+ isTagsViewCache: boolean;
1028
+ isTagsViewDrag: boolean;
1029
+ isCollapse: boolean;
1030
+ isShowLogo: boolean;
1031
+ isGray: boolean;
1032
+ isInvert: boolean;
1033
+ isWatermark: boolean;
1034
+ }>;
1035
+ default: {
1036
+ layout: string;
1037
+ primary: string;
1038
+ isDark: boolean;
1039
+ menuBar: string;
1040
+ menuBarColor: string;
1041
+ menuBarActiveColor: string;
1042
+ isTagsView: boolean;
1043
+ isTagsViewIcon: boolean;
1044
+ isTagsViewCache: boolean;
1045
+ isTagsViewDrag: boolean;
1046
+ isCollapse: boolean;
1047
+ isShowLogo: boolean;
1048
+ isGray: boolean;
1049
+ isInvert: boolean;
1050
+ isWatermark: boolean;
1051
+ };
1052
+ };
754
1053
  }>>>, {}>;
755
1054
  /**
756
1055
  * app.use 方式注册
@@ -1346,6 +1645,11 @@ interface IOperateItem {
1346
1645
  perSuffix?: string;
1347
1646
  tip?: string | VNode | ((record: Record<string, any>) => string | VNode);
1348
1647
  tipProps?: Record<string, any> | ((record: Record<string, any>) => Record<string, any>);
1648
+ title?: string;
1649
+ routeOpts?: {
1650
+ name: string;
1651
+ query: string[];
1652
+ } | ((record: Record<string, any>) => Record<string, any>);
1349
1653
  }
1350
1654
  /**
1351
1655
  * 整个操作栏描述
@@ -2251,6 +2555,7 @@ interface IProLayoutProvide {
2251
2555
  convertName: (route: RouteLocationNormalizedLoaded) => string;
2252
2556
  convertValue: (menu: TLayoutTabMenu) => string;
2253
2557
  menus: Ref<TLayoutMenu[]>;
2558
+ showMenus: Ref<TLayoutMenu[]>;
2254
2559
  menuMap: Ref<Record<string, TLayoutMenu>>;
2255
2560
  tabs: Ref<TLayoutTabMenu[]>;
2256
2561
  showTabs: Ref<boolean>;
@@ -2263,16 +2568,19 @@ declare const useProLayout: () => IProLayoutProvide;
2263
2568
  declare const routerViewProps: () => {
2264
2569
  includes: {
2265
2570
  type: PropType<string[]>;
2571
+ default: never[];
2266
2572
  };
2267
2573
  };
2268
2574
  declare type ProRouterViewProps = Partial<ExtractPropTypes<ReturnType<typeof routerViewProps>>>;
2269
2575
  declare const ProRouterView: vue.DefineComponent<Partial<ExtractPropTypes<{
2270
2576
  includes: {
2271
2577
  type: PropType<string[]>;
2578
+ default: never[];
2272
2579
  };
2273
2580
  }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
2274
2581
  includes: {
2275
2582
  type: PropType<string[]>;
2583
+ default: never[];
2276
2584
  };
2277
2585
  }>>>, {}>;
2278
2586
 
@@ -2336,6 +2644,7 @@ declare const layoutProps: () => {
2336
2644
  type: PropType<Partial<ExtractPropTypes<{
2337
2645
  includes: {
2338
2646
  type: PropType<string[]>;
2647
+ default: never[];
2339
2648
  };
2340
2649
  }>>>;
2341
2650
  default: undefined;
@@ -2444,6 +2753,7 @@ declare const ProLayout: vue.DefineComponent<Partial<ExtractPropTypes<{
2444
2753
  type: PropType<Partial<ExtractPropTypes<{
2445
2754
  includes: {
2446
2755
  type: PropType<string[]>;
2756
+ default: never[];
2447
2757
  };
2448
2758
  }>>>;
2449
2759
  default: undefined;
@@ -2550,6 +2860,7 @@ declare const ProLayout: vue.DefineComponent<Partial<ExtractPropTypes<{
2550
2860
  type: PropType<Partial<ExtractPropTypes<{
2551
2861
  includes: {
2552
2862
  type: PropType<string[]>;
2863
+ default: never[];
2553
2864
  };
2554
2865
  }>>>;
2555
2866
  default: undefined;
@@ -2760,6 +3071,15 @@ declare const proCurdProps: () => {
2760
3071
  convertOperate: {
2761
3072
  type: PropType<(operate: ICurdOperateOpts, origin: ICurdOperateOpts) => ICurdOperateOpts>;
2762
3073
  };
3074
+ defaultAddRecord: {
3075
+ type: PropType<Record<string, any>>;
3076
+ };
3077
+ title: {
3078
+ type: StringConstructor;
3079
+ };
3080
+ useMenuName: {
3081
+ type: BooleanConstructor;
3082
+ };
2763
3083
  /************************* 子组件props *******************************/
2764
3084
  listProps: {
2765
3085
  type: PropType<Record<string, any>>;
@@ -2773,6 +3093,12 @@ declare const proCurdProps: () => {
2773
3093
  modalProps: {
2774
3094
  type: PropType<Record<string, any>>;
2775
3095
  };
3096
+ pageProps: {
3097
+ type: PropType<Record<string, any>>;
3098
+ };
3099
+ subPageProps: {
3100
+ type: PropType<Record<string, any>>;
3101
+ };
2776
3102
  };
2777
3103
  declare type CurdProps = Partial<ExtractPropTypes<ReturnType<typeof proCurdProps>>> & ProBaseProps;
2778
3104
  declare const CurdMethods: string[];
@@ -2780,6 +3106,11 @@ declare type ProCurdProps = CurdProps & Omit<ProModuleProps, "state" | "requests
2780
3106
  curdState?: UnwrapNestedRefs<ICurdState>;
2781
3107
  };
2782
3108
  declare const ProCurd: vue.DefineComponent<ProCurdProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProCurdProps>, {}>;
3109
+ declare const useCurdCommon: () => {
3110
+ clearMode: () => void;
3111
+ operate: vue.ComputedRef<ICurdOperateOpts | undefined>;
3112
+ opeTitle: vue.ComputedRef<string>;
3113
+ };
2783
3114
 
2784
3115
  interface IProCurdProvide {
2785
3116
  columns: Ref<TColumns>;
@@ -2796,11 +3127,15 @@ interface IProCurdProvide {
2796
3127
  operates: ICurdOperateOpts[];
2797
3128
  getOperate: (action: ICurdAction) => ICurdOperateOpts | undefined;
2798
3129
  refreshList: (extra?: Record<string, any>) => void;
3130
+ defaultAddRecord?: ComputedRef<Record<string, any> | undefined>;
3131
+ title?: string;
2799
3132
  /******************子组件参数*******************/
2800
3133
  listProps?: ComputedRef<Record<string, any> | undefined>;
2801
3134
  formProps?: ComputedRef<Record<string, any> | undefined>;
2802
3135
  descProps?: ComputedRef<Record<string, any> | undefined>;
2803
3136
  modalProps?: ComputedRef<Record<string, any> | undefined>;
3137
+ pageProps?: ComputedRef<Record<string, any> | undefined>;
3138
+ subPageProps?: ComputedRef<Record<string, any> | undefined>;
2804
3139
  }
2805
3140
  declare const useProCurd: <T extends IProCurdProvide>() => T;
2806
3141
  declare const provideProCurd: (ctx: IProCurdProvide) => void;
@@ -2878,6 +3213,18 @@ declare type PageCurdProps = Partial<ExtractPropTypes<ReturnType<typeof pageCurd
2878
3213
  declare type ProPageCurdProps = PageCurdProps & ProCurdProps;
2879
3214
  declare const ProPageCurd: vue.DefineComponent<ProPageCurdProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProPageCurdProps>, {}>;
2880
3215
 
3216
+ declare const proCurdModuleProps: () => {
3217
+ listType: {
3218
+ type: PropType<"page" | "list" | "none">;
3219
+ default: string;
3220
+ };
3221
+ modalType: {
3222
+ type: PropType<"page" | "modal">;
3223
+ };
3224
+ };
3225
+ declare type ProCurdModuleProps = Partial<ExtractPropTypes<ReturnType<typeof proCurdModuleProps>>> & ProCurdProps;
3226
+ declare const ProCurdModule: vue.DefineComponent<ProCurdModuleProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProCurdModuleProps>, {}>;
3227
+
2881
3228
  declare const curdListProps: () => {
2882
3229
  addConfig: {
2883
3230
  type: PropType<{
@@ -2900,6 +3247,10 @@ declare type ProCurdListProps = Partial<ExtractPropTypes<ReturnType<typeof curdL
2900
3247
  */
2901
3248
  declare const ProCurdList: vue.DefineComponent<ProCurdListProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ProCurdListProps>, {}>;
2902
3249
  declare const ProCurdListConnect: vue.DefineComponent<unknown, () => JSX.Element, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<unknown>, {}>;
3250
+ declare const ProCurdListPage: vue.DefineComponent<any, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<any>, {} | {
3251
+ [x: string]: any;
3252
+ }>;
3253
+ declare const ProCurdListPageConnect: vue.DefineComponent<unknown, () => JSX.Element, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<unknown>, {}>;
2903
3254
 
2904
3255
  declare const proCurdFormProps: () => {
2905
3256
  signName: {
@@ -2945,6 +3296,13 @@ declare const ProCurdModalForm: vue.DefineComponent<{
2945
3296
  formProps: ObjectConstructor;
2946
3297
  }>>, {}>;
2947
3298
  declare const ProCurdModalFormConnect: vue.DefineComponent<unknown, () => JSX.Element, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<unknown>, {}>;
3299
+ declare const ProCurdPage: vue.DefineComponent<any, () => JSX.Element | null, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<any>, {} | {
3300
+ [x: string]: any;
3301
+ }>;
3302
+ declare const ProCurdFormPage: vue.DefineComponent<any, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<any>, {} | {
3303
+ [x: string]: any;
3304
+ }>;
3305
+ declare const ProCurdPageConnect: vue.DefineComponent<unknown, () => JSX.Element, {}, vue.ComputedOptions, vue.MethodOptions, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<unknown>, {}>;
2948
3306
 
2949
3307
  declare const AddButton: vue.DefineComponent<{
2950
3308
  buttonProps: ObjectConstructor;
@@ -3000,75 +3358,7 @@ declare const getSignValue: <T = any>(item: TColumn, signName: string) => T;
3000
3358
  */
3001
3359
  declare const filterSlotsByPrefix: (slots: Record<string, any>, prefix: string) => lodash.Dictionary<any>;
3002
3360
 
3003
- declare const ThemeKey: unique symbol;
3004
- declare type TLight = Record<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9", string>;
3005
- declare type TDark = Record<"2", string>;
3006
- declare type TColor = {
3007
- base: string;
3008
- light: TLight;
3009
- dark: TDark;
3010
- };
3011
- declare type TSubType = {
3012
- base: string;
3013
- lg: string;
3014
- md: string;
3015
- sm: string;
3016
- };
3017
- interface ITheme {
3018
- color: {
3019
- primary: TColor;
3020
- success: TColor;
3021
- warning: TColor;
3022
- danger: TColor;
3023
- error: TColor;
3024
- info: TColor;
3025
- text: {
3026
- base: string;
3027
- regular: string;
3028
- secondary: string;
3029
- placeholder: string;
3030
- disabled: string;
3031
- };
3032
- border: {
3033
- base: string;
3034
- light: string;
3035
- };
3036
- bg: string;
3037
- };
3038
- radius: TSubType;
3039
- fontSize: TSubType & {
3040
- xs: string;
3041
- };
3042
- lineHeight: {
3043
- base: number;
3044
- lg: number;
3045
- md: number;
3046
- sm: number;
3047
- };
3048
- spacing: TLight;
3049
- shadow: TSubType & {
3050
- inner: string;
3051
- };
3052
- }
3053
- interface IThemeProvide {
3054
- theme: ITheme;
3055
- }
3056
- declare const useTheme: () => IThemeProvide;
3057
- interface IThemeToken {
3058
- color?: {
3059
- primary?: string;
3060
- success?: string;
3061
- warning?: string;
3062
- danger?: string;
3063
- error?: string;
3064
- info?: string;
3065
- };
3066
- radius?: string;
3067
- lineHeight?: number;
3068
- spacing?: number;
3069
- }
3070
- declare const ThemeToken: IThemeToken;
3071
- declare const createTheme: (tt?: IThemeToken) => ITheme;
3361
+ declare const createTheme: (tt?: IThemeToken, defTT?: IThemeToken) => ITheme;
3072
3362
  declare const ProTheme: vue.DefineComponent<{
3073
3363
  theme: {
3074
3364
  type: ObjectConstructor;
@@ -3080,6 +3370,12 @@ declare const ProTheme: vue.DefineComponent<{
3080
3370
  type: BooleanConstructor;
3081
3371
  default: boolean;
3082
3372
  };
3373
+ /**
3374
+ * 主题
3375
+ */
3376
+ mode: {
3377
+ type: PropType<"light" | "dark">;
3378
+ };
3083
3379
  /**
3084
3380
  * 根据themeToken生成theme
3085
3381
  */
@@ -3090,11 +3386,9 @@ declare const ProTheme: vue.DefineComponent<{
3090
3386
  * 将生成的ITheme对象映射成 css 变量
3091
3387
  */
3092
3388
  createCssVar: {
3093
- type: PropType<(t: ITheme) => Record<string, string | number>>;
3389
+ type: PropType<(t: ITheme, mode: string) => Record<string, string | number>>;
3094
3390
  };
3095
- }, () => JSX.Element | vue.VNode<vue.RendererNode, vue.RendererElement, {
3096
- [key: string]: any;
3097
- }>[] | undefined, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
3391
+ }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
3098
3392
  theme: {
3099
3393
  type: ObjectConstructor;
3100
3394
  };
@@ -3105,6 +3399,12 @@ declare const ProTheme: vue.DefineComponent<{
3105
3399
  type: BooleanConstructor;
3106
3400
  default: boolean;
3107
3401
  };
3402
+ /**
3403
+ * 主题
3404
+ */
3405
+ mode: {
3406
+ type: PropType<"light" | "dark">;
3407
+ };
3108
3408
  /**
3109
3409
  * 根据themeToken生成theme
3110
3410
  */
@@ -3115,10 +3415,45 @@ declare const ProTheme: vue.DefineComponent<{
3115
3415
  * 将生成的ITheme对象映射成 css 变量
3116
3416
  */
3117
3417
  createCssVar: {
3118
- type: PropType<(t: ITheme) => Record<string, string | number>>;
3418
+ type: PropType<(t: ITheme, mode: string) => Record<string, string | number>>;
3119
3419
  };
3120
3420
  }>>, {
3121
3421
  global: boolean;
3122
3422
  }>;
3123
3423
 
3124
- export { AddButton, BooleanObjType, BooleanRulesObjType, ColumnSetting, CurdAction, CurdAddAction, CurdCurrentMode, CurdMethods, CurdSubAction, ElementKeys, FieldNames, FormAction, FormItemProps, FormRulePrefixMap, IAccess, ICurdAction, ICurdAddAction, ICurdCurrentMode, ICurdOperateOpts, ICurdState, ICurdSubAction, IElementConfig, IHighConfig, IListData, IOpeItem, IOperateItem, IPer, IProConfigProvide, IProCurdProvide, IProFormProvideExtra, IProLayoutProvide, IProModuleProvide, IProTableProvide, IProTableProvideExtra, IRequestOpts, ISearchMode, ITableOperate, ITheme, IThemeProvide, IThemeToken, IUser, InternalNamePath, LogonUser, LogonUserKey, ModalCurdOpe, MustLogon, NamePath, PageHeader, PageHeaderProps, PaginationSlotProps, PerSuffix, Permission, PermissionProps, ProBaseProps, ProColumnSettingProps, ProConfig, ProConfigProps, ProCurd, ProCurdDesc, ProCurdDescConnect, ProCurdDescProps, ProCurdForm, ProCurdFormConnect, ProCurdFormProps, ProCurdList, ProCurdListConnect, ProCurdListProps, ProCurdModal, ProCurdModalForm, ProCurdModalFormConnect, ProCurdModalProps, ProCurdProps, ProDesc, ProDescProps, ProDispatchRequestType, ProForm, ProFormItemProps, ProFormList, ProFormListProps, ProFormProps, ProGrid, ProGridProps, ProLayout, ProLayoutKey, ProLayoutProps, ProList, ProListProps, ProModalCurd, ProModalCurdProps, ProModule, ProModuleProps, ProOperate, ProOperateProps, ProPage, ProPageCurd, ProPageCurdProps, ProPageProps, ProRouterView, ProRouterViewProps, ProSearchForm, ProSearchFormProps, ProShowDate, ProShowDigit, ProShowOptions, ProShowText, ProShowTree, ProTable, ProTableProps, ProTheme, ProTip, ProTipProps, ProTypography, ProTypographyProps, ProUploadList, ProUploaderText, ProValue, ProWatermark, ProWatermarkProps, RequestAction, RouterMethods, SearchMode, SearchSlotProps, TAccess, TActionEvent, TActionState, TColor, TColumn, TColumns, TConfigData, TCurdActionEvent, TDark, TDefaultValueType, TElementMap, TExecuteFunName, TExecuteItem, TExecuteName, TFile, TFormExtraMap, TInitialState, TLayoutMenu, TLayoutTabMenu, TLayoutType, TLight, TLogonUserProvide, TMeta, TOpenMenu, TOption, TOptions, TPageState, TProFormOperate, TRegisterStore, TRegisterStoreMap, TRender, TRouter, TSubType, TTableColumn, TTableColumns, TValueType, ThemeKey, ThemeToken, TreeOption, TreeOptions, Wrapper, convertPathToList, convertResData, createExpose, createExposeObj, createFormItemCompFn, createModule, createProConfig, createTheme, defaultPage, filterSlotsByPrefix, getColumnFormItemName, getColumnValueType, getFirstPropName, getRealRender, getSignValue, getValidValues, isValidConfig, isValidNode, mergeState, mergeStateToList, proBaseProps, provideProCurd, provideProFormList, provideProModule, renderColumn, renderElement, renderElements, renderInputColumn, showValue, useAccess, useAccessMgr, useComposeRequestActor, useDispatchStore, useDoneRequestActor, useFailedRequestActor, useFormSubmit, useGetCompByKey, useHasPer, useHasPer2, useLogonUser, useMeta, useMetaRegister, useModuleEvent, useProConfig, useProCurd, useProForm, useProFormList, useProLayout, useProModal, useProModule, useProMsg, useProNotify, useProRouter, useProTable, useReadStore, useTheme };
3424
+ declare const useAppConfig: () => {
3425
+ readonly appConfig: {
3426
+ layout: string;
3427
+ primary: string;
3428
+ isDark: boolean;
3429
+ menuBar: string;
3430
+ menuBarColor: string;
3431
+ menuBarActiveColor: string;
3432
+ isTagsView: boolean;
3433
+ isTagsViewIcon: boolean;
3434
+ isTagsViewCache: boolean;
3435
+ isTagsViewDrag: boolean;
3436
+ isCollapse: boolean;
3437
+ isShowLogo: boolean;
3438
+ isGray: boolean;
3439
+ isInvert: boolean;
3440
+ isWatermark: boolean;
3441
+ };
3442
+ readonly setAppConfig: (c: TAppConfig | TUpdater<TAppConfig>) => void;
3443
+ readonly delAppConfig: () => void;
3444
+ };
3445
+ declare const appConfigProps: () => {
3446
+ columns: {
3447
+ type: PropType<{
3448
+ title?: string | undefined;
3449
+ dataIndex: string;
3450
+ valueType: string;
3451
+ }[]>;
3452
+ };
3453
+ };
3454
+ declare type ProAppConfigDrawerProps = Partial<ExtractPropTypes<ReturnType<typeof appConfigProps>>> & Record<string, any>;
3455
+ declare const ProAppConfigDrawer: vue.DefineComponent<ProAppConfigDrawerProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<ExtractPropTypes<ProAppConfigDrawerProps>>, {
3456
+ [x: string]: any;
3457
+ }>;
3458
+
3459
+ export { AddButton, AppConfig, BooleanObjType, BooleanRulesObjType, ColumnSetting, CurdAction, CurdAddAction, CurdCurrentMode, CurdMethods, CurdSubAction, DarkThemeToken, ElementKeys, FieldNames, FormAction, FormItemProps, FormRulePrefixMap, IAccess, ICurdAction, ICurdAddAction, ICurdCurrentMode, ICurdOperateOpts, ICurdState, ICurdSubAction, IElementConfig, IHighConfig, IListData, IOpeItem, IOperateItem, IPer, IProConfigProvide, IProCurdProvide, IProFormProvideExtra, IProLayoutProvide, IProModuleProvide, IProTableProvide, IProTableProvideExtra, IRequestOpts, ISearchMode, ITableOperate, ITheme, IThemeProvide, IThemeToken, IUser, InternalNamePath, LogonUser, LogonUserKey, ModalCurdOpe, MustLogon, NamePath, PageHeader, PageHeaderProps, PaginationSlotProps, PerSuffix, Permission, PermissionProps, ProAppConfigDrawer, ProAppConfigDrawerProps, ProBaseProps, ProColumnSettingProps, ProConfig, ProConfigProps, ProCurd, ProCurdDesc, ProCurdDescConnect, ProCurdDescProps, ProCurdForm, ProCurdFormConnect, ProCurdFormPage, ProCurdFormProps, ProCurdList, ProCurdListConnect, ProCurdListPage, ProCurdListPageConnect, ProCurdListProps, ProCurdModal, ProCurdModalForm, ProCurdModalFormConnect, ProCurdModalProps, ProCurdModule, ProCurdModuleProps, ProCurdPage, ProCurdPageConnect, ProCurdProps, ProDesc, ProDescProps, ProDispatchRequestType, ProForm, ProFormItemProps, ProFormList, ProFormListProps, ProFormProps, ProGrid, ProGridProps, ProLayout, ProLayoutKey, ProLayoutProps, ProList, ProListProps, ProModalCurd, ProModalCurdProps, ProModule, ProModuleProps, ProOperate, ProOperateProps, ProPage, ProPageCurd, ProPageCurdProps, ProPageProps, ProRouterView, ProRouterViewProps, ProSearchForm, ProSearchFormProps, ProShowDate, ProShowDigit, ProShowOptions, ProShowText, ProShowTree, ProTable, ProTableProps, ProTheme, ProTip, ProTipProps, ProTypography, ProTypographyProps, ProUploadList, ProUploaderText, ProValue, ProWatermark, ProWatermarkProps, RequestAction, RouterMethods, SearchMode, SearchSlotProps, TAccess, TActionEvent, TActionState, TAppConfig, TColor, TColumn, TColumns, TConfigData, TCurdActionEvent, TDark, TDefaultValueType, TElementMap, TExecuteFunName, TExecuteItem, TExecuteName, TFile, TFormExtraMap, TInitialState, TLayoutMenu, TLayoutTabMenu, TLayoutType, TLight, TLogonUserProvide, TMeta, TOpenMenu, TOption, TOptions, TPageState, TProFormOperate, TRegisterStore, TRegisterStoreMap, TRender, TRouter, TSubType, TTableColumn, TTableColumns, TValueType, ThemeKey, ThemeToken, TreeOption, TreeOptions, Wrapper, convertPathToList, convertResData, createExpose, createExposeObj, createFormItemCompFn, createModule, createProConfig, createTheme, defaultPage, filterSlotsByPrefix, getColumnFormItemName, getColumnValueType, getFirstPropName, getRealRender, getSignValue, getValidValues, isValidConfig, isValidNode, mergeState, mergeStateToList, proBaseProps, provideProCurd, provideProFormList, provideProModule, renderColumn, renderElement, renderElements, renderInputColumn, showValue, useAccess, useAccessMgr, useAppConfig, useComposeRequestActor, useCurdCommon, useDispatchStore, useDoneRequestActor, useFailedRequestActor, useFormSubmit, useGetCompByKey, useHasPer, useHasPer2, useLogonUser, useMeta, useMetaRegister, useModuleEvent, useProConfig, useProCurd, useProForm, useProFormList, useProLayout, useProModal, useProModule, useProMsg, useProNotify, useProRouter, useProTable, useReadStore, useTheme };