@vue-start/pro 0.5.50 → 0.5.51

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/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 0.5.51
7
+
8
+ - fix: 左侧菜单收起 css 类精确,由.pro-layout.mini 改为 .pro-layout.has-left-menu.mini
9
+ - fix: ProTheme 新增 lightThemeToken、darkThemeToken,支持 ThemeToken 自定义
10
+ - fix: FormItem label 插槽重写 bug 修复;
11
+ - fix: ProLayout routeOpts(ProRouterView 组件) 支持 tagsCache 配置;ProLayout menus 项新增 keep 配置(加入 keep-live 缓存);
12
+
6
13
  # 0.5.50
7
14
 
8
15
  - fix: ProCurdModule ref 穿透;
package/dist/index.css CHANGED
@@ -89,7 +89,7 @@
89
89
  --pro-left-menu-wid: 220px;
90
90
  }
91
91
 
92
- .pro-layout.mini {
92
+ .pro-layout.has-left-menu.mini {
93
93
  --pro-left-menu-wid: 64px;
94
94
  }
95
95
 
package/dist/index.d.ts CHANGED
@@ -2545,6 +2545,7 @@ declare type TLayoutMenu = {
2545
2545
  value: string;
2546
2546
  label: string;
2547
2547
  hide: boolean;
2548
+ keep: boolean;
2548
2549
  [k: string]: any;
2549
2550
  };
2550
2551
  declare type TLayoutTabMenu = TLayoutMenu & {
@@ -2570,6 +2571,10 @@ declare const routerViewProps: () => {
2570
2571
  type: PropType<string[]>;
2571
2572
  default: never[];
2572
2573
  };
2574
+ tagsCache: {
2575
+ type: BooleanConstructor;
2576
+ default: boolean;
2577
+ };
2573
2578
  };
2574
2579
  declare type ProRouterViewProps = Partial<ExtractPropTypes<ReturnType<typeof routerViewProps>>>;
2575
2580
  declare const ProRouterView: vue.DefineComponent<Partial<ExtractPropTypes<{
@@ -2577,11 +2582,19 @@ declare const ProRouterView: vue.DefineComponent<Partial<ExtractPropTypes<{
2577
2582
  type: PropType<string[]>;
2578
2583
  default: never[];
2579
2584
  };
2585
+ tagsCache: {
2586
+ type: BooleanConstructor;
2587
+ default: boolean;
2588
+ };
2580
2589
  }>>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<Partial<ExtractPropTypes<{
2581
2590
  includes: {
2582
2591
  type: PropType<string[]>;
2583
2592
  default: never[];
2584
2593
  };
2594
+ tagsCache: {
2595
+ type: BooleanConstructor;
2596
+ default: boolean;
2597
+ };
2585
2598
  }>>>, {}>;
2586
2599
 
2587
2600
  declare const layoutProps: () => {
@@ -2646,6 +2659,10 @@ declare const layoutProps: () => {
2646
2659
  type: PropType<string[]>;
2647
2660
  default: never[];
2648
2661
  };
2662
+ tagsCache: {
2663
+ type: BooleanConstructor;
2664
+ default: boolean;
2665
+ };
2649
2666
  }>>>;
2650
2667
  default: undefined;
2651
2668
  };
@@ -2668,12 +2685,14 @@ declare const layoutProps: () => {
2668
2685
  value: string;
2669
2686
  label: string;
2670
2687
  hide?: string | undefined;
2688
+ keep?: string | undefined;
2671
2689
  }>;
2672
2690
  default: {
2673
2691
  children: string;
2674
2692
  value: string;
2675
2693
  label: string;
2676
2694
  hide: string;
2695
+ keep: string;
2677
2696
  };
2678
2697
  };
2679
2698
  convertSubMenuProps: {
@@ -2755,6 +2774,10 @@ declare const ProLayout: vue.DefineComponent<Partial<ExtractPropTypes<{
2755
2774
  type: PropType<string[]>;
2756
2775
  default: never[];
2757
2776
  };
2777
+ tagsCache: {
2778
+ type: BooleanConstructor;
2779
+ default: boolean;
2780
+ };
2758
2781
  }>>>;
2759
2782
  default: undefined;
2760
2783
  };
@@ -2777,12 +2800,14 @@ declare const ProLayout: vue.DefineComponent<Partial<ExtractPropTypes<{
2777
2800
  value: string;
2778
2801
  label: string;
2779
2802
  hide?: string | undefined;
2803
+ keep?: string | undefined;
2780
2804
  }>;
2781
2805
  default: {
2782
2806
  children: string;
2783
2807
  value: string;
2784
2808
  label: string;
2785
2809
  hide: string;
2810
+ keep: string;
2786
2811
  };
2787
2812
  };
2788
2813
  convertSubMenuProps: {
@@ -2862,6 +2887,10 @@ declare const ProLayout: vue.DefineComponent<Partial<ExtractPropTypes<{
2862
2887
  type: PropType<string[]>;
2863
2888
  default: never[];
2864
2889
  };
2890
+ tagsCache: {
2891
+ type: BooleanConstructor;
2892
+ default: boolean;
2893
+ };
2865
2894
  }>>>;
2866
2895
  default: undefined;
2867
2896
  };
@@ -2884,12 +2913,14 @@ declare const ProLayout: vue.DefineComponent<Partial<ExtractPropTypes<{
2884
2913
  value: string;
2885
2914
  label: string;
2886
2915
  hide?: string | undefined;
2916
+ keep?: string | undefined;
2887
2917
  }>;
