tdesign-react 0.42.7-alpha.1 → 0.42.7-alpha.2
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/cjs/_chunks/dep-6a672006.js +515 -0
- package/cjs/_chunks/dep-6a672006.js.map +1 -0
- package/cjs/_chunks/dep-b5df8873.js +198 -0
- package/cjs/_chunks/dep-b5df8873.js.map +1 -0
- package/cjs/avatar/AvararGroup.js +1 -1
- package/cjs/avatar/Avatar.js +1 -1
- package/cjs/avatar/index.js +1 -1
- package/cjs/form/Form.js +1 -1
- package/cjs/form/FormItem.js +1 -1
- package/cjs/form/index.js +1 -1
- package/cjs/form/useInitialData.js +1 -1
- package/cjs/image-viewer/ImageViewer.js +1 -1
- package/cjs/image-viewer/ImageViewerMini.js +1 -1
- package/cjs/image-viewer/ImageViewerModel.js +1 -1
- package/cjs/image-viewer/index.js +1 -1
- package/cjs/index-lib.js +2 -2
- package/cjs/index.js +2 -2
- package/cjs/popup/hooks/useTrigger.js +3 -29
- package/cjs/popup/hooks/useTrigger.js.map +1 -1
- package/cjs/upload/index.js +1 -1
- package/cjs/upload/themes/DraggerFile.js +1 -1
- package/cjs/upload/themes/ImageCard.js +1 -1
- package/cjs/upload/themes/MultipleFlowList.js +1 -1
- package/cjs/upload/upload.js +1 -1
- package/dist/tdesign.css +317 -301
- package/dist/tdesign.css.map +1 -1
- package/dist/tdesign.js +3 -5
- package/dist/tdesign.js.map +1 -1
- package/dist/tdesign.min.css +1 -1
- package/dist/tdesign.min.css.map +1 -1
- package/dist/tdesign.min.js +1 -1
- package/dist/tdesign.min.js.map +1 -1
- package/es/_chunks/{dep-51336096.js → dep-26aef3c9.js} +1 -1
- package/{lib/_chunks/dep-db75b5b6.js.map → es/_chunks/dep-26aef3c9.js.map} +1 -1
- package/{esm/_chunks/dep-8e115ca7.js → es/_chunks/dep-5e0eb6ae.js} +1 -1
- package/{esm/_chunks/dep-8e115ca7.js.map → es/_chunks/dep-5e0eb6ae.js.map} +1 -1
- package/es/alert/style/index.css +26 -14
- package/es/anchor/style/index.css +5 -12
- package/es/avatar/AvararGroup.js +1 -1
- package/es/avatar/Avatar.js +1 -1
- package/es/avatar/index.js +1 -1
- package/es/breadcrumb/style/index.css +4 -4
- package/es/button/style/index.css +10 -10
- package/es/dialog/style/index.css +4 -4
- package/es/divider/style/index.css +2 -2
- package/es/drawer/style/index.css +16 -11
- package/es/dropdown/style/index.css +11 -10
- package/es/form/Form.js +1 -1
- package/es/form/FormItem.js +1 -1
- package/es/form/index.js +1 -1
- package/es/form/style/index.css +2 -2
- package/es/form/useInitialData.js +1 -1
- package/es/guide/style/index.css +9 -9
- package/es/image-viewer/ImageViewer.js +1 -1
- package/es/image-viewer/ImageViewerMini.js +1 -1
- package/es/image-viewer/ImageViewerModel.js +1 -1
- package/es/image-viewer/index.js +1 -1
- package/es/index.js +2 -2
- package/es/input/style/index.css +1 -1
- package/es/layout/style/index.css +3 -3
- package/es/link/style/index.css +6 -6
- package/es/list/style/index.css +1 -1
- package/es/menu/style/index.css +26 -26
- package/es/message/style/index.css +6 -6
- package/es/notification/style/index.css +8 -13
- package/es/pagination/style/index.css +23 -23
- package/es/popconfirm/style/index.css +7 -7
- package/es/popup/hooks/useTrigger.js +3 -33
- package/es/popup/hooks/useTrigger.js.map +1 -1
- package/es/popup/style/index.css +1 -1
- package/es/radio/style/index.css +16 -1
- package/es/rate/style/index.css +5 -4
- package/es/steps/style/index.css +34 -43
- package/es/style/index.css +4 -3
- package/es/swiper/style/index.css +42 -42
- package/es/tabs/style/index.css +12 -12
- package/es/tag-input/style/index.css +7 -7
- package/es/tree/style/index.css +26 -24
- package/es/upload/index.js +1 -1
- package/es/upload/themes/DraggerFile.js +1 -1
- package/es/upload/themes/ImageCard.js +1 -1
- package/es/upload/themes/MultipleFlowList.js +1 -1
- package/es/upload/upload.js +1 -1
- package/{es/_chunks/dep-8e115ca7.js → esm/_chunks/dep-5e0eb6ae.js} +1 -1
- package/{es/_chunks/dep-8e115ca7.js.map → esm/_chunks/dep-5e0eb6ae.js.map} +1 -1
- package/esm/_chunks/{dep-fad7989c.js → dep-72461c3f.js} +1 -1
- package/{es/_chunks/dep-51336096.js.map → esm/_chunks/dep-72461c3f.js.map} +1 -1
- package/esm/_common/style/web/_variables.less +7 -6
- package/esm/_common/style/web/components/alert/_index.less +12 -6
- package/esm/_common/style/web/components/alert/_var.less +19 -10
- package/esm/_common/style/web/components/anchor/_index.less +4 -10
- package/esm/_common/style/web/components/anchor/_var.less +9 -23
- package/esm/_common/style/web/components/breadcrumb/_index.less +4 -4
- package/esm/_common/style/web/components/breadcrumb/_var.less +2 -2
- package/esm/_common/style/web/components/button/_var.less +2 -2
- package/esm/_common/style/web/components/dialog/_var.less +2 -2
- package/esm/_common/style/web/components/divider/_var.less +2 -2
- package/esm/_common/style/web/components/drawer/_index.less +2 -1
- package/esm/_common/style/web/components/drawer/_var.less +9 -10
- package/esm/_common/style/web/components/dropdown-new/_index.less +7 -6
- package/esm/_common/style/web/components/dropdown-new/_var.less +8 -4
- package/esm/_common/style/web/components/form/_index.less +1 -1
- package/esm/_common/style/web/components/guide/_index.less +8 -8
- package/esm/_common/style/web/components/guide/_var.less +10 -0
- package/esm/_common/style/web/components/layout/_var.less +2 -5
- package/esm/_common/style/web/components/link/_var.less +5 -5
- package/esm/_common/style/web/components/menu/_index-v2.less +26 -26
- package/esm/_common/style/web/components/menu/_index.less +25 -25
- package/esm/_common/style/web/components/menu/_var.less +1 -7
- package/esm/_common/style/web/components/message/_index.less +1 -1
- package/esm/_common/style/web/components/message/_var.less +7 -10
- package/esm/_common/style/web/components/notification/_index.less +0 -5
- package/esm/_common/style/web/components/notification/_var.less +9 -11
- package/esm/_common/style/web/components/pagination/_index.less +1 -1
- package/esm/_common/style/web/components/pagination/_var.less +8 -8
- package/esm/_common/style/web/components/popconfirm/_index.less +3 -3
- package/esm/_common/style/web/components/popconfirm/_var.less +12 -11
- package/esm/_common/style/web/components/radio/_index.less +26 -0
- package/esm/_common/style/web/components/radio/_var.less +4 -1
- package/esm/_common/style/web/components/rate/_index.less +2 -3
- package/esm/_common/style/web/components/rate/_var.less +2 -8
- package/esm/_common/style/web/components/steps/_index.less +1 -7
- package/esm/_common/style/web/components/steps/_mixin.less +10 -11
- package/esm/_common/style/web/components/steps/_var.less +14 -17
- package/esm/_common/style/web/components/swiper/_mixin.less +1 -1
- package/esm/_common/style/web/components/tabs/_var.less +2 -2
- package/esm/_common/style/web/components/tag-input/_index.less +5 -4
- package/esm/_common/style/web/components/tree/_index.less +8 -8
- package/esm/_common/style/web/components/tree/_var.less +17 -13
- package/esm/_common/style/web/theme/_size.less +4 -3
- package/esm/avatar/AvararGroup.js +1 -1
- package/esm/avatar/Avatar.js +1 -1
- package/esm/avatar/index.js +1 -1
- package/esm/form/Form.js +1 -1
- package/esm/form/FormItem.js +1 -1
- package/esm/form/index.js +1 -1
- package/esm/form/useInitialData.js +1 -1
- package/esm/image-viewer/ImageViewer.js +1 -1
- package/esm/image-viewer/ImageViewerMini.js +1 -1
- package/esm/image-viewer/ImageViewerModel.js +1 -1
- package/esm/image-viewer/index.js +1 -1
- package/esm/index.js +2 -2
- package/esm/popup/hooks/useTrigger.js +3 -33
- package/esm/popup/hooks/useTrigger.js.map +1 -1
- package/esm/upload/index.js +1 -1
- package/esm/upload/themes/DraggerFile.js +1 -1
- package/esm/upload/themes/ImageCard.js +1 -1
- package/esm/upload/themes/MultipleFlowList.js +1 -1
- package/esm/upload/upload.js +1 -1
- package/lib/_chunks/{dep-db75b5b6.js → dep-1b32736a.js} +1 -1
- package/{esm/_chunks/dep-fad7989c.js.map → lib/_chunks/dep-1b32736a.js.map} +1 -1
- package/lib/_chunks/{dep-75db5f2e.js → dep-61f02037.js} +1 -1
- package/lib/_chunks/{dep-75db5f2e.js.map → dep-61f02037.js.map} +1 -1
- package/lib/avatar/AvararGroup.js +1 -1
- package/lib/avatar/Avatar.js +1 -1
- package/lib/avatar/index.js +1 -1
- package/lib/form/Form.js +1 -1
- package/lib/form/FormItem.js +1 -1
- package/lib/form/index.js +1 -1
- package/lib/form/useInitialData.js +1 -1
- package/lib/image-viewer/ImageViewer.js +1 -1
- package/lib/image-viewer/ImageViewerMini.js +1 -1
- package/lib/image-viewer/ImageViewerModel.js +1 -1
- package/lib/image-viewer/index.js +1 -1
- package/lib/index.js +2 -2
- package/lib/popup/hooks/useTrigger.js +3 -29
- package/lib/popup/hooks/useTrigger.js.map +1 -1
- package/lib/upload/index.js +1 -1
- package/lib/upload/themes/DraggerFile.js +1 -1
- package/lib/upload/themes/ImageCard.js +1 -1
- package/lib/upload/themes/MultipleFlowList.js +1 -1
- package/lib/upload/upload.js +1 -1
- package/package.json +1 -1
- package/esm/_common/style/web/components/dropdown/_index.less +0 -99
- package/esm/_common/style/web/components/dropdown/_mixin.less +0 -0
- package/esm/_common/style/web/components/dropdown/_var.less +0 -22
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
&__highlight {
|
|
36
36
|
z-index: @guide-highlight-z-index;
|
|
37
|
-
transition:
|
|
37
|
+
transition: @anim-duration-base @anim-time-fn-ease-out;
|
|
38
38
|
border-radius: @border-radius-default;
|
|
39
39
|
|
|
40
40
|
&--dialog {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
&__dialog {
|
|
77
77
|
min-width: 320px;
|
|
78
78
|
max-width: 500px;
|
|
79
|
-
padding: @
|
|
79
|
+
padding: @guide-dialog-padding;
|
|
80
80
|
border-radius: @border-radius-large;
|
|
81
81
|
background: @bg-color-container;
|
|
82
82
|
animation: tGuideDialogFadeIn .3s ease-out;
|
|
@@ -92,13 +92,13 @@
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
.@{prefix}-@{componentName}__desc {
|
|
95
|
-
margin-top: @
|
|
95
|
+
margin-top: @guide-dialog-desc-margin-top;
|
|
96
96
|
font: @font-body-medium;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
&__tooltip {
|
|
101
|
-
padding: @
|
|
101
|
+
padding: @guide-tooltip-padding;
|
|
102
102
|
min-width: 240px;
|
|
103
103
|
max-width: 600px;
|
|
104
104
|
max-height: 300px;
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
&__desc {
|
|
115
|
-
margin-top: @
|
|
115
|
+
margin-top: @guide-tooltip-desc-margin-top;
|
|
116
116
|
text-align: left;
|
|
117
117
|
color: @text-color-secondary;
|
|
118
118
|
font: @font-body-small;
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
align-items: center;
|
|
124
124
|
|
|
125
125
|
button {
|
|
126
|
-
margin-right: @
|
|
126
|
+
margin-right: @guide-action-margin-right;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
button:last-child {
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
align-items: center;
|
|
137
137
|
|
|
138
138
|
&--popup {
|
|
139
|
-
margin-top: @
|
|
139
|
+
margin-top: @guide-footer-popup-margin-top;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
&--dialog {
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
&__counter {
|
|
155
|
-
color: @
|
|
155
|
+
color: @text-color-placeholder;
|
|
156
156
|
text-align: left;
|
|
157
157
|
font: @font-body-small;
|
|
158
158
|
flex: 1;
|
|
@@ -2,3 +2,13 @@
|
|
|
2
2
|
@guide-overlay-z-index: @z-index-guide - 2;
|
|
3
3
|
@guide-highlight-z-index: @z-index-guide - 1;
|
|
4
4
|
@guide-reference-z-index: @z-index-guide;
|
|
5
|
+
|
|
6
|
+
// margin 间距相关
|
|
7
|
+
@guide-footer-popup-margin-top: @comp-margin-l;
|
|
8
|
+
@guide-dialog-desc-margin-top: @comp-margin-l;
|
|
9
|
+
@guide-tooltip-desc-margin-top: @comp-margin-s;
|
|
10
|
+
@guide-action-margin-right: @comp-margin-s;
|
|
11
|
+
|
|
12
|
+
// padding 边距
|
|
13
|
+
@guide-dialog-padding: @comp-paddingTB-xxl @comp-paddingLR-xxl;
|
|
14
|
+
@guide-tooltip-padding: @comp-paddingTB-m @comp-paddingLR-s;
|
|
@@ -24,11 +24,8 @@
|
|
|
24
24
|
@layout-footer-color: @text-color-placeholder;
|
|
25
25
|
|
|
26
26
|
// 尺寸
|
|
27
|
-
@layout-header-height:
|
|
27
|
+
@layout-header-height: @comp-size-xxxl;
|
|
28
28
|
@layout-sider-width: 232px;
|
|
29
29
|
|
|
30
|
-
// 间距
|
|
31
|
-
@layout-footer-spacer: @spacer-3;
|
|
32
|
-
|
|
33
30
|
// 动画
|
|
34
|
-
@layout-sider-anim-duration:
|
|
31
|
+
@layout-sider-anim-duration: @anim-duration-base;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
@link-font-default: @font-link-medium;
|
|
4
4
|
@link-font-l: @font-link-large;
|
|
5
5
|
|
|
6
|
-
@link-icon-margin-s: @
|
|
7
|
-
@link-icon-margin-default: @
|
|
8
|
-
@link-icon-margin-l: @
|
|
6
|
+
@link-icon-margin-s: @comp-margin-xs;
|
|
7
|
+
@link-icon-margin-default: @comp-margin-s;
|
|
8
|
+
@link-icon-margin-l: @comp-margin-m;
|
|
9
9
|
|
|
10
10
|
// 按钮中icon和文字的间距
|
|
11
|
-
@link-icon-text-margin-left: @
|
|
12
|
-
@link-icon-text-margin-right: @
|
|
11
|
+
@link-icon-text-margin-left: @comp-margin-xs;
|
|
12
|
+
@link-icon-text-margin-right: @comp-margin-xs;
|
|
13
13
|
|
|
14
14
|
@link-color-default: @text-color-primary;
|
|
15
15
|
@link-color-default-hover: @brand-color-hover;
|
|
@@ -33,19 +33,19 @@ a.@{prefix}-menu__item {
|
|
|
33
33
|
height: 64px;
|
|
34
34
|
|
|
35
35
|
li + li {
|
|
36
|
-
margin-left:
|
|
36
|
+
margin-left: @comp-margin-xs;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.@{prefix}-menu {
|
|
40
40
|
&:first-child {
|
|
41
|
-
margin-left:
|
|
41
|
+
margin-left: @comp-margin-xxl;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.@{prefix}-menu__logo:not(:empty) {
|
|
47
47
|
height: 100%;
|
|
48
|
-
margin-right:
|
|
48
|
+
margin-right: @comp-margin-xxxl;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.@{prefix}-menu {
|
|
@@ -63,14 +63,14 @@ a.@{prefix}-menu__item {
|
|
|
63
63
|
height: 64px;
|
|
64
64
|
line-height: 64px;
|
|
65
65
|
text-align: right;
|
|
66
|
-
margin-right:
|
|
66
|
+
margin-right: @comp-margin-s;
|
|
67
67
|
overflow: hidden;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
&-icon {
|
|
71
71
|
width: 40px;
|
|
72
72
|
height: 40px;
|
|
73
|
-
padding:
|
|
73
|
+
padding: @comp-paddingTB-s @comp-paddingLR-s;
|
|
74
74
|
line-height: 40px;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -150,8 +150,8 @@ a.@{prefix}-menu__item {
|
|
|
150
150
|
align-items: center;
|
|
151
151
|
justify-content: flex-start;
|
|
152
152
|
white-space: nowrap;
|
|
153
|
-
padding-left:
|
|
154
|
-
padding-right:
|
|
153
|
+
padding-left: @comp-paddingLR-l;
|
|
154
|
+
padding-right: @comp-paddingLR-l;
|
|
155
155
|
min-width: 100%;
|
|
156
156
|
margin-left: 0;
|
|
157
157
|
color: @head-menu-popup-item-color;
|
|
@@ -159,17 +159,17 @@ a.@{prefix}-menu__item {
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
li + li {
|
|
162
|
-
margin-top:
|
|
162
|
+
margin-top: @comp-margin-xs;
|
|
163
163
|
margin-left: 0;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
.@{prefix}-submenu-icon { // to remove
|
|
168
|
-
margin-left:
|
|
168
|
+
margin-left: @comp-margin-s;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.@{prefix}-fake-arrow {
|
|
172
|
-
margin-left:
|
|
172
|
+
margin-left: @comp-margin-s;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
// 多层情况
|
|
@@ -183,7 +183,7 @@ a.@{prefix}-menu__item {
|
|
|
183
183
|
|
|
184
184
|
.@{prefix}-menu__item {
|
|
185
185
|
text-align: left;
|
|
186
|
-
padding: 0
|
|
186
|
+
padding: 0 @comp-paddingLR-l;
|
|
187
187
|
justify-content: space-between;
|
|
188
188
|
}
|
|
189
189
|
|
|
@@ -380,7 +380,7 @@ a.@{prefix}-menu__item {
|
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
.@{prefix}-menu {
|
|
383
|
-
padding:
|
|
383
|
+
padding: @comp-paddingTB-l @comp-paddingLR-s;
|
|
384
384
|
position: relative;
|
|
385
385
|
// overflow: hidden auto;
|
|
386
386
|
flex: 1;
|
|
@@ -404,7 +404,7 @@ a.@{prefix}-menu__item {
|
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
.@{prefix}-submenu {
|
|
407
|
-
margin-bottom:
|
|
407
|
+
margin-bottom: @comp-margin-xs;
|
|
408
408
|
position: relative;
|
|
409
409
|
}
|
|
410
410
|
|
|
@@ -412,7 +412,7 @@ a.@{prefix}-menu__item {
|
|
|
412
412
|
&:not(:empty) {
|
|
413
413
|
width: 100%;
|
|
414
414
|
position: relative;
|
|
415
|
-
padding:
|
|
415
|
+
padding: @comp-paddingTB-s @comp-paddingLR-l;
|
|
416
416
|
top: 0;
|
|
417
417
|
left: 0;
|
|
418
418
|
text-align: left;
|
|
@@ -423,7 +423,7 @@ a.@{prefix}-menu__item {
|
|
|
423
423
|
&-icon {
|
|
424
424
|
width: 32px;
|
|
425
425
|
height: 32px;
|
|
426
|
-
padding:
|
|
426
|
+
padding: @comp-paddingTB-s @comp-paddingLR-s;
|
|
427
427
|
cursor: pointer;
|
|
428
428
|
color: @menu-operations-color;
|
|
429
429
|
box-sizing: border-box;
|
|
@@ -433,7 +433,7 @@ a.@{prefix}-menu__item {
|
|
|
433
433
|
.@{prefix}-menu__item {
|
|
434
434
|
|
|
435
435
|
&.@{prefix}-is-opened {
|
|
436
|
-
margin:
|
|
436
|
+
margin: @comp-margin-xs 0;
|
|
437
437
|
color: @menu-light-active-color;
|
|
438
438
|
background-color: unset;
|
|
439
439
|
|
|
@@ -481,7 +481,7 @@ a.@{prefix}-menu__item {
|
|
|
481
481
|
|
|
482
482
|
.@{prefix}-menu__item {
|
|
483
483
|
position: relative;
|
|
484
|
-
margin:
|
|
484
|
+
margin: @comp-margin-xs 0;
|
|
485
485
|
padding: 0 10px 0 16px;
|
|
486
486
|
height: @default-menu-item-height;
|
|
487
487
|
line-height: @default-menu-item-height;
|
|
@@ -523,7 +523,7 @@ a.@{prefix}-menu__item {
|
|
|
523
523
|
background: @menu-light-active-bg;
|
|
524
524
|
|
|
525
525
|
& + .@{prefix}-menu__item {
|
|
526
|
-
margin-top:
|
|
526
|
+
margin-top: @comp-margin-xs;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
}
|
|
@@ -692,7 +692,7 @@ a.@{prefix}-menu__item {
|
|
|
692
692
|
|
|
693
693
|
.t-icon + &__content,
|
|
694
694
|
.t-icon + &__item-link {
|
|
695
|
-
margin-left:
|
|
695
|
+
margin-left: @comp-margin-s;
|
|
696
696
|
}
|
|
697
697
|
|
|
698
698
|
&--dark {
|
|
@@ -789,14 +789,14 @@ a.@{prefix}-menu__item {
|
|
|
789
789
|
.list-style-none();
|
|
790
790
|
|
|
791
791
|
&-wrapper {
|
|
792
|
-
padding:
|
|
792
|
+
padding: @comp-paddingTB-s @comp-paddingLR-s;
|
|
793
793
|
height: 100%;
|
|
794
794
|
list-style: none;
|
|
795
795
|
margin: 0;
|
|
796
796
|
}
|
|
797
797
|
|
|
798
798
|
.@{prefix}-fake-arrow {
|
|
799
|
-
margin-left:
|
|
799
|
+
margin-left: @comp-margin-s;
|
|
800
800
|
}
|
|
801
801
|
|
|
802
802
|
&.@{prefix}-is-vertical {
|
|
@@ -808,16 +808,16 @@ a.@{prefix}-menu__item {
|
|
|
808
808
|
}
|
|
809
809
|
|
|
810
810
|
.@{prefix}-menu__item {
|
|
811
|
-
padding-left:
|
|
812
|
-
padding-right:
|
|
811
|
+
padding-left: @comp-paddingLR-l;
|
|
812
|
+
padding-right: @comp-paddingLR-l;
|
|
813
813
|
margin: 4px 0;
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
816
|
|
|
817
817
|
&.@{prefix}-is-horizontal {
|
|
818
818
|
.@{prefix}-menu__item {
|
|
819
|
-
padding-left:
|
|
820
|
-
padding-right:
|
|
819
|
+
padding-left: @comp-paddingLR-l;
|
|
820
|
+
padding-right: @comp-paddingLR-l;
|
|
821
821
|
white-space: nowrap;
|
|
822
822
|
}
|
|
823
823
|
|
|
@@ -896,7 +896,7 @@ a.@{prefix}-menu__item {
|
|
|
896
896
|
|
|
897
897
|
&__operations {
|
|
898
898
|
&-icon {
|
|
899
|
-
margin-right:
|
|
899
|
+
margin-right: @comp-margin-l;
|
|
900
900
|
border-radius: @border-radius-default;
|
|
901
901
|
color: @menu-item-color--light;
|
|
902
902
|
transition: background-color @anim-duration-moderate @anim-time-fn-easing;
|
|
@@ -33,19 +33,19 @@ a.@{prefix}-menu__item {
|
|
|
33
33
|
height: 64px;
|
|
34
34
|
|
|
35
35
|
li + li {
|
|
36
|
-
margin-left:
|
|
36
|
+
margin-left: @comp-margin-xs;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.@{prefix}-menu {
|
|
40
40
|
&:first-child {
|
|
41
|
-
margin-left:
|
|
41
|
+
margin-left: @comp-margin-xxl;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.@{prefix}-menu__logo:not(:empty) {
|
|
47
47
|
height: 100%;
|
|
48
|
-
margin-right:
|
|
48
|
+
margin-right: @comp-margin-xxxl;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.@{prefix}-menu {
|
|
@@ -63,14 +63,14 @@ a.@{prefix}-menu__item {
|
|
|
63
63
|
height: 64px;
|
|
64
64
|
line-height: 64px;
|
|
65
65
|
text-align: right;
|
|
66
|
-
margin-right:
|
|
66
|
+
margin-right: @comp-margin-s;
|
|
67
67
|
overflow: hidden;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
&-icon {
|
|
71
71
|
width: 40px;
|
|
72
72
|
height: 40px;
|
|
73
|
-
padding:
|
|
73
|
+
padding: @comp-paddingTB-s @comp-paddingLR-s;
|
|
74
74
|
line-height: 40px;
|
|
75
75
|
box-sizing: border-box;
|
|
76
76
|
}
|
|
@@ -148,8 +148,8 @@ a.@{prefix}-menu__item {
|
|
|
148
148
|
align-items: center;
|
|
149
149
|
justify-content: flex-start;
|
|
150
150
|
white-space: nowrap;
|
|
151
|
-
padding-left:
|
|
152
|
-
padding-right:
|
|
151
|
+
padding-left: @comp-paddingLR-l;
|
|
152
|
+
padding-right: @comp-paddingLR-l;
|
|
153
153
|
min-width: 100%;
|
|
154
154
|
margin-left: 0;
|
|
155
155
|
color: @head-menu-popup-item-color;
|
|
@@ -164,11 +164,11 @@ a.@{prefix}-menu__item {
|
|
|
164
164
|
|
|
165
165
|
.@{prefix}-submenu-icon {
|
|
166
166
|
// to remove
|
|
167
|
-
margin-left:
|
|
167
|
+
margin-left: @comp-margin-s;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.@{prefix}-fake-arrow {
|
|
171
|
-
margin-left:
|
|
171
|
+
margin-left: @comp-margin-s;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
// 多层情况
|
|
@@ -376,7 +376,7 @@ a.@{prefix}-menu__item {
|
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
.@{prefix}-menu {
|
|
379
|
-
padding:
|
|
379
|
+
padding: @comp-paddingTB-l @comp-paddingLR-s;
|
|
380
380
|
position: relative;
|
|
381
381
|
// overflow: hidden auto;
|
|
382
382
|
flex: 1;
|
|
@@ -399,7 +399,7 @@ a.@{prefix}-menu__item {
|
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
.@{prefix}-submenu {
|
|
402
|
-
margin-bottom:
|
|
402
|
+
margin-bottom: @comp-margin-xs;
|
|
403
403
|
position: relative;
|
|
404
404
|
}
|
|
405
405
|
|
|
@@ -407,7 +407,7 @@ a.@{prefix}-menu__item {
|
|
|
407
407
|
&:not(:empty) {
|
|
408
408
|
width: 100%;
|
|
409
409
|
position: relative;
|
|
410
|
-
padding:
|
|
410
|
+
padding: @comp-paddingTB-s @comp-paddingLR-l;
|
|
411
411
|
top: 0;
|
|
412
412
|
left: 0;
|
|
413
413
|
text-align: left;
|
|
@@ -418,7 +418,7 @@ a.@{prefix}-menu__item {
|
|
|
418
418
|
&-icon {
|
|
419
419
|
width: 32px;
|
|
420
420
|
height: 32px;
|
|
421
|
-
padding:
|
|
421
|
+
padding: @comp-paddingTB-s @comp-paddingLR-s;
|
|
422
422
|
cursor: pointer;
|
|
423
423
|
color: @menu-operations-color;
|
|
424
424
|
box-sizing: border-box;
|
|
@@ -427,7 +427,7 @@ a.@{prefix}-menu__item {
|
|
|
427
427
|
|
|
428
428
|
.@{prefix}-menu__item {
|
|
429
429
|
&.@{prefix}-is-opened {
|
|
430
|
-
margin:
|
|
430
|
+
margin: @comp-margin-xs 0;
|
|
431
431
|
color: @menu-light-active-color;
|
|
432
432
|
background-color: unset;
|
|
433
433
|
|
|
@@ -476,7 +476,7 @@ a.@{prefix}-menu__item {
|
|
|
476
476
|
|
|
477
477
|
.@{prefix}-menu__item {
|
|
478
478
|
position: relative;
|
|
479
|
-
margin:
|
|
479
|
+
margin: @comp-margin-xs 0;
|
|
480
480
|
padding: 0 10px 0 16px;
|
|
481
481
|
height: @default-menu-item-height;
|
|
482
482
|
line-height: @default-menu-item-height;
|
|
@@ -517,7 +517,7 @@ a.@{prefix}-menu__item {
|
|
|
517
517
|
background: @menu-light-active-bg;
|
|
518
518
|
|
|
519
519
|
& + .@{prefix}-menu__item {
|
|
520
|
-
margin-top:
|
|
520
|
+
margin-top: @comp-margin-xs;
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
}
|
|
@@ -677,7 +677,7 @@ a.@{prefix}-menu__item {
|
|
|
677
677
|
|
|
678
678
|
.t-icon + &__content,
|
|
679
679
|
.t-icon + &__item-link {
|
|
680
|
-
margin-left:
|
|
680
|
+
margin-left: @comp-margin-s;
|
|
681
681
|
}
|
|
682
682
|
|
|
683
683
|
&--dark {
|
|
@@ -794,14 +794,14 @@ a.@{prefix}-menu__item {
|
|
|
794
794
|
.list-style-none();
|
|
795
795
|
|
|
796
796
|
&-wrapper {
|
|
797
|
-
padding:
|
|
797
|
+
padding: @comp-paddingLR-s;
|
|
798
798
|
height: 100%;
|
|
799
799
|
list-style: none;
|
|
800
800
|
margin: 0;
|
|
801
801
|
}
|
|
802
802
|
|
|
803
803
|
.@{prefix}-fake-arrow {
|
|
804
|
-
margin-left:
|
|
804
|
+
margin-left: @comp-margin-s;
|
|
805
805
|
}
|
|
806
806
|
|
|
807
807
|
&.@{prefix}-is-vertical {
|
|
@@ -813,21 +813,21 @@ a.@{prefix}-menu__item {
|
|
|
813
813
|
}
|
|
814
814
|
|
|
815
815
|
.@{prefix}-menu__item {
|
|
816
|
-
padding-left:
|
|
817
|
-
padding-right:
|
|
816
|
+
padding-left: @comp-paddingLR-l;
|
|
817
|
+
padding-right: @comp-paddingLR-l;
|
|
818
818
|
margin: 4px 0;
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
821
|
|
|
822
822
|
&.@{prefix}-is-horizontal {
|
|
823
823
|
.@{prefix}-menu__item {
|
|
824
|
-
padding-left:
|
|
825
|
-
padding-right:
|
|
824
|
+
padding-left: @comp-paddingLR-l;
|
|
825
|
+
padding-right: @comp-paddingLR-l;
|
|
826
826
|
white-space: nowrap;
|
|
827
827
|
}
|
|
828
828
|
|
|
829
829
|
li + li {
|
|
830
|
-
margin-top:
|
|
830
|
+
margin-top: @comp-margin-xs;
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
833
|
|
|
@@ -874,7 +874,7 @@ a.@{prefix}-menu__item {
|
|
|
874
874
|
|
|
875
875
|
&__operations {
|
|
876
876
|
&-icon {
|
|
877
|
-
margin-right:
|
|
877
|
+
margin-right: @comp-margin-l;
|
|
878
878
|
border-radius: @border-radius-default;
|
|
879
879
|
color: @menu-item-color--light;
|
|
880
880
|
transition: background-color @anim-duration-moderate @anim-time-fn-easing;
|
|
@@ -81,13 +81,7 @@
|
|
|
81
81
|
@default-menu-item-height: 36px;
|
|
82
82
|
|
|
83
83
|
// popup
|
|
84
|
-
@popup-item-padding-left:
|
|
85
|
-
|
|
86
|
-
// 边距
|
|
87
|
-
@menu-padding-horizontal-default: @spacer;
|
|
88
|
-
@menu-padding-horizontal-high: (@spacer * 1.5);
|
|
89
|
-
|
|
90
|
-
@textarea-limited-padding: (@spacer * 4);
|
|
84
|
+
@popup-item-padding-left: @comp-paddingTB-l @comp-paddingLR-l;
|
|
91
85
|
|
|
92
86
|
// 高度
|
|
93
87
|
@menu-height-default: 32px; // low
|
|
@@ -23,11 +23,9 @@
|
|
|
23
23
|
@msg-close-bg-color-hover: @bg-color-container-hover;
|
|
24
24
|
@msg-close-bg-color-active: @bg-color-container-active;
|
|
25
25
|
|
|
26
|
-
// 位置
|
|
27
|
-
@msg-icon-position-right: @spacer-4;
|
|
28
|
-
|
|
29
26
|
// 尺寸
|
|
30
|
-
@msg-icon-size: @font-size-
|
|
27
|
+
@msg-icon-size: calc(@font-size-base + 6px);
|
|
28
|
+
@msg-close-size: calc(@font-size-base + 2px);
|
|
31
29
|
@msg-border-width: 1px;
|
|
32
30
|
|
|
33
31
|
// 圆角
|
|
@@ -38,14 +36,13 @@
|
|
|
38
36
|
|
|
39
37
|
//字号
|
|
40
38
|
@msg-font-default: @font-body-medium;
|
|
41
|
-
@msg-close-font-size: @font-size-l;
|
|
42
39
|
|
|
43
40
|
// 间距
|
|
44
|
-
@msg-padding-horizontal-default: @
|
|
45
|
-
@msg-padding-vertical-default:
|
|
46
|
-
@msg-icon-margin-right: @
|
|
47
|
-
@msg-close-icon-margin-left: @
|
|
48
|
-
@msg-list-margin-bottom: @
|
|
41
|
+
@msg-padding-horizontal-default: @comp-paddingLR-l;
|
|
42
|
+
@msg-padding-vertical-default: @comp-paddingTB-m;
|
|
43
|
+
@msg-icon-margin-right: @comp-margin-s;
|
|
44
|
+
@msg-close-icon-margin-left: @comp-margin-xxl;
|
|
45
|
+
@msg-list-margin-bottom: @comp-margin-s;
|
|
49
46
|
|
|
50
47
|
// Angular Icon 组件会多一层容器,这层容器用 [data-t-icon] 命中
|
|
51
48
|
@msg-icon-selector: ~"> .t-icon, > [data-@{prefix}-icon] > .t-icon, .@{prefix}-loading";
|
|
@@ -73,7 +73,6 @@
|
|
|
73
73
|
margin-top: @notification-content-margin-top;
|
|
74
74
|
max-height: @notification-content-max-height;
|
|
75
75
|
overflow: hidden;
|
|
76
|
-
padding-right: @notification-content-padding-right;
|
|
77
76
|
text-overflow: ellipsis;
|
|
78
77
|
word-break: break-all;
|
|
79
78
|
// 需要排查兼容性
|
|
@@ -94,21 +93,17 @@
|
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
&__detail-item {
|
|
97
|
-
padding: @notification-detail-item-padding;
|
|
98
|
-
color: @notification-detail-item-color;
|
|
99
96
|
cursor: pointer;
|
|
100
97
|
}
|
|
101
98
|
|
|
102
99
|
&__detail-item:hover {
|
|
103
100
|
color: @notification-detail-item-color-hover;
|
|
104
101
|
background: @notification-detail-item-bg-color-hover;
|
|
105
|
-
border-radius: @notification-detail-item-border-radius;
|
|
106
102
|
}
|
|
107
103
|
|
|
108
104
|
&__detail-item:active {
|
|
109
105
|
color: @notification-detail-item-color-active;
|
|
110
106
|
background: @notification-detail-item-bg-color-active;
|
|
111
|
-
border-radius: @notification-detail-item-border-radius;
|
|
112
107
|
}
|
|
113
108
|
|
|
114
109
|
&__detail-item + &__detail-item {
|
|
@@ -30,9 +30,11 @@
|
|
|
30
30
|
@notification-close-bg-color-active: @bg-color-container-active;
|
|
31
31
|
|
|
32
32
|
// 尺寸
|
|
33
|
-
@notification-width-default:
|
|
33
|
+
@notification-width-default: 360px;
|
|
34
34
|
@notification-content-max-height: 66px;
|
|
35
|
-
@notification-icon-width: @
|
|
35
|
+
@notification-icon-width: calc(@font-size-l + 8px);
|
|
36
|
+
@notification-icon-font-size: calc(@font-size-l + 8px);
|
|
37
|
+
@notification-icon-close-font-size: @font-size-l;
|
|
36
38
|
|
|
37
39
|
// 圆角
|
|
38
40
|
@notification-detail-item-border-radius: @border-radius-medium;
|
|
@@ -45,17 +47,13 @@
|
|
|
45
47
|
@notification-font: @font-body-medium;
|
|
46
48
|
@notification-detail-font: @font-body-medium;
|
|
47
49
|
@notification-content-font: @font-body-medium;
|
|
48
|
-
@notification-icon-font-size: (@font-size * 2.4);
|
|
49
|
-
@notification-icon-close-font-size: @font-size-l;
|
|
50
50
|
@notification-title-font: @font-title-medium;
|
|
51
51
|
|
|
52
52
|
// padding
|
|
53
|
-
@notification-
|
|
54
|
-
@notification-content-padding-right: 5px;
|
|
55
|
-
@notification-padding-default: 20px @spacer-3 @spacer-3 @spacer-3;
|
|
53
|
+
@notification-padding-default: @comp-paddingTB-l @comp-paddingLR-l;
|
|
56
54
|
|
|
57
55
|
//margin
|
|
58
|
-
@notification-detail-margin-top:
|
|
59
|
-
@notification-content-margin-top: @
|
|
60
|
-
@notification-icon-margin-right: @
|
|
61
|
-
@notification-detail-item-margin-left: @
|
|
56
|
+
@notification-detail-margin-top: @comp-margin-l;
|
|
57
|
+
@notification-content-margin-top: @comp-margin-s;
|
|
58
|
+
@notification-icon-margin-right: @comp-margin-s;
|
|
59
|
+
@notification-detail-item-margin-left: @comp-margin-s;
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
|
|
99
99
|
.pagination-number--size(
|
|
100
100
|
@pagination-height-default; @pagination-font-default;
|
|
101
|
-
@pagination-padding-horizontal-default; @pagination-height-default -
|
|
101
|
+
@pagination-padding-horizontal-default; calc(@pagination-height-default - 2px);
|
|
102
102
|
);
|
|
103
103
|
|
|
104
104
|
&:hover {
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
@pagination-border-radius-base: @border-radius-default;
|
|
18
18
|
|
|
19
19
|
// 尺寸
|
|
20
|
-
@pagination-height-s:
|
|
21
|
-
@pagination-height-default:
|
|
20
|
+
@pagination-height-s: @comp-size-xs;
|
|
21
|
+
@pagination-height-default: @comp-size-m;
|
|
22
22
|
@pagination-input-width: 48px;
|
|
23
23
|
|
|
24
24
|
// 字号
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
@pagination-btn-font-size: @font-body-large;
|
|
28
28
|
|
|
29
29
|
// 间距
|
|
30
|
-
@pagination-padding-horizontal-s:
|
|
31
|
-
@pagination-padding-horizontal-default:
|
|
32
|
-
@pagination-btn-margin: @
|
|
33
|
-
@pagination-jump-margin: @
|
|
34
|
-
@pagination-select-margin:
|
|
35
|
-
@pagination-pager-margin: @
|
|
30
|
+
@pagination-padding-horizontal-s: @comp-paddingLR-xxs;
|
|
31
|
+
@pagination-padding-horizontal-default: @comp-paddingLR-xs;
|
|
32
|
+
@pagination-btn-margin: @comp-margin-s;
|
|
33
|
+
@pagination-jump-margin: @comp-margin-s;
|
|
34
|
+
@pagination-select-margin: @comp-margin-l;
|
|
35
|
+
@pagination-pager-margin: @comp-margin-s;
|
|
36
36
|
|
|
37
37
|
// 过渡
|
|
38
38
|
@pagination-hover-transition: all @anim-duration-base @anim-time-fn-ease-in;
|