@dt-frames/ui 1.0.52 → 2.0.0

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 (183) hide show
  1. package/README.md +18 -1
  2. package/package.json +62 -40
  3. package/es/assets/data/icons/actions.d.ts +0 -1
  4. package/es/assets/data/icons/actions.ts +0 -427
  5. package/es/assets/data/icons/code.d.ts +0 -1
  6. package/es/assets/data/icons/code.ts +0 -10
  7. package/es/assets/data/icons/commuticate.d.ts +0 -1
  8. package/es/assets/data/icons/commuticate.ts +0 -190
  9. package/es/assets/data/icons/currency.d.ts +0 -1
  10. package/es/assets/data/icons/currency.ts +0 -46
  11. package/es/assets/data/icons/devices.d.ts +0 -1
  12. package/es/assets/data/icons/devices.ts +0 -128
  13. package/es/assets/data/icons/edit.d.ts +0 -1
  14. package/es/assets/data/icons/edit.ts +0 -165
  15. package/es/assets/data/icons/file.d.ts +0 -1
  16. package/es/assets/data/icons/file.ts +0 -104
  17. package/es/assets/data/icons/math.d.ts +0 -1
  18. package/es/assets/data/icons/math.ts +0 -53
  19. package/es/assets/data/icons/message.d.ts +0 -1
  20. package/es/assets/data/icons/message.ts +0 -75
  21. package/es/assets/data/icons/navigate.d.ts +0 -1
  22. package/es/assets/data/icons/navigate.ts +0 -181
  23. package/es/assets/data/icons/other.d.ts +0 -1
  24. package/es/assets/data/icons/other.ts +0 -333
  25. package/es/assets/data/icons.d.ts +0 -4
  26. package/es/assets/data/icons.ts +0 -58
  27. package/es/assets/imgs/header/avatar.png +0 -0
  28. package/es/assets/imgs/logo/logo.png +0 -0
  29. package/es/assets/imgs/table/empty.png +0 -0
  30. package/es/assets/locales/en.json +0 -97
  31. package/es/assets/locales/zh.json +0 -100
  32. package/es/assets/style/index.less +0 -10
  33. package/es/assets/style/reset.less +0 -17
  34. package/es/components/container/index.d.ts +0 -3
  35. package/es/components/container/index.less +0 -85
  36. package/es/components/container/src/bar.d.ts +0 -14
  37. package/es/components/container/src/scroll-bar.d.ts +0 -93
  38. package/es/components/container/src/scroll-container.d.ts +0 -99
  39. package/es/components/curd/index.d.ts +0 -2
  40. package/es/components/curd/src/components/dialog.d.ts +0 -1505
  41. package/es/components/curd/src/components/props.d.ts +0 -34
  42. package/es/components/curd/src/hooks/useCurd.d.ts +0 -17
  43. package/es/components/curd/src/types/curd.type.d.ts +0 -22
  44. package/es/components/forms/index.d.ts +0 -5
  45. package/es/components/forms/index.less +0 -107
  46. package/es/components/forms/src/componentMap.d.ts +0 -4
  47. package/es/components/forms/src/components/formButton.d.ts +0 -83
  48. package/es/components/forms/src/components/formIcon.d.ts +0 -2866
  49. package/es/components/forms/src/components/formInputUseDialog.d.ts +0 -911
  50. package/es/components/forms/src/components/formItem.d.ts +0 -58
  51. package/es/components/forms/src/components/radioButton.d.ts +0 -33
  52. package/es/components/forms/src/const/form.const.d.ts +0 -7
  53. package/es/components/forms/src/hooks/helper.d.ts +0 -8
  54. package/es/components/forms/src/hooks/useForm.d.ts +0 -5
  55. package/es/components/forms/src/hooks/useFormActions.d.ts +0 -13
  56. package/es/components/forms/src/hooks/useFormEvents.d.ts +0 -26
  57. package/es/components/forms/src/hooks/useFormValue.d.ts +0 -3
  58. package/es/components/forms/src/hooks/useFormValues.d.ts +0 -14
  59. package/es/components/forms/src/hooks/useLabelWidth.d.ts +0 -35
  60. package/es/components/forms/src/index.d.ts +0 -182
  61. package/es/components/forms/src/prop.d.ts +0 -79
  62. package/es/components/forms/src/types/form.type.d.ts +0 -115
  63. package/es/components/icons/index.d.ts +0 -3
  64. package/es/components/icons/index.less +0 -109
  65. package/es/components/icons/src/pick-icon.d.ts +0 -441
  66. package/es/components/icons/src/svg-icon.d.ts +0 -44
  67. package/es/components/iframe/index.d.ts +0 -2
  68. package/es/components/iframe/index.less +0 -3
  69. package/es/components/iframe/src/index.d.ts +0 -967
  70. package/es/components/iframe/src/index.less +0 -3
  71. package/es/components/index.d.ts +0 -14
  72. package/es/components/modal/index.d.ts +0 -3
  73. package/es/components/modal/index.less +0 -60
  74. package/es/components/modal/src/components/close-icon.d.ts +0 -309
  75. package/es/components/modal/src/components/modal-wrap.d.ts +0 -237
  76. package/es/components/modal/src/components/modal.d.ts +0 -200
  77. package/es/components/modal/src/components/modalFooter.d.ts +0 -124
  78. package/es/components/modal/src/hooks/useDrag.d.ts +0 -7
  79. package/es/components/modal/src/hooks/useFullScreen.d.ts +0 -12
  80. package/es/components/modal/src/hooks/useModal.d.ts +0 -4
  81. package/es/components/modal/src/index.d.ts +0 -1190
  82. package/es/components/modal/src/props.d.ts +0 -93
  83. package/es/components/modal/src/types/modal.type.d.ts +0 -25
  84. package/es/components/router/base-router.d.ts +0 -2
  85. package/es/components/router/index.d.ts +0 -2
  86. package/es/components/source/index.d.ts +0 -1
  87. package/es/components/source/src/hooks/useDownload.d.ts +0 -8
  88. package/es/components/source/src/hooks/useFetch.d.ts +0 -4
  89. package/es/components/source/src/hooks/useSource.d.ts +0 -43
  90. package/es/components/source/src/index.d.ts +0 -2
  91. package/es/components/source/src/types/source.type.d.ts +0 -34
  92. package/es/components/source/src/types/table.type.d.ts +0 -7
  93. package/es/components/table/index.d.ts +0 -4
  94. package/es/components/table/index.less +0 -224
  95. package/es/components/table/src/components/TableActions.d.ts +0 -1280
  96. package/es/components/table/src/components/TableHeader.d.ts +0 -28
  97. package/es/components/table/src/components/TableRender.d.ts +0 -25
  98. package/es/components/table/src/components/editable/CellComponent.d.ts +0 -14
  99. package/es/components/table/src/components/editable/EditTableCell.d.ts +0 -88
  100. package/es/components/table/src/components/editable/componentMap.d.ts +0 -4
  101. package/es/components/table/src/components/editable/index.d.ts +0 -9
  102. package/es/components/table/src/components/setting/Column.d.ts +0 -1360
  103. package/es/components/table/src/components/setting/Download.d.ts +0 -3088
  104. package/es/components/table/src/components/setting/DownloadCtrl.d.ts +0 -1930
  105. package/es/components/table/src/components/setting/Fullscreen.d.ts +0 -280
  106. package/es/components/table/src/components/setting/index.d.ts +0 -26
  107. package/es/components/table/src/const.d.ts +0 -12
  108. package/es/components/table/src/hooks/useColumns.d.ts +0 -14
  109. package/es/components/table/src/hooks/useCustomRow.d.ts +0 -19
  110. package/es/components/table/src/hooks/useDataSource.d.ts +0 -16
  111. package/es/components/table/src/hooks/useHeaderCode.d.ts +0 -3
  112. package/es/components/table/src/hooks/useLoading.d.ts +0 -17
  113. package/es/components/table/src/hooks/usePagination.d.ts +0 -122
  114. package/es/components/table/src/hooks/useRowSelection.d.ts +0 -12
  115. package/es/components/table/src/hooks/useRows.d.ts +0 -5
  116. package/es/components/table/src/hooks/useTable.d.ts +0 -5
  117. package/es/components/table/src/hooks/useTableHeader.d.ts +0 -8
  118. package/es/components/table/src/hooks/useTableInstance.d.ts +0 -15
  119. package/es/components/table/src/hooks/useTableScroll.d.ts +0 -12
  120. package/es/components/table/src/index.d.ts +0 -710
  121. package/es/components/table/src/props.d.ts +0 -208
  122. package/es/components/table/src/types/table.type.d.ts +0 -111
  123. package/es/components/table/src/types/tableHeader.type.d.ts +0 -23
  124. package/es/components/tree/index.d.ts +0 -2
  125. package/es/components/tree/index.less +0 -53
  126. package/es/components/tree/src/hooks/useTree.d.ts +0 -14
  127. package/es/components/tree/src/props.d.ts +0 -108
  128. package/es/components/tree/src/type/tree.d.ts +0 -85
  129. package/es/components/tree/src/utils/tree.d.ts +0 -5
  130. package/es/directives/icon.d.ts +0 -2
  131. package/es/directives/index.d.ts +0 -6
  132. package/es/directives/permission.d.ts +0 -2
  133. package/es/global.d.ts +0 -8
  134. package/es/index.d.ts +0 -3
  135. package/es/index.js +0 -10433
  136. package/es/theme/feature/back-top.d.ts +0 -105
  137. package/es/theme/feature/index.d.ts +0 -107
  138. package/es/theme/footer/index.d.ts +0 -30
  139. package/es/theme/footer/index.less +0 -16
  140. package/es/theme/header/components/bread-crumb.d.ts +0 -128
  141. package/es/theme/header/components/fullscreen.d.ts +0 -5
  142. package/es/theme/header/components/handler.d.ts +0 -2
  143. package/es/theme/header/components/index.d.ts +0 -11
  144. package/es/theme/header/components/lang-picker.d.ts +0 -291
  145. package/es/theme/header/components/logo.d.ts +0 -91
  146. package/es/theme/header/components/notify.d.ts +0 -268
  147. package/es/theme/header/components/size.d.ts +0 -282
  148. package/es/theme/header/components/theme-drawer/feature.d.ts +0 -1113
  149. package/es/theme/header/components/theme-drawer/index.d.ts +0 -3
  150. package/es/theme/header/components/theme-drawer/menu-type.d.ts +0 -273
  151. package/es/theme/header/components/theme-drawer/select-item.d.ts +0 -778
  152. package/es/theme/header/components/theme-drawer/switch-item.d.ts +0 -297
  153. package/es/theme/header/components/trigger.d.ts +0 -14
  154. package/es/theme/header/components/user-info.d.ts +0 -8322
  155. package/es/theme/header/const/index.d.ts +0 -20
  156. package/es/theme/header/helper/menu-tree.d.ts +0 -3
  157. package/es/theme/header/index.less +0 -458
  158. package/es/theme/header/set-theme.less +0 -68
  159. package/es/theme/index.d.ts +0 -2
  160. package/es/theme/sider/components/basic-menu/basic-menu-item.d.ts +0 -123
  161. package/es/theme/sider/components/basic-menu/basic-menu.d.ts +0 -756
  162. package/es/theme/sider/components/basic-menu/basic-sub-menu-item.d.ts +0 -254
  163. package/es/theme/sider/components/basic-menu/menu-item-content.d.ts +0 -36
  164. package/es/theme/sider/components/drag-bar.d.ts +0 -14
  165. package/es/theme/sider/components/layout-menu.d.ts +0 -22
  166. package/es/theme/sider/components/props.d.ts +0 -69
  167. package/es/theme/sider/components/sider-trigger.d.ts +0 -68
  168. package/es/theme/sider/helper/sider.d.ts +0 -12
  169. package/es/theme/sider/helper/split-menu.d.ts +0 -10
  170. package/es/theme/sider/hooks/useDragLine.d.ts +0 -2
  171. package/es/theme/sider/hooks/useOpenKeys.d.ts +0 -13
  172. package/es/theme/sider/index.d.ts +0 -152
  173. package/es/theme/sider/index.less +0 -212
  174. package/es/theme/tabs/components/TabContent.d.ts +0 -887
  175. package/es/theme/tabs/hooks/useMultifyTabs.d.ts +0 -7
  176. package/es/theme/tabs/hooks/useTabDropdown.d.ts +0 -6
  177. package/es/theme/tabs/index.less +0 -165
  178. package/es/theme/tabs/types/tabs.type.d.ts +0 -7
  179. package/es/theme/theme.less +0 -73
  180. package/es/theme/transition.less +0 -105
  181. package/index.html +0 -13
  182. package/tsconfig.json +0 -28
  183. package/vite.config.js +0 -10