2888
2918
  default: {
2889
2919
  children: string;
2890
2920
  value: string;
2891
2921
  label: string;
2892
2922
  hide: string;
2923
+ keep: string;
2893
2924
  };
2894
2925
  };
2895
2926
  convertSubMenuProps: {
@@ -3388,6 +3419,84 @@ declare const ProTheme: vue.DefineComponent<{
3388
3419
  createCssVar: {
3389
3420
  type: PropType<(t: ITheme, mode: string) => Record<string, string | number>>;
3390
3421
  };
3422
+ lightThemeToken: {
3423
+ type: PropType<IThemeToken>;
3424
+ default: {
3425
+ color: {
3426
+ primary: string;
3427
+ success: string;
3428
+ warning: string;
3429
+ danger: string;
3430
+ error: string;
3431
+ info: string;
3432
+ };
3433
+ extraColor: {
3434
+ text: {
3435
+ base: string;
3436
+ regular: string;
3437
+ secondary: string;
3438
+ placeholder: string;
3439
+ disabled: string;
3440
+ };
3441
+ border: {
3442
+ base: string;
3443
+ light: string;
3444
+ };
3445
+ bg: {
3446
+ base: string;
3447
+ light: string;
3448
+ };
3449
+ mode: {
3450
+ base: string;
3451
+ rgb: string;
3452
+ reverse: string;
3453
+ "reverse-rgb": string;
3454
+ };
3455
+ };
3456
+ radius: string;
3457
+ lineHeight: number;
3458
+ spacing: number;
3459
+ };
3460
+ };
3461
+ darkThemeToken: {
3462
+ type: PropType<IThemeToken>;
3463
+ default: {
3464
+ extraColor: {
3465
+ text: {
3466
+ base: string;
3467
+ regular: string;
3468
+ secondary: string;
3469
+ placeholder: string;
3470
+ disabled: string;
3471
+ };
3472
+ border: {
3473
+ base: string;
3474
+ light: string;
3475
+ };
3476
+ bg: {
3477
+ base: string;
3478
+ light: string;
3479
+ };
3480
+ mode: {
3481
+ base: string;
3482
+ rgb: string;
3483
+ reverse: string;
3484
+ "reverse-rgb": string;
3485
+ };
3486
+ };
3487
+ color: {
3488
+ primary: string;
3489
+ success: string;
3490
+ warning: string;
3491
+ danger: string;
3492
+ error: string;
3493
+ info: string;
3494
+ };
3495
+ radius: string;
3496
+ lineHeight: number;
3497
+ spacing: number;
3498
+ };
3499
+ };
3391
3500
  }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
3392
3501
  theme: {
3393
3502
  type: ObjectConstructor;
@@ -3417,8 +3526,88 @@ declare const ProTheme: vue.DefineComponent<{
3417
3526
  createCssVar: {
3418
3527
  type: PropType<(t: ITheme, mode: string) => Record<string, string | number>>;
3419
3528
  };
3529
+ lightThemeToken: {
3530
+ type: PropType<IThemeToken>;
3531
+ default: {
3532
+ color: {
3533
+ primary: string;
3534
+ success: string;
3535
+ warning: string;
3536
+ danger: string;
3537
+ error: string;
3538
+ info: string;
3539
+ };
3540
+ extraColor: {
3541
+ text: {
3542
+ base: string;
3543
+ regular: string;
3544
+ secondary: string;
3545
+ placeholder: string;
3546
+ disabled: string;
3547
+ };
3548
+ border: {
3549
+ base: string;
3550
+ light: string;
3551
+ };
3552
+ bg: {
3553
+ base: string;
3554
+ light: string;
3555
+ };
3556
+ mode: {
3557
+ base: string;
3558
+ rgb: string;
3559
+ reverse: string;
3560
+ "reverse-rgb": string;
3561
+ };
3562
+ };
3563
+ radius: string;
3564
+ lineHeight: number;
3565
+ spacing: number;
3566
+ };
3567
+ };
3568
+ darkThemeToken: {
3569
+ type: PropType<IThemeToken>;
3570
+ default: {
3571
+ extraColor: {
3572
+ text: {
3573
+ base: string;
3574
+ regular: string;
3575
+ secondary: string;
3576
+ placeholder: string;
3577
+ disabled: string;
3578
+ };
3579
+ border: {
3580
+ base: string;
3581
+ light: string;
3582
+ };
3583
+ bg: {
3584
+ base: string;
3585
+ light: string;
3586
+ };
3587
+ mode: {
3588
+ base: string;
3589
+ rgb: string;
3590
+ reverse: string;
3591
+ "reverse-rgb": string;
3592
+ };
3593
+ };
3594
+ color: {
3595
+ primary: string;
3596
+ success: string;
3597
+ warning: string;
3598
+ danger: string;
3599
+ error: string;
3600
+ info: string;
3601
+ };
3602
+ radius: string;
3603
+ lineHeight: number;
3604
+ spacing: number;
3605
+ };
3606
+ };
3420
3607
  }>>, {
3421
3608
  global: boolean;
3609
+ lightThemeToken: IThemeToken;
3610
+ darkThemeToken: IThemeToken;
3422
3611
  }>;
3423
3612
 
3424
3613
  declare const useAppConfig: () => {