@dt-frames/ui 2.0.13 → 2.0.14

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 (103) hide show
  1. package/es/components/container/index.d.ts +93 -2
  2. package/es/components/curd/index.js +6 -3
  3. package/es/components/curd/src/components/Curd.d.ts +12 -6
  4. package/es/components/curd/src/props.d.ts +6 -3
  5. package/es/components/form/index.js +15 -2
  6. package/es/components/form/index.less +2 -0
  7. package/es/components/form/src/components/FormButtons.d.ts +7 -0
  8. package/es/components/form/src/types/form.type.d.ts +3 -3
  9. package/es/components/form/src/types/items.type.d.ts +25 -0
  10. package/es/components/modal/index.js +13 -3
  11. package/es/components/modal/src/components/ModalFooter.d.ts +6 -0
  12. package/es/components/modal/src/index.d.ts +6 -0
  13. package/es/components/source/hooks/useSource.d.ts +2 -0
  14. package/es/components/source/index.js +4 -1
  15. package/es/components/source/types/source.type.d.ts +1 -0
  16. package/es/components/table/index.js +169 -84
  17. package/es/components/table/index.less +11 -0
  18. package/es/components/table/src/components/TableAction.d.ts +7 -0
  19. package/es/components/table/src/index.d.ts +7 -0
  20. package/es/components/table/src/props.d.ts +3 -0
  21. package/es/components/table/src/types/table.type.d.ts +1 -0
  22. package/es/components/upload/index.d.ts +2 -0
  23. package/es/components/upload/index.js +207 -76
  24. package/es/components/upload/index.less +31 -6
  25. package/es/components/upload/src/basicProps.d.ts +3 -5
  26. package/es/components/upload/src/components/WordView.d.ts +6 -0
  27. package/es/components/upload/src/hooks/useFile.d.ts +2 -1
  28. package/es/components/upload/src/index.d.ts +23 -18
  29. package/es/components/upload/src/utils/upload.d.ts +1 -1
  30. package/es/packages/ui/src/assets/locales/en.d.ts +103 -0
  31. package/es/packages/ui/src/assets/locales/index.d.ts +2 -0
  32. package/es/packages/ui/src/assets/locales/zh.d.ts +104 -0
  33. package/es/packages/ui/src/components/form/index.d.ts +7 -0
  34. package/es/packages/ui/src/components/form/src/components/FormButtons.d.ts +105 -0
  35. package/es/packages/ui/src/components/form/src/components/FormItem.d.ts +159 -0
  36. package/es/packages/ui/src/components/form/src/components/componentMap.d.ts +4 -0
  37. package/es/packages/ui/src/components/form/src/components/formIcon.d.ts +1223 -0
  38. package/es/packages/ui/src/components/form/src/components/formInputUseDialog.d.ts +911 -0
  39. package/es/packages/ui/src/components/form/src/components/index.d.ts +4 -0
  40. package/es/packages/ui/src/components/form/src/components/radioButton.d.ts +34 -0
  41. package/es/packages/ui/src/components/form/src/enums/index.d.ts +7 -0
  42. package/es/packages/ui/src/components/form/src/hooks/helper.d.ts +14 -0
  43. package/es/packages/ui/src/components/form/src/hooks/useForm.d.ts +6 -0
  44. package/es/packages/ui/src/components/form/src/hooks/useFormActions.d.ts +12 -0
  45. package/es/packages/ui/src/components/form/src/hooks/useFormEvent.d.ts +25 -0
  46. package/es/packages/ui/src/components/form/src/hooks/useFormValue.d.ts +3 -0
  47. package/es/packages/ui/src/components/form/src/hooks/useFormValues.d.ts +11 -0
  48. package/es/packages/ui/src/components/form/src/hooks/useLabelWidth.d.ts +6 -0
  49. package/es/packages/ui/src/components/form/src/props.d.ts +127 -0
  50. package/es/packages/ui/src/components/form/src/types/actions.type.d.ts +15 -0
  51. package/es/packages/ui/src/components/form/src/types/form.type.d.ts +79 -0
  52. package/es/packages/ui/src/components/form/src/types/items.type.d.ts +409 -0
  53. package/es/packages/ui/src/components/iframe/index.d.ts +2 -0
  54. package/es/packages/ui/src/components/modal/index.d.ts +4 -0
  55. package/es/packages/ui/src/components/modal/src/hooks/useModal.d.ts +5 -0
  56. package/es/packages/ui/src/components/modal/src/props.d.ts +101 -0
  57. package/es/packages/ui/src/components/modal/src/types/modal.type.d.ts +17 -0
  58. package/es/packages/ui/src/components/upload/index.d.ts +4 -0
  59. package/es/packages/ui/src/components/upload/src/basicProps.d.ts +87 -0
  60. package/es/packages/ui/src/components/upload/src/components/PdfView.d.ts +9 -0
  61. package/es/packages/ui/src/components/upload/src/components/WordView.d.ts +6 -0
  62. package/es/packages/ui/src/components/upload/src/hooks/useFile.d.ts +16 -0
  63. package/es/packages/ui/src/components/upload/src/index.d.ts +242 -0
  64. package/es/packages/ui/src/components/upload/src/type/file.d.ts +10 -0
  65. package/es/packages/ui/src/components/upload/src/utils/upload.d.ts +2 -0
  66. package/es/packages/ui/src/global.d.ts +7 -0
  67. package/es/packages/ui/src/theme/index.d.ts +12 -0
  68. package/es/packages/ui/src/theme/src/components/header/helper/menu-tree.d.ts +4 -0
  69. package/es/packages/ui/src/theme/src/enums/index.d.ts +1 -0
  70. package/es/packages/ui/src/theme/src/enums/theme.enum.d.ts +34 -0
  71. package/es/packages/ui/src/theme/src/hooks/index.d.ts +6 -0
  72. package/es/packages/ui/src/theme/src/hooks/useDragLine.d.ts +2 -0
  73. package/es/packages/ui/src/theme/src/hooks/useHeader.d.ts +25 -0
  74. package/es/packages/ui/src/theme/src/hooks/useMenu.d.ts +29 -0
  75. package/es/packages/ui/src/theme/src/hooks/useMultifyTab.d.ts +8 -0
  76. package/es/packages/ui/src/theme/src/hooks/useOpenKeys.d.ts +7 -0
  77. package/es/packages/ui/src/theme/src/hooks/useTheme.d.ts +9 -0
  78. package/es/packages/ui/src/theme/src/setting/theme.setting.d.ts +2 -0
  79. package/es/packages/ui/src/theme/src/stores/index.d.ts +3 -0
  80. package/es/packages/ui/src/theme/src/stores/routeReuse.store.d.ts +25 -0
  81. package/es/packages/ui/src/theme/src/stores/theme.store.d.ts +19 -0
  82. package/es/packages/ui/src/theme/src/types/index.d.ts +3 -0
  83. package/es/packages/ui/src/theme/src/types/menu.type.d.ts +15 -0
  84. package/es/packages/ui/src/theme/src/types/theme.type.d.ts +62 -0
  85. package/es/packages/ui/src/utils/withInstall.d.ts +4 -0
  86. package/es/theme/index.js +703 -264
  87. package/es/theme/index.less +162 -11
  88. package/es/theme/src/components/header/components/lock/Lockscreen.d.ts +54 -0
  89. package/es/theme/src/components/header/components/lock/Recharge.d.ts +32 -0
  90. package/es/theme/src/components/header/components/lock/index.d.ts +3 -0
  91. package/es/theme/src/components/header/components/lock/useBattery.d.ts +11 -0
  92. package/es/theme/src/components/header/components/logo.d.ts +1 -3
  93. package/es/theme/src/components/header/components/notify.d.ts +1 -3
  94. package/es/theme/src/components/header/components/user-info.d.ts +3 -3
  95. package/es/theme/src/components/header/index.d.ts +805 -809
  96. package/es/theme/src/components/header/multiple-header.d.ts +914 -918
  97. package/es/theme/src/components/sider/index.d.ts +1 -3
  98. package/es/theme/src/components/sider/mix-sider.d.ts +1 -3
  99. package/es/theme/src/hooks/useHeader.d.ts +1 -0
  100. package/es/theme/src/index.d.ts +2102 -2059
  101. package/manualContentPath.js +4 -0
  102. package/package.json +2 -1
  103. package/vite.config.ts +1 -0