@@ -1,20 +0,0 @@
1
- import { MenuMode, MenuType, Theme } from "@dt-frames/core";
2
- export declare const menuTypeList: {
3
- title: string;
4
- headTheme: Theme;
5
- menuTheme: Theme;
6
- mode: MenuMode;
7
- type: MenuType;
8
- split: boolean;
9
- }[];
10
- export declare enum HandlerEnum {
11
- CHANGE_LAYOUT = 0,
12
- SHOW_BREADCRUMB = 1,
13
- SHOW_SEARCH = 2,
14
- SHOW_NOTICY = 3,
15
- SHOW_FULL_SCREEN = 4,
16
- SHOW_LOCAL = 5,
17
- SHOW_ROUTE_REUSE = 6,
18
- SHOW_FOOTER = 7,
19
- CONTENT_MODE = 8
20
- }
@@ -1,3 +0,0 @@
1
- import { Menus } from "@dt-frames/core";
2
- export declare function getBreadCrumb(path: string, menus?: Menus[]): Menus[];
3
- export declare function getFilterMenu(filter?: string, flag?: boolean): any[];
@@ -1,458 +0,0 @@
1
- @import './set-theme.less';
2
-
3
- @primary-color: #269ac1;
4
- @white: #fff;
5
- @error-color: #ED6F6F;
6
- @header-bg-color: #fff;
7
- @header-bg-dark-color: #3c4252;
8
- // #001529
9
-
10
- @header-height: 48px;
11
- @layout-header-fixed-z-index: 10;
12
- @header-light-bottom-border-color: #eee;
13
- @header-light-bg-hover-color: rgba(0,0,0,0.05);
14
- @text-color-base: #333;
15
- @header-dark-bg-hover-color: rgba(255,255,255,0.05);
16
- @multiple-tab-fixed-z-index: 1;
17
-
18
- .dt-header{
19
- display: flex;
20
- height: @header-height;
21
- padding: 0;
22
- line-height: @header-height;
23
- color: @white;
24
- align-items: center;
25
- justify-content: space-between;
26
-
27
- &--fixed {
28
- position: fixed;
29
- top: 0;
30
- left: 0;
31
- z-index: @layout-header-fixed-z-index;
32
- width: 100%;
33
- }
34
-
35
- &-logo {
36
- height: @header-height;
37
- min-width: 240px;
38
- padding: 0 10px;
39
- font-size: 14px;
40
- display: flex;
41
- align-items: center;
42
-
43
- img {
44
- width: @logo-width;
45
- height: @logo-width;
46
- margin-right: 10px;
47
- }
48
- }
49
-
50
- &-left {
51
- display: flex;
52
- height: 100%;
53
- align-items: center;
54
-
55
- .dt-header-trigger{
56
- display: flex;
57
- height: 100%;
58
- padding: 1px 15px 0 15px;
59
- cursor: pointer;
60
- align-items: center;
61
-
62
- .anticon {
63
- font-size: 16px;
64
- }
65
- }
66
- }
67
-
68
- &-menu {
69
- height: 100%;
70
- min-width: 0;
71
- flex: 1;
72
- align-items: center;
73
- }
74
-
75
- &-action {
76
- display: flex;
77
- min-width: 180px;
78
- align-items: center;
79
-
80
- &__item {
81
- display: flex !important;
82
- height: @header-height;
83
- padding: 0 2px;
84
- font-size: 1.2em;
85
- cursor: pointer;
86
- align-items: center;
87
-
88
- .ant-badge {
89
- height: @header-height;
90
- line-height: @header-height;
91
- }
92
-
93
- .ant-badge-dot {
94
- top: 10px;
95
- right: 2px;
96
- }
97
- }
98
-
99
- span[role='img'] {
100
- padding: 0 8px;
101
- }
102
-
103
- &>span{
104
- width: 40px;
105
- text-align: center;
106
- cursor: pointer;
107
- transition: all 0.25s;
108
- position: relative;
109
-
110
- .svg-icon{
111
- margin: 0 auto;
112
- height: 100% !important;
113
- }
114
- }
115
-
116
- .userInfo{
117
- padding: 0 10px;
118
- cursor: pointer;
119
- transition: all 0.25s;
120
- .name{
121
- padding-left: 10px;
122
- color: #333;
123
- }
124
- }
125
- }
126
-
127
- &--light{
128
- background-color: @header-bg-color !important;
129
- border-bottom: 1px solid @header-light-bottom-border-color;
130
- color: @text-color-base;
131
-
132
- .dt-header-logo {
133
- &:hover {
134
- background-color: @header-light-bg-hover-color;
135
- }
136
- }
137
-
138
- .dt-header-action {
139
- &>span, .userInfo{
140
- &:hover{
141
- background: rgba(0,0,0,0.05) !important;
142
- }
143
- }
144
- &__item {
145
- color: @text-color-base;
146
-
147
- .app-iconify {
148
- padding: 0 10px;
149
- font-size: 16px !important;
150
- }
151
-
152
- &:hover {
153
- background-color: @header-light-bg-hover-color;
154
- }
155
- }
156
-
157
- &-icon,
158
- span[role='img'] {
159
- color: @text-color-base;
160
- }
161
- }
162
- }
163
-
164
- &--dark {
165
- background-color: @header-bg-dark-color !important;
166
- .dt-header-logo {
167
- &:hover {
168
- background-color: @header-dark-bg-hover-color;
169
- }
170
- }
171
-
172
- .ant-menu-dark{
173
- background-color: @header-bg-dark-color;
174
- }
175
-
176
- .userInfo .name{
177
- color: @white;
178
- }
179
-
180
- .dt-icon, span{
181
- color: @white !important;
182
- align-items: center;
183
- }
184
-
185
- .dt-header-action {
186
-
187
- span i{
188
- color: @white !important;
189
- }
190
- &>span, .userInfo{
191
- &:hover{
192
- background: rgba(255,255,255,0.2) !important;
193
- }
194
- }
195
- }
196
- }
197
-
198
-
199
- .red-dot{
200
- width: 6px;
201
- height: 6px;
202
- display: block;
203
- border-radius: 3px;
204
- background: red;
205
- position: absolute;
206
- right: 4px;
207
- top: 10px;
208
- }
209
-
210
-
211
- }
212
-
213
- .brand-logo{
214
- width: 40px;
215
- height: 60px;
216
- margin-left: -7px;
217
- }
218
-
219
- .dt-multiple-header{
220
- transition: width 0.2s;
221
- flex: 0 0 auto;
222
-
223
- &--fixed {
224
- position: fixed;
225
- top: 0;
226
- z-index: @multiple-tab-fixed-z-index;
227
- width: 100%;
228
- }
229
-
230
- &--top-menu{
231
- .dt-logo.light{
232
- border-bottom: none;
233
- }
234
-
235
- .ant-menu-submenu::after{
236
- border: none !important;
237
- }
238
-
239
- .ant-menu-submenu-selected::after, .ant-menu-submenu:hover::after{
240
- content: ' ';
241
- width: calc(100% - 66px);
242
- height: 4px;
243
- background: @primary-color;
244
- bottom: 5px;
245
- left: 50%;
246
- margin-left: -16px;
247
- border-radius: 2px;
248
- border: none;
249
- }
250
- }
251
- }
252
-
253
- .ant-menu-horizontal, .app-top-menu-popup {
254
- .svg-icon{
255
- padding: 16px 0;
256
- margin-right: 10px;
257
- height: 48px !important;
258
- }
259
-
260
- .menu-icon{
261
- width: 26px;
262
- }
263
- }
264
-
265
- .nofify__popover{
266
- width: 300px;
267
- .ant-popover-inner-content{
268
- padding: 0;
269
-
270
- .ant-tabs-tab{
271
- margin: 0;
272
- width: 100px;
273
- text-align: center;
274
- }
275
-
276
- .ant-tabs-content{
277
- height: 300px;
278
- position: relative;
279
-
280
- .ant-tabs-tabpane{
281
- position: absolute;
282
- top: 100px;
283
- .ant-empty-description{
284
- color: #999;
285
- font-size: 13px;
286
- }
287
- }
288
- }
289
-
290
- .load-more{
291
- line-height: 40px;
292
- border-top: 1px solid @border-color-base;
293
- width: 100%;
294
- display: block;
295
- text-align: center;
296
- color: #666;
297
- &:hover{
298
- color: @primary-color;
299
- }
300
- }
301
- }
302
- }
303
-
304
-
305
- .user-info__popover{
306
- width: 120px;
307
- z-index: 930 !important;
308
- .ant-popover-inner-content{
309
- padding: 8px 0;
310
- .user-operate{
311
- li{
312
- display: flex;
313
- line-height: 30px;
314
- padding: 0 10px;
315
- cursor: pointer;
316
- margin-bottom: 3px;
317
- transition: all 0.3s;
318
- &>span{
319
- display: inline-block;
320
- width: 28px;
321
- padding-right: 10px;
322
- color: #444;
323
- }
324
- &.border-bottom{
325
- border-bottom: 1px solid @border-color-base;
326
- }
327
-
328
- &:last-of-type{
329
- margin-bottom: 0;
330
- }
331
-
332
- &:hover{
333
- background: #f6f6f6;
334
- }
335
- }
336
- }
337
- }
338
- }
339
-
340
- .lacale__popover{
341
- width: 120px;
342
- .ant-popover-inner-content{
343
- padding: 8px 0;
344
- .lang li{
345
- line-height: 30px;
346
- padding: 0 10px;
347
- cursor: pointer;
348
- margin-bottom: 3px;
349
- transition: all 0.3s;
350
- &>span{
351
- display: inline-block;
352
- vertical-align: middle;
353
- &:last-of-type{
354
- padding-left: 10px;
355
- }
356
- }
357
- &:hover{
358
- background: #f6f6f6;
359
- }
360
-
361
- &.active{
362
- background: #f6f6f6;
363
- color: @primary-color;
364
- }
365
- }
366
- }
367
- }
368
-
369
- .size__popover{
370
- width: 80px;
371
- }
372
-
373
-
374
-
375
- .dt-menu-search{
376
- padding: 0 10px;
377
- display: flex;
378
- .ant-input-search{
379
- border-radius: 16px;
380
- width: 180px;
381
- overflow: hidden;
382
- height: 30px;
383
- border: 1px solid rgba(0,0,0,0.2);
384
- input, button{
385
- border: none;
386
- height: 28px;
387
- line-height: 28px;
388
- outline: none;
389
- box-shadow: none;
390
- padding: 0 7px 0 15px;
391
- font-size: 13px;
392
- }
393
- button{
394
- padding-left: 0;
395
- }
396
- }
397
-
398
- .ant-empty-image{
399
- height: 40px;
400
- svg{
401
- width: 100%;
402
- }
403
- }
404
- }
405
-
406
- .menu_search__popover {
407
- width: 200px;
408
- .ant-popover-inner-content{
409
- max-height: 400px;
410
- height: 200px;
411
- padding: 0;
412
- overflow-y: auto;
413
- p{
414
- line-height: 38px;
415
- background: #fff;
416
- cursor: pointer;
417
- padding: 0 20px;
418
- border-bottom: 1px dashed #f2f2f2;
419
- transition: all 0.2s;
420
- &:hover{
421
- background: #f2f2f2;
422
- }
423
- }
424
- > div{
425
- margin: 40px 0;
426
- }
427
- }
428
- }
429
-
430
- .dt-feature-item{
431
- display: flex;
432
- justify-content: space-between;
433
- margin-bottom: 20px;
434
-
435
- .select-item{
436
- width: 130px !important;
437
- }
438
- }
439
-
440
- .setting-theme-tips{
441
- border: 1px solid @primary-color;
442
- background-color: rgba(0,0,0,0.04);
443
- color: @primary-color;
444
- padding: 10px;
445
- font-size: 12px;
446
- border-radius: 4px;
447
- }
448
-
449
- .dt-setting-theme-footer{
450
- margin-top: 20px;
451
- .ant-btn{
452
- margin: 10px 0;
453
- }
454
- }
455
-
456
- .ant-modal-confirm-body .ant-modal-confirm-content {
457
- color: #909399;
458
- }
@@ -1,68 +0,0 @@
1
- @primary-color: #269ac1;
2
-
3
- .dt-menu-type__wrap{
4
- display: flex;
5
- flex-direction: row;
6
- justify-content: center;
7
-
8
- .dt-menu-type__item{
9
- padding: 12px;
10
- position: relative;
11
- width: 56px;
12
- height: 48px;
13
- margin-right: 16px;
14
- overflow: hidden;
15
- cursor: pointer;
16
- background-color: #f0f2f5;
17
- border-radius: 4px;
18
- box-shadow: 0 1px 2.5px #0000002e;
19
- .dt-sidebar-menu-type{
20
- &::before{
21
- position: absolute;
22
- content: "";
23
- top: 0;
24
- left: 0;
25
- z-index: 1;
26
- width: 33%;
27
- height: 100%;
28
- background-color: #273352;
29
- }
30
- &::after{
31
- position: absolute;
32
- content: "";
33
- top: 0;
34
- left: 0;
35
- width: 100%;
36
- height: 25%;
37
- background-color: #fff;
38
- }
39
- }
40
- &:hover{
41
- border: 2px solid @primary-color;
42
- }
43
- }
44
-
45
- .dt-menu-type__item--top-menu .dt-sidebar-menu-type{
46
- &::before{
47
- width: 0;
48
- }
49
- &::after{
50
- background-color: #273352;
51
- }
52
- }
53
-
54
- .dt-menu-type__item--mix .dt-sidebar-menu-type{
55
- &::before{
56
- top: 25%;
57
- height: 75%;
58
- background-color: #fff;
59
- }
60
- &::after{
61
- background-color: #273352;
62
- }
63
- }
64
-
65
- .dt-menu-type__item--active{
66
- border: 2px solid @primary-color;
67
- }
68
- }
@@ -1,2 +0,0 @@
1
- import DtTheme from "./theme";
2
- export { DtTheme };
@@ -1,123 +0,0 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{
2
- item: {
3
- type: ObjectConstructor;
4
- default: {};
5
- };
6
- theme: {
7
- type: import("vue").PropType<import("ant-design-vue").MenuTheme>;
8
- default: import("@dt-frames/core").Theme;
9
- };
10
- isHorizontal: BooleanConstructor;
11
- showTitle: BooleanConstructor;
12
- beforeClickFn: {
13
- type: FunctionConstructor;
14
- };
15
- }, {
16
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
17
- item: {
18
- type: ObjectConstructor;
19
- default: {};
20
- };
21
- theme: {
22
- type: import("vue").PropType<import("ant-design-vue").MenuTheme>;
23
- default: import("@dt-frames/core").Theme;
24
- };
25
- isHorizontal: BooleanConstructor;
26
- showTitle: BooleanConstructor;
27
- beforeClickFn: {
28
- type: FunctionConstructor;
29
- };
30
- }>> & {
31
- [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any);
32
- }>>;
33
- MenuItem: import("vue").DefineComponent<{
34
- id: StringConstructor;
35
- role: StringConstructor;
36
- disabled: BooleanConstructor;
37
- danger: BooleanConstructor;
38
- title: {
39
- type: (BooleanConstructor | StringConstructor)[];
40
- default: any;
41
- };
42
- icon: import("vue-types").VueTypeValidableDef<any>;
43
- onMouseenter: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
44
- onMouseleave: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
45
- onClick: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
46
- onKeydown: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
47
- onFocus: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
48
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
49
- id: StringConstructor;
50
- role: StringConstructor;
51
- disabled: BooleanConstructor;
52
- danger: BooleanConstructor;
53
- title: {
54
- type: (BooleanConstructor | StringConstructor)[];
55
- default: any;
56
- };
57
- icon: import("vue-types").VueTypeValidableDef<any>;
58
- onMouseenter: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
59
- onMouseleave: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
60
- onClick: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
61
- onKeydown: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
62
- onFocus: import("vue").PropType<import("ant-design-vue/lib/_util/EventInterface").MouseEventHandler>;
63
- }>>, {
64
- title: string | boolean;
65
- disabled: boolean;
66
- danger: boolean;
67
- }>;
68
- MenuItemContent: import("vue").DefineComponent<{
69
- item: {
70
- type: ObjectConstructor;
71
- default: {};
72
- };
73
- showTitle: BooleanConstructor;
74
- level: NumberConstructor;
75
- isHorizontal: BooleanConstructor;
76
- }, {
77
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
78
- item: {
79
- type: ObjectConstructor;
80
- default: {};
81
- };
82
- showTitle: BooleanConstructor;
83
- level: NumberConstructor;
84
- isHorizontal: BooleanConstructor;
85
- }>> & {
86
- [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any);
87
- }>>;
88
- getIsZH: import("vue").ComputedRef<boolean>;
89
- getUiSize: import("vue").ComputedRef<import("@dt-frames/core/es/types/app.type").UiSize>;
90
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
91
- item: {
92
- type: ObjectConstructor;
93
- default: {};
94
- };
95
- showTitle: BooleanConstructor;
96
- level: NumberConstructor;
97
- isHorizontal: BooleanConstructor;
98
- }>>, {
99
- showTitle: boolean;
100
- isHorizontal: boolean;
101
- item: Record<string, any>;
102
- }>;
103
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
104
- item: {
105
- type: ObjectConstructor;
106
- default: {};
107
- };
108
- theme: {
109
- type: import("vue").PropType<import("ant-design-vue").MenuTheme>;
110
- default: import("@dt-frames/core").Theme;
111
- };
112
- isHorizontal: BooleanConstructor;
113
- showTitle: BooleanConstructor;
114
- beforeClickFn: {
115
- type: FunctionConstructor;
116
- };
117
- }>>, {
118
- theme: import("ant-design-vue").MenuTheme;
119
- showTitle: boolean;
120
- isHorizontal: boolean;
121
- item: Record<string, any>;
122
- }>;
123
- export default _sfc_main;