@dt-frames/ui 2.0.14 → 2.0.15

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.
@@ -703,6 +703,17 @@
703
703
  width: 0.7em;
704
704
  fill: @white !important;
705
705
  }
706
+
707
+ &::before{
708
+ content: ' ';
709
+ width: 6px;
710
+ height: 6px;
711
+ border-radius: 50%;
712
+ background-color: #fff;
713
+ position: absolute;
714
+ left: 4px;
715
+ top: 11px;
716
+ }
706
717
  }
707
718
 
708
719
  .ant-tabs-nav > div:nth-child(1) {
@@ -937,6 +948,18 @@
937
948
  }
938
949
  }
939
950
  }
951
+
952
+ .login-box{
953
+ font-size: 14px;
954
+ text-align: center;
955
+ img{
956
+ width: 100px;
957
+ height: 100px;
958
+ border-radius: 50%;
959
+ margin: 10px auto;
960
+ border: 3px solid rgba(255,255,255,0.8);
961
+ }
962
+ }
940
963
  }
941
964
 
942
965
  @keyframes slideLeft {
@@ -1,11 +1,21 @@
1
1
  declare const _sfc_main: import("vue").DefineComponent<{}, {
2
+ go: (path: string, isReplace?: boolean) => void;
3
+ slots: import("vue").Ref<any>;
4
+ loginOutClick: () => {};
5
+ getUserInfo: any;
6
+ useLockscreen: import("pinia").Store<"lockscreen", import('../../../../../src/stores/lockscreen.store').ILockscreenState, {}, {
7
+ setLock(payload: any, pwd?: string): void;
8
+ }>;
9
+ online: import("vue").ComputedRef<boolean>;
10
+ month: import("vue").Ref<any>;
11
+ week: import("vue").Ref<any>;
12
+ date: import("vue").Ref<any>;
13
+ hour: import("vue").Ref<any>;
14
+ minute: import("vue").Ref<any>;
2
15
  state: {
3
16
  showLogin: boolean;
4
17
  loginLoading: boolean;
5
- isLoginError: boolean;
6
- errorMsg: string;
7
18
  loginParams: {
8
- username: string;
9
19
  password: string;
10
20
  };
11
21
  };
@@ -19,6 +29,9 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
19
29
  batteryStatus: import("vue").ComputedRef<"已充满" | "充电中" | "已断开电源">;
20
30
  calcDischargingTime: import("vue").ComputedRef<string>;
21
31
  calcChargingTime: import("vue").ComputedRef<string>;
32
+ goLogin: () => void;
33
+ resetLockInfo: () => void;
34
+ onLogin: () => void;
22
35
  Recharge: import("vue").DefineComponent<{
23
36
  battery: {
24
37
  type: ObjectConstructor;
@@ -50,5 +63,23 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
50
63
  validator: (val: string) => boolean;
51
64
  };
52
65
  }>>, {}>;
66
+ readonly DtSlotContainer: import("../../../../../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{
67
+ template: {
68
+ type: FunctionConstructor;
69
+ };
70
+ data: {
71
+ type: ObjectConstructor;
72
+ };
73
+ }, {
74
+ props: any;
75
+ Container: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
76
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
77
+ template: {
78
+ type: FunctionConstructor;
79
+ };
80
+ data: {
81
+ type: ObjectConstructor;
82
+ };
83
+ }>>, {}>>;
53
84
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
54
85
  export default _sfc_main;
@@ -1,3 +1,2 @@
1
- import { default as Recharge } from "./Recharge";
2
1
  import { default as LockScreen } from "./Lockscreen";
3
- export { Recharge, LockScreen };
2
+ export { LockScreen };
@@ -0,0 +1,7 @@
1
+ export declare function useTime(): {
2
+ month: import("vue").Ref<any>;
3
+ week: import("vue").Ref<any>;
4
+ date: import("vue").Ref<any>;
5
+ hour: import("vue").Ref<any>;
6
+ minute: import("vue").Ref<any>;
7
+ };
@@ -11,10 +11,17 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
11
11
  getShowLoginOut: import("vue").ComputedRef<boolean>;
12
12
  getLockscreen: import("vue").ComputedRef<boolean>;
13
13
  loginOutClick: () => {};
14
+ useLockscreen: import("pinia").Store<"lockscreen", import('../../../../src/stores/lockscreen.store').ILockscreenState, {}, {
15
+ setLock(payload: any, pwd?: string): void;
16
+ }>;
14
17
  slots: import("vue").Ref<any>;
18
+ popoverVisible: import("vue").Ref<boolean>;
19
+ visible: import("vue").Ref<boolean>;
20
+ password: any;
15
21
  getUserInfo: any;
16
22
  signOut: () => void;
17
23
  lockScreen: () => void;
24
+ onLock: () => void;
18
25
  readonly DtSlotContainer: import("../../../../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{
19
26
  template: {
20
27
  type: FunctionConstructor;
@@ -534,10 +534,17 @@ declare const _sfc_main: import("vue").DefineComponent<{
534
534
  getShowLoginOut: import("vue").ComputedRef<boolean>;
535
535
  getLockscreen: import("vue").ComputedRef<boolean>;
536
536
  loginOutClick: () => {};
537
+ useLockscreen: import("pinia").Store<"lockscreen", import("../../stores/lockscreen.store").ILockscreenState, {}, {
538
+ setLock(payload: any, pwd?: string): void;
539
+ }>;
537
540
  slots: import("vue").Ref<any>;
541
+ popoverVisible: import("vue").Ref<boolean>;
542
+ visible: import("vue").Ref<boolean>;
543
+ password: any;
538
544
  getUserInfo: any;
539
545
  signOut: () => void;
540
546
  lockScreen: () => void;
547
+ onLock: () => void;
541
548
  readonly DtSlotContainer: import("../../../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{
542
549
  template: {
543
550
  type: FunctionConstructor;
@@ -557,10 +557,17 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
557
557
  getShowLoginOut: import("vue").ComputedRef<boolean>;
558
558
  getLockscreen: import("vue").ComputedRef<boolean>;
559
559
  loginOutClick: () => {};
560
+ useLockscreen: import("pinia").Store<"lockscreen", import("../../stores/lockscreen.store").ILockscreenState, {}, {
561
+ setLock(payload: any, pwd?: string): void;
562
+ }>;
560
563
  slots: import("vue").Ref<any>;
564
+ popoverVisible: import("vue").Ref<boolean>;
565
+ visible: import("vue").Ref<boolean>;
566
+ password: any;
561
567
  getUserInfo: any;
562
568
  signOut: () => void;
563
569
  lockScreen: () => void;
570
+ onLock: () => void;
564
571
  readonly DtSlotContainer: import("../../../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{
565
572
  template: {
566
573
  type: FunctionConstructor;
@@ -5,6 +5,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
5
5
  getIsZH: import("vue").ComputedRef<boolean>;
6
6
  getHeaderHeight: import("vue").ComputedRef<number>;
7
7
  getUiSize: import("vue").ComputedRef<import("./enums").UiSize>;
8
+ getLockscreen: import("vue").ComputedRef<boolean>;
8
9
  getSplit: import("vue").ComputedRef<boolean>;
9
10
  getShowMenu: import("vue").ComputedRef<boolean>;
10
11
  getShowSidebar: import("vue").ComputedRef<boolean>;
@@ -12,6 +13,10 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
12
13
  getFooter: import("vue").ComputedRef<import("./types/theme.type").FooterOptions>;
13
14
  getShowFooter: import("vue").ComputedRef<any>;
14
15
  height: any;
16
+ useLockscreen: import("pinia").Store<"lockscreen", import("./stores/lockscreen.store").ILockscreenState, {}, {
17
+ setLock(payload: any, pwd?: string): void;
18
+ }>;
19
+ isLock: import("vue").ComputedRef<boolean>;
15
20
  layoutClass: import("vue").ComputedRef<string>;
16
21
  layoutOption: import("vue").ComputedRef<{
17
22
  paddingTop: string;
@@ -572,10 +577,17 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
572
577
  getShowLoginOut: import("vue").ComputedRef<boolean>;
573
578
  getLockscreen: import("vue").ComputedRef<boolean>;
574
579
  loginOutClick: () => {};
580
+ useLockscreen: import("pinia").Store<"lockscreen", import("./stores/lockscreen.store").ILockscreenState, {}, {
581
+ setLock(payload: any, pwd?: string): void;
582
+ }>;
575
583
  slots: import("vue").Ref<any>;
584
+ popoverVisible: import("vue").Ref<boolean>;
585
+ visible: import("vue").Ref<boolean>;
586
+ password: any;
576
587
  getUserInfo: any;
577
588
  signOut: () => void;
578
589
  lockScreen: () => void;
590
+ onLock: () => void;
579
591
  readonly DtSlotContainer: import("../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{
580
592
  template: {
581
593
  type: FunctionConstructor;
@@ -1630,10 +1642,17 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
1630
1642
  getShowLoginOut: import("vue").ComputedRef<boolean>;
1631
1643
  getLockscreen: import("vue").ComputedRef<boolean>;
1632
1644
  loginOutClick: () => {};
1645
+ useLockscreen: import("pinia").Store<"lockscreen", import("./stores/lockscreen.store").ILockscreenState, {}, {
1646
+ setLock(payload: any, pwd?: string): void;
1647
+ }>;
1633
1648
  slots: import("vue").Ref<any>;
1649
+ popoverVisible: import("vue").Ref<boolean>;
1650
+ visible: import("vue").Ref<boolean>;
1651
+ password: any;
1634
1652
  getUserInfo: any;
1635
1653
  signOut: () => void;
1636
1654
  lockScreen: () => void;
1655
+ onLock: () => void;
1637
1656
  readonly DtSlotContainer: import("../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{
1638
1657
  template: {
1639
1658
  type: FunctionConstructor;
@@ -2044,13 +2063,23 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
2044
2063
  getCaches: import("vue").ComputedRef<string[]>;
2045
2064
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2046
2065
  readonly LockScreen: import("vue").DefineComponent<{}, {
2066
+ go: (path: string, isReplace?: boolean) => void;
2067
+ slots: import("vue").Ref<any>;
2068
+ loginOutClick: () => {};
2069
+ getUserInfo: any;
2070
+ useLockscreen: import("pinia").Store<"lockscreen", import("./stores/lockscreen.store").ILockscreenState, {}, {
2071
+ setLock(payload: any, pwd?: string): void;
2072
+ }>;
2073
+ online: import("vue").ComputedRef<boolean>;
2074
+ month: import("vue").Ref<any>;
2075
+ week: import("vue").Ref<any>;
2076
+ date: import("vue").Ref<any>;
2077
+ hour: import("vue").Ref<any>;
2078
+ minute: import("vue").Ref<any>;
2047
2079
  state: {
2048
2080
  showLogin: boolean;
2049
2081
  loginLoading: boolean;
2050
- isLoginError: boolean;
2051
- errorMsg: string;
2052
2082
  loginParams: {
2053
- username: string;
2054
2083
  password: string;
2055
2084
  };
2056
2085
  };
@@ -2064,6 +2093,9 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
2064
2093
  batteryStatus: import("vue").ComputedRef<"已充满" | "充电中" | "已断开电源">;
2065
2094
  calcDischargingTime: import("vue").ComputedRef<string>;
2066
2095
  calcChargingTime: import("vue").ComputedRef<string>;
2096
+ goLogin: () => void;
2097
+ resetLockInfo: () => void;
2098
+ onLogin: () => void;
2067
2099
  Recharge: import("vue").DefineComponent<{
2068
2100
  battery: {
2069
2101
  type: ObjectConstructor;
@@ -2095,6 +2127,24 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
2095
2127
  validator: (val: string) => boolean;
2096
2128
  };
2097
2129
  }>>, {}>;
2130
+ readonly DtSlotContainer: import("../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{
2131
+ template: {
2132
+ type: FunctionConstructor;
2133
+ };
2134
+ data: {
2135
+ type: ObjectConstructor;
2136
+ };
2137
+ }, {
2138
+ props: any;
2139
+ Container: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
2140
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2141
+ template: {
2142
+ type: FunctionConstructor;
2143
+ };
2144
+ data: {
2145
+ type: ObjectConstructor;
2146
+ };
2147
+ }>>, {}>>;
2098
2148
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2099
2149
  readonly zhCN: import("ant-design-vue/es/locale-provider").Locale;
2100
2150
  readonly en: import("ant-design-vue/es/locale-provider").Locale;
@@ -0,0 +1,7 @@
1
+ export declare const LOCKSCREEN = "_LOCKSCREEN";
2
+ export declare type ILockscreenState = {
3
+ isLock: boolean;
4
+ };
5
+ export declare const useLockscreenStore: import("pinia").StoreDefinition<"lockscreen", ILockscreenState, {}, {
6
+ setLock(payload: any, pwd?: string): void;
7
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-frames/ui",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "main": "./src/index.ts",