@@ -36,6 +36,18 @@
36
36
  // table相关
37
37
  @table-action-icon-color: #999;
38
38
 
39
+ // 小尺寸
40
+ @small-font-size: 13px;
41
+ @small-height: 30px;
42
+
43
+ // 中尺寸
44
+ @middle-font-size: 14px;
45
+ @middle-height: 32px;
46
+
47
+ // 大尺寸
48
+ @large-font-size: 14px;
49
+ @large-height: 34px;
50
+
39
51
  /* 滚动条美化 */
40
52
  ::-webkit-scrollbar {
41
53
  width: 7px;
@@ -59,8 +71,8 @@
59
71
 
60
72
  .ant-btn.ant-btn-sm,
61
73
  .ant-input-search-small .ant-btn.ant-btn-sm{
62
- font-size: 13px;
63
- height: 30px;
74
+ font-size: @small-font-size;
75
+ height: @small-height;
64
76
  display: flex;
65
77
  align-items: center;
66
78
  justify-content: center;
@@ -68,8 +80,8 @@
68
80
 
69
81
  .dt-theme{
70
82
  .ant-input-sm:not(textarea){
71
- height: 30px;
72
- font-size: 12px;
83
+ height: @small-height;
84
+ font-size: @small-font-size;
73
85
  }
74
86
 
75
87
  .dt-theme-main {
@@ -83,8 +95,8 @@
83
95
  }
84
96
 
85
97
  .ant-btn-lg{
86
- font-size: 14px;
87
- height: 34px;
98
+ font-size: @large-font-size;
99
+ height: @large-height;
88
100
  display: flex;
89
101
  align-items: center;
90
102
  }
@@ -118,6 +130,12 @@
118
130
  }
119
131
  }
120
132
 
133
+ .ant-avatar-string{
134
+ width: 100%;
135
+ height: 100%;
136
+ transform: scale(1) translateX(-50%) !important;
137
+ }
138
+
121
139
  .dt-sideBar{
122
140
  background: @menu-bg-color;
123
141
 
@@ -290,18 +308,23 @@
290
308
  }
291
309
  }
292
310
 
311
+ &-small{
312
+ font-size: @small-font-size;
313
+ }
314
+
293
315
  &-middle{
316
+ font-size: @middle-font-size;
294
317
  .dt-header-action {
295
318
  i {
296
319
  font-size: 20px;
297
320
  }
298
321
  span{
299
- font-size: 13px;
322
+ font-size: @middle-font-size;
300
323
  }
301
324
  }
302
325
 
303
326
  .dt-reuse-tabs .ant-tabs-card > .ant-tabs-nav .ant-tabs-tab span {
304
- font-size: 13px;
327
+ font-size: @small-font-size;
305
328
  }
306
329
 
307
330
  .dt-reuse-tabs .ant-tabs-extra-content i{
@@ -309,20 +332,21 @@
309
332
  }
310
333
 
311
334
  .ant-btn{
312
- font-size: 13px;
335
+ font-size: @middle-font-size;
313
336
  }
314
337
  }
315
338
 
316
339
  &-large{
340
+ font-size: @large-font-size;
317
341
  .dt-sideBar .ant-menu .ant-menu-item, .dt-sideBar .ant-menu .ant-menu-submenu-title {
318
342
  height: 48px !important;
319
343
  }
320
344
  .dt-menu-item span{
321
- font-size: 14px !important;
345
+ font-size: @large-font-size !important;
322
346
  }
323
347
 
324
348
  .dt-reuse-tabs .ant-tabs-card > .ant-tabs-nav .ant-tabs-tab span {
325
- font-size: 13px;
349
+ font-size: @small-font-size;
326
350
  }
327
351
 
328
352
  .dt-reuse-tabs .ant-tabs-extra-content i{
@@ -804,6 +828,117 @@
804
828
  font-size: 13px;
805
829
  }
806
830
 
831
+ .dt-lock-page{
832
+ bottom: 20vh;
833
+ left: 50vw;
834
+ height: 500px;
835
+ width: 300px;
836
+ transform: translateX(-50%);
837
+ &>div:first-of-type{
838
+ top: 20%;
839
+ width: 300px;
840
+ }
841
+
842
+ &>div:nth-of-type(2) {
843
+ width: 300px;
844
+ height: 400px;
845
+ filter: contrast(15) hue-rotate(0);
846
+ animation: hueRotate 10s infinite linear;
847
+ }
848
+
849
+ .circle{
850
+ width: 300px;
851
+ height: 300px;
852
+ filter: blur(8px);
853
+
854
+ &::after {
855
+ position: absolute;
856
+ top: 40%;
857
+ left: 50%;
858
+ width: 200px;
859
+ height: 200px;
860
+ background-color: #00ff6f;
861
+ border-radius: 42% 38% 62% 49% / 45%;
862
+ content: '';
863
+ transform: translate(-50%, -50%) rotate(0);
864
+ animation: circleRotate 10s infinite linear;
865
+ }
866
+
867
+ &::before {
868
+ position: absolute;
869
+ top: 40%;
870
+ left: 50%;
871
+ z-index: 10;
872
+ width: 176px;
873
+ height: 176px;
874
+ background-color: #000;
875
+ border-radius: 50%;
876
+ content: '';
877
+ transform: translate(-50%, -50%);
878
+ }
879
+ }
880
+
881
+ .bubbles{
882
+ width: 100px;
883
+ height: 40px;
884
+ background-color: #00ff6f;
885
+ border-radius: 100px 100px 0 0;
886
+ filter: blur(5px);
887
+ transform: translate(-50%, 0);
888
+
889
+ li {
890
+ position: absolute;
891
+ background: #00ff6f;
892
+ border-radius: 50%;
893
+ }
894
+ }
895
+
896
+ .charging{
897
+ font-size: 20px;
898
+ text-align: center;
899
+ }
900
+ }
901
+
902
+ .lockscreen{
903
+ font-size: 34px;
904
+
905
+ .local-time{
906
+ bottom: 60px;
907
+ left: 60px;
908
+ font-family: helvetica;
909
+
910
+ .time {
911
+ font-size: 70px;
912
+ }
913
+
914
+ .date {
915
+ font-size: 40px;
916
+ }
917
+ }
918
+
919
+ .computer-status{
920
+ bottom: 60px;
921
+ right: 60px;
922
+ font-size: 24px;
923
+
924
+ .network {
925
+ position: relative;
926
+
927
+ &.offline::before {
928
+ content: '';
929
+ position: absolute;
930
+ left: 50%;
931
+ top: 50%;
932
+ width: 2px;
933
+ height: 28px;
934
+ transform: translate(-50%, -50%) rotate(45deg);
935
+ background-color: red;
936
+ z-index: 10;
937
+ }
938
+ }
939
+ }
940
+ }
941
+
807
942
  @keyframes slideLeft {
808
943
  from {
809
944
  transform: translateX(-100%);
@@ -811,4 +946,20 @@
811
946
  to{
812
947
  transform: translateX(0);
813
948
  }
949
+ }
950
+
951
+ @keyframes circleRotate {
952
+ 50% {
953
+ border-radius: 45% / 42% 38% 58% 49%;
954
+ }
955
+
956
+ 100% {
957
+ transform: translate(-50%, -50%) rotate(720deg);
958
+ }
959
+ }
960
+
961
+ @keyframes hueRotate {
962
+ 100% {
963
+ filter: contrast(15) hue-rotate(360deg);
964
+ }
814
965
  }
@@ -0,0 +1,54 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{}, {
2
+ state: {
3
+ showLogin: boolean;
4
+ loginLoading: boolean;
5
+ isLoginError: boolean;
6
+ errorMsg: string;
7
+ loginParams: {
8
+ username: string;
9
+ password: string;
10
+ };
11
+ };
12
+ onLockLogin: (value: boolean) => boolean;
13
+ battery: import("vue").Ref<{
14
+ charging: boolean;
15
+ chargingTime: number;
16
+ dischargingTime: number;
17
+ level: number;
18
+ }>;
19
+ batteryStatus: import("vue").ComputedRef<"已充满" | "充电中" | "已断开电源">;
20
+ calcDischargingTime: import("vue").ComputedRef<string>;
21
+ calcChargingTime: import("vue").ComputedRef<string>;
22
+ Recharge: import("vue").DefineComponent<{
23
+ battery: {
24
+ type: ObjectConstructor;
25
+ };
26
+ calcDischargingTime: {
27
+ type: StringConstructor;
28
+ };
29
+ calcChargingTime: {
30
+ type: StringConstructor;
31
+ };
32
+ batteryStatus: {
33
+ type: StringConstructor;
34
+ validator: (val: string) => boolean;
35
+ };
36
+ }, {
37
+ props: any;
38
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
39
+ battery: {
40
+ type: ObjectConstructor;
41
+ };
42
+ calcDischargingTime: {
43
+ type: StringConstructor;
44
+ };
45
+ calcChargingTime: {
46
+ type: StringConstructor;
47
+ };
48
+ batteryStatus: {
49
+ type: StringConstructor;
50
+ validator: (val: string) => boolean;
51
+ };
52
+ }>>, {}>;
53
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
54
+ export default _sfc_main;
@@ -0,0 +1,32 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ battery: {
3
+ type: ObjectConstructor;
4
+ };
5
+ calcDischargingTime: {
6
+ type: StringConstructor;
7
+ };
8
+ calcChargingTime: {
9
+ type: StringConstructor;
10
+ };
11
+ batteryStatus: {
12
+ type: StringConstructor;
13
+ validator: (val: string) => boolean;
14
+ };
15
+ }, {
16
+ props: any;
17
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ battery: {
19
+ type: ObjectConstructor;
20
+ };
21
+ calcDischargingTime: {
22
+ type: StringConstructor;
23
+ };
24
+ calcChargingTime: {
25
+ type: StringConstructor;
26
+ };
27
+ batteryStatus: {
28
+ type: StringConstructor;
29
+ validator: (val: string) => boolean;
30
+ };
31
+ }>>, {}>;
32
+ export default _sfc_main;
@@ -0,0 +1,3 @@
1
+ import { default as Recharge } from "./Recharge";
2
+ import { default as LockScreen } from "./Lockscreen";
3
+ export { Recharge, LockScreen };
@@ -0,0 +1,11 @@
1
+ export declare function useBattery(): {
2
+ batteryStatus: import("vue").ComputedRef<"已充满" | "充电中" | "已断开电源">;
3
+ calcDischargingTime: import("vue").ComputedRef<string>;
4
+ calcChargingTime: import("vue").ComputedRef<string>;
5
+ battery: import("vue").Ref<{
6
+ charging: boolean;
7
+ chargingTime: number;
8
+ dischargingTime: number;
9
+ level: number;
10
+ }>;
11
+ };
@@ -16,9 +16,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
16
16
  (key: string, list: unknown[]): string;
17
17
  (key: string, named: Record<string, unknown>): string;
18
18
  };
19
- slots: {
20
- [name: string]: import("vue").Slot;
21
- };
19
+ slots: import("vue").Ref<any>;
22
20
  title: string;
23
21
  getLogoWidth: import("vue").ComputedRef<string | number>;
24
22
  props: any;
@@ -1,7 +1,5 @@
1
1
  declare const _sfc_main: import("vue").DefineComponent<{}, {
2
- slots: {
3
- [name: string]: import("vue").Slot;
4
- };
2
+ slots: import("vue").Ref<any>;
5
3
  readonly DtSlotContainer: import("../../../../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{
6
4
  template: {
7
5
  type: FunctionConstructor;
@@ -9,12 +9,12 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
9
9
  };
10
10
  go: (path: string, isReplace?: boolean) => void;
11
11
  getShowLoginOut: import("vue").ComputedRef<boolean>;
12
+ getLockscreen: import("vue").ComputedRef<boolean>;
12
13
  loginOutClick: () => {};
13
- slots: {
14
- [name: string]: import("vue").Slot;
15
- };
14
+ slots: import("vue").Ref<any>;
16
15
  getUserInfo: any;
17
16
  signOut: () => void;
17
+ lockScreen: () => void;
18
18
  readonly DtSlotContainer: import("../../../../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{
19
19
  template: {
20
20
  type: FunctionConstructor;