@sdata/web-vue 2.3.1 → 2.8.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.
- package/README.md +1 -1
- package/dist/sd.css +133 -187
- package/dist/sd.min.css +1 -1
- package/es/_hooks/use-responsive.d.ts +2 -2
- package/es/_hooks/use-theme-mode.d.ts +3 -0
- package/es/{calendar/hooks/use-calendar-theme.js → _hooks/use-theme-mode.js} +14 -10
- package/es/_utils/responsive-observe.d.ts +5 -4
- package/es/_utils/responsive-observe.js +2 -1
- package/es/alert/index.d.ts +3 -3
- package/es/anchor/index.d.ts +3 -3
- package/es/avatar/index.d.ts +20 -20
- package/es/border-beam/border-beam.js +5 -0
- package/es/border-beam/border-beam.vue.d.ts +52 -0
- package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +623 -0
- package/es/border-beam/index.d.ts +106 -0
- package/es/border-beam/index.js +10 -0
- package/es/border-beam/pulseDriver.d.ts +2 -0
- package/es/border-beam/pulseDriver.js +74 -0
- package/es/border-beam/style/css.js +2 -0
- package/es/border-beam/style/index.css +21 -0
- package/es/border-beam/style/index.d.ts +2 -0
- package/es/border-beam/style/index.js +2 -0
- package/es/border-beam/style/index.scss +12 -0
- package/es/border-beam/style/token.scss +12 -0
- package/es/border-beam/styles.d.ts +42 -0
- package/es/border-beam/styles.js +3545 -0
- package/es/border-beam/types.d.ts +27 -0
- package/es/button/index.d.ts +24 -24
- package/es/calendar/components/index.vue.d.ts +1 -1
- package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/calendar/index.d.ts +5 -5
- package/es/carousel/index.d.ts +3 -3
- package/es/checkbox/checkbox.d.ts +3 -3
- package/es/collapse/collapse-item.d.ts +5 -5
- package/es/collapse/index.d.ts +3 -3
- package/es/components.d.ts +1 -0
- package/es/config-provider/index.d.ts +21 -21
- package/es/date-picker/index.d.ts +14 -14
- package/es/date-picker/picker.vue.d.ts +2 -2
- package/es/date-picker/range-picker.vue.d.ts +2 -2
- package/es/descriptions/index.d.ts +24 -24
- package/es/drawer/index.d.ts +16 -15
- package/es/dropdown/index.d.ts +15 -15
- package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/form/index.d.ts +3 -3
- package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +10 -10
- package/es/icon/icon-menu/icon-menu.js +5 -0
- package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +52 -0
- package/es/icon/icon-menu/index.js +9 -0
- package/es/index.css +133 -187
- package/es/index.d.ts +4 -2
- package/es/index.js +3 -2
- package/es/index.scss +1 -0
- package/es/input/index.d.ts +7 -7
- package/es/json-form/index.d.ts +9 -9
- package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/json-form/json-form.vue.d.ts +3 -3
- package/es/layout/content.vue.d.ts +2 -2
- package/es/layout/content.vue_vue_type_script_setup_true_lang.js +8 -3
- package/es/layout/context.d.ts +12 -9
- package/es/layout/context.js +11 -3
- package/es/layout/footer.vue.d.ts +2 -2
- package/es/layout/footer.vue_vue_type_script_setup_true_lang.js +8 -3
- package/es/layout/header.vue.d.ts +3 -30
- package/es/layout/header.vue_vue_type_script_setup_true_lang.js +9 -339
- package/es/layout/hooks/use-has-sider.d.ts +2 -0
- package/es/layout/hooks/use-has-sider.js +38 -0
- package/es/layout/index.d.ts +120 -371
- package/es/layout/index.js +2 -2
- package/es/layout/interface.d.ts +16 -46
- package/es/layout/layout.vue.d.ts +4 -2
- package/es/layout/layout.vue_vue_type_script_setup_true_lang.js +38 -14
- package/es/layout/sider.vue.d.ts +68 -178
- package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +243 -363
- package/es/layout/style/index.css +128 -186
- package/es/layout/style/index.scss +146 -234
- package/es/layout/style/token.scss +46 -26
- package/es/link/index.d.ts +6 -6
- package/es/list/index.d.ts +18 -18
- package/es/menu/base-menu.vue.d.ts +1 -1
- package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +14 -14
- package/es/menu/item.d.ts +1 -1
- package/es/menu/menu.d.ts +12 -12
- package/es/menu/menu.js +3 -3
- package/es/modal/index.d.ts +15 -15
- package/es/popconfirm/index.d.ts +12 -12
- package/es/popover/index.d.ts +12 -12
- package/es/progress/index.d.ts +6 -6
- package/es/qr-code/index.d.ts +3 -3
- package/es/radio/radio.d.ts +3 -3
- package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +7 -7
- package/es/result/index.d.ts +3 -3
- package/es/scrollbar/style/index.css +1 -1
- package/es/scrollbar/style/index.scss +4 -1
- package/es/sd-vue.js +3 -1
- package/es/select/select.d.ts +17 -17
- package/es/slider/index.d.ts +3 -3
- package/es/split/split.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/steps/index.d.ts +6 -6
- package/es/tabs/index.d.ts +6 -6
- package/es/tag/index.d.ts +6 -6
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/theme-provider/index.d.ts +9 -9
- package/es/time-picker/index.d.ts +6 -6
- package/es/timeline/index.d.ts +3 -3
- package/es/timeline/timeline.d.ts +1 -1
- package/es/tooltip/index.d.ts +3 -3
- package/es/tour/index.d.ts +3 -3
- package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/tree/node-switcher.vue.d.ts +1 -1
- package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +23 -23
- package/json/vetur-attributes.json +27 -153
- package/json/vetur-tags.json +13 -43
- package/json/web-types.json +43 -293
- package/package.json +10 -10
- package/es/calendar/hooks/use-calendar-theme.d.ts +0 -4
- package/es/layout/utils.d.ts +0 -1
- package/es/layout/utils.js +0 -11
|
@@ -3,284 +3,196 @@
|
|
|
3
3
|
@use '@components/layout/style/token.scss' as *;
|
|
4
4
|
|
|
5
5
|
$layout-prefix-cls: string.unquote('#{theme.$prefix}-layout');
|
|
6
|
+
$sider-prefix-cls: string.unquote('#{theme.$prefix}-layout-sider');
|
|
7
|
+
$text-color: var(string.unquote('#{theme.$sd-cssvars-prefix}-color-text-1'));
|
|
6
8
|
|
|
7
9
|
.#{$layout-prefix-cls} {
|
|
8
10
|
display: flex;
|
|
9
|
-
flex:
|
|
11
|
+
flex: auto;
|
|
10
12
|
flex-direction: column;
|
|
11
|
-
margin: 0;
|
|
12
|
-
padding: 0;
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
width: auto;
|
|
18
|
-
max-width: 100%;
|
|
19
|
-
margin: 0;
|
|
20
|
-
padding: 0;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
background: $layout-sider-background;
|
|
23
|
-
transition:
|
|
24
|
-
width theme.$transition-duration-2 theme.$transition-timing-function-standard,
|
|
25
|
-
height theme.$transition-duration-2 theme.$transition-timing-function-standard,
|
|
26
|
-
transform theme.$transition-duration-2 theme.$transition-timing-function-standard;
|
|
27
|
-
|
|
28
|
-
&-image,
|
|
29
|
-
&-prepend,
|
|
30
|
-
&-append {
|
|
31
|
-
flex: none;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&-children {
|
|
35
|
-
flex: 1;
|
|
36
|
-
height: 100%;
|
|
37
|
-
overflow: auto;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&-mask {
|
|
41
|
-
position: fixed;
|
|
42
|
-
inset: 0;
|
|
43
|
-
background: $layout-sider-mask-color;
|
|
44
|
-
}
|
|
14
|
+
/* fix firefox can't set height smaller than content on flex item */
|
|
15
|
+
min-height: 0;
|
|
16
|
+
background: $layout-body-bg;
|
|
45
17
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
}
|
|
18
|
+
&,
|
|
19
|
+
& * {
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
52
22
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
flex-direction: column;
|
|
56
|
-
box-sizing: border-box;
|
|
57
|
-
padding-bottom: $layout-trigger-height;
|
|
58
|
-
}
|
|
23
|
+
&#{&}-has-sider {
|
|
24
|
+
flex-direction: row;
|
|
59
25
|
|
|
60
|
-
|
|
61
|
-
|
|
26
|
+
> .#{$layout-prefix-cls},
|
|
27
|
+
> .#{$layout-prefix-cls}-content {
|
|
28
|
+
width: 0;
|
|
62
29
|
}
|
|
30
|
+
}
|
|
63
31
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
left: 0;
|
|
69
|
-
z-index: 1;
|
|
70
|
-
display: flex;
|
|
71
|
-
align-items: center;
|
|
72
|
-
justify-content: center;
|
|
73
|
-
box-sizing: border-box;
|
|
74
|
-
width: 100%;
|
|
75
|
-
height: $layout-trigger-height;
|
|
76
|
-
color: var(string.unquote('#{theme.$sd-cssvars-prefix}-color-white'));
|
|
77
|
-
background: $layout-trigger-dark-color;
|
|
78
|
-
cursor: pointer;
|
|
79
|
-
transition: width theme.$transition-duration-2 theme.$transition-timing-function-standard;
|
|
80
|
-
|
|
81
|
-
&-light {
|
|
82
|
-
color: $layout-font-color;
|
|
83
|
-
background: $layout-sider-background-light;
|
|
84
|
-
border-top: 1px solid $layout-trigger-light-color-border;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
32
|
+
.#{$layout-prefix-cls}-header,
|
|
33
|
+
&.#{$layout-prefix-cls}-footer {
|
|
34
|
+
flex: 0 0 auto;
|
|
35
|
+
}
|
|
87
36
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
37
|
+
// RTL
|
|
38
|
+
&-rtl {
|
|
39
|
+
direction: rtl;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
91
42
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
43
|
+
// ==================== Header ====================
|
|
44
|
+
.#{$layout-prefix-cls}-header {
|
|
45
|
+
height: $layout-header-height;
|
|
46
|
+
padding: $layout-header-padding;
|
|
47
|
+
color: $layout-header-color;
|
|
48
|
+
line-height: $layout-header-height;
|
|
49
|
+
background: $layout-header-bg;
|
|
50
|
+
}
|
|
95
51
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
52
|
+
// ==================== Footer ====================
|
|
53
|
+
.#{$layout-prefix-cls}-footer {
|
|
54
|
+
padding: $layout-footer-padding;
|
|
55
|
+
color: $text-color;
|
|
56
|
+
font-size: $layout-font-size;
|
|
57
|
+
background: $layout-footer-bg;
|
|
58
|
+
}
|
|
99
59
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
left: 0;
|
|
104
|
-
transform: translateX(-100%);
|
|
105
|
-
}
|
|
60
|
+
// =================== Content ===================
|
|
61
|
+
.#{$layout-prefix-cls}-content {
|
|
62
|
+
flex: auto;
|
|
106
63
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
transform: translateX(100%);
|
|
112
|
-
}
|
|
64
|
+
// fix firefox can't set height smaller than content on flex item
|
|
65
|
+
min-height: 0;
|
|
66
|
+
color: $text-color;
|
|
67
|
+
}
|
|
113
68
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
transform: translateY(-100%);
|
|
120
|
-
}
|
|
69
|
+
// =================== Sider ===================
|
|
70
|
+
.#{$sider-prefix-cls} {
|
|
71
|
+
position: relative;
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
121
74
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
75
|
+
// fix firefox can't set width smaller than content on flex item
|
|
76
|
+
min-width: 0;
|
|
77
|
+
background: $layout-sider-bg;
|
|
78
|
+
// 与 Menu 的展开/收起过渡保持一致(同时长 + standard 缓动),避免同步收缩时出现割裂感
|
|
79
|
+
transition:
|
|
80
|
+
all $layout-motion-duration-mid theme.$transition-timing-function-standard,
|
|
81
|
+
background 0s;
|
|
129
82
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
}
|
|
83
|
+
&-has-trigger {
|
|
84
|
+
padding-bottom: $layout-sider-trigger-height;
|
|
134
85
|
}
|
|
135
86
|
|
|
136
|
-
&-
|
|
137
|
-
|
|
138
|
-
box-shadow: 0 2px 5px 0 rgb(0 0 0 / 8%);
|
|
87
|
+
&-right {
|
|
88
|
+
order: 1;
|
|
139
89
|
}
|
|
140
90
|
|
|
91
|
+
// Fixed region outside the scroll area (e.g. brand / logo).
|
|
141
92
|
&-header {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
box-sizing: border-box;
|
|
145
|
-
margin: 0;
|
|
146
|
-
overflow: hidden;
|
|
147
|
-
color: $layout-header-color;
|
|
148
|
-
background: $layout-header-background;
|
|
149
|
-
border-bottom: 1px solid $layout-header-border-color;
|
|
150
|
-
transition:
|
|
151
|
-
height theme.$transition-duration-2 theme.$transition-timing-function-standard,
|
|
152
|
-
transform theme.$transition-duration-2 theme.$transition-timing-function-standard,
|
|
153
|
-
box-shadow theme.$transition-duration-2 theme.$transition-timing-function-standard;
|
|
154
|
-
|
|
155
|
-
&-wrapper {
|
|
156
|
-
width: 100%;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
&-bar,
|
|
160
|
-
&-extension,
|
|
161
|
-
&-prepend,
|
|
162
|
-
&-append,
|
|
163
|
-
&-content {
|
|
164
|
-
display: flex;
|
|
165
|
-
align-items: center;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
&-bar {
|
|
169
|
-
position: relative;
|
|
170
|
-
z-index: 1;
|
|
171
|
-
gap: $layout-header-gap;
|
|
172
|
-
min-height: var(--sd-layout-header-content-height, 64px);
|
|
173
|
-
padding: 0 $layout-header-padding-inline;
|
|
174
|
-
}
|
|
93
|
+
flex: none;
|
|
94
|
+
}
|
|
175
95
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
96
|
+
// Scroll region fills the remaining height. `min-height: 0` lets it shrink
|
|
97
|
+
// below its content so the inner scrollbar can scroll.
|
|
98
|
+
&-children {
|
|
99
|
+
flex: 1;
|
|
100
|
+
min-height: 0;
|
|
101
|
+
}
|
|
181
102
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
flex: none;
|
|
186
|
-
max-width: min(40%, 480px);
|
|
187
|
-
overflow: hidden;
|
|
188
|
-
color: inherit;
|
|
189
|
-
font-weight: $layout-header-title-font-weight;
|
|
190
|
-
font-size: $layout-header-title-font-size;
|
|
191
|
-
white-space: nowrap;
|
|
192
|
-
text-overflow: ellipsis;
|
|
193
|
-
}
|
|
103
|
+
&-children-scroll {
|
|
104
|
+
overflow: hidden auto;
|
|
105
|
+
}
|
|
194
106
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
flex: 1;
|
|
199
|
-
gap: calc($layout-header-gap / 2);
|
|
200
|
-
min-width: 0;
|
|
201
|
-
}
|
|
107
|
+
&-zero-width &-children {
|
|
108
|
+
overflow: hidden;
|
|
109
|
+
}
|
|
202
110
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
111
|
+
&-trigger {
|
|
112
|
+
position: absolute;
|
|
113
|
+
bottom: 0;
|
|
114
|
+
z-index: 1;
|
|
115
|
+
height: $layout-sider-trigger-height;
|
|
116
|
+
color: $layout-sider-trigger-color;
|
|
117
|
+
line-height: $layout-sider-trigger-height;
|
|
118
|
+
text-align: center;
|
|
119
|
+
cursor: pointer;
|
|
120
|
+
transition: all $layout-motion-duration-mid theme.$transition-timing-function-standard;
|
|
121
|
+
}
|
|
211
122
|
|
|
212
|
-
|
|
123
|
+
&-zero-width-trigger {
|
|
124
|
+
position: absolute;
|
|
125
|
+
top: $layout-header-height;
|
|
126
|
+
z-index: 1;
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
width: $layout-sider-zero-trigger-width;
|
|
131
|
+
height: $layout-sider-zero-trigger-height;
|
|
132
|
+
color: $layout-sider-trigger-color;
|
|
133
|
+
font-size: $layout-sider-zero-trigger-font-size;
|
|
134
|
+
background: $layout-sider-bg;
|
|
135
|
+
border-radius: 0 $layout-radius-lg $layout-radius-lg 0;
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
transition: background-color $layout-motion-duration-slow ease;
|
|
138
|
+
inset-inline-end: -$layout-sider-zero-trigger-width;
|
|
139
|
+
|
|
140
|
+
&::after {
|
|
213
141
|
position: absolute;
|
|
214
142
|
inset: 0;
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
position: absolute;
|
|
219
|
-
inset: 0;
|
|
220
|
-
background: $layout-header-image-overlay;
|
|
221
|
-
content: '';
|
|
222
|
-
}
|
|
143
|
+
background: transparent;
|
|
144
|
+
transition: all $layout-motion-duration-slow;
|
|
145
|
+
content: '';
|
|
223
146
|
}
|
|
224
147
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
width: 100%;
|
|
228
|
-
height: 100%;
|
|
229
|
-
object-fit: cover;
|
|
230
|
-
opacity: var(--sd-layout-header-image-opacity, 1);
|
|
231
|
-
transition: opacity theme.$transition-duration-2 theme.$transition-timing-function-standard;
|
|
148
|
+
&:hover::after {
|
|
149
|
+
background: rgb(255 255 255 / 20%);
|
|
232
150
|
}
|
|
233
151
|
|
|
234
|
-
&-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
&:not(&-flat) {
|
|
239
|
-
box-shadow: $layout-header-shadow;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
&-floating {
|
|
243
|
-
box-shadow: $layout-header-floating-shadow;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
&-hidden {
|
|
247
|
-
pointer-events: none;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
&-collapsed &-extension {
|
|
251
|
-
display: none;
|
|
152
|
+
&-right {
|
|
153
|
+
inset-inline-start: -$layout-sider-zero-trigger-width;
|
|
154
|
+
border-radius: $layout-radius-lg 0 0 $layout-radius-lg;
|
|
252
155
|
}
|
|
156
|
+
}
|
|
253
157
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}
|
|
158
|
+
// Light
|
|
159
|
+
&-light {
|
|
160
|
+
background: $layout-light-sider-bg;
|
|
258
161
|
|
|
259
|
-
|
|
260
|
-
|
|
162
|
+
.#{$sider-prefix-cls}-trigger {
|
|
163
|
+
color: $layout-light-trigger-color;
|
|
164
|
+
background: $layout-light-trigger-bg;
|
|
261
165
|
}
|
|
262
166
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
167
|
+
.#{$sider-prefix-cls}-zero-width-trigger {
|
|
168
|
+
color: $layout-light-trigger-color;
|
|
169
|
+
background: $layout-light-trigger-bg;
|
|
170
|
+
border: 1px solid $layout-body-bg;
|
|
171
|
+
border-inline-start: 0;
|
|
266
172
|
}
|
|
267
173
|
}
|
|
268
174
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
&-footer {
|
|
175
|
+
// Temporary: aside 退化为触发器宿主,菜单内容交给 Drawer 渲染。
|
|
176
|
+
&-temporary {
|
|
274
177
|
flex: 0 0 auto;
|
|
275
|
-
|
|
178
|
+
width: auto;
|
|
179
|
+
background: transparent;
|
|
276
180
|
}
|
|
277
|
-
}
|
|
278
181
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
182
|
+
&-temporary-trigger {
|
|
183
|
+
display: inline-flex;
|
|
184
|
+
align-items: center;
|
|
185
|
+
justify-content: center;
|
|
186
|
+
width: $layout-sider-zero-trigger-width;
|
|
187
|
+
height: $layout-sider-zero-trigger-width;
|
|
188
|
+
color: $text-color;
|
|
189
|
+
font-size: $layout-sider-zero-trigger-font-size;
|
|
190
|
+
border-radius: $layout-radius-lg;
|
|
191
|
+
cursor: pointer;
|
|
192
|
+
transition: background-color $layout-motion-duration-mid ease;
|
|
193
|
+
|
|
194
|
+
&:hover {
|
|
195
|
+
background: var(string.unquote('#{theme.$sd-cssvars-prefix}-color-fill-2'));
|
|
196
|
+
}
|
|
285
197
|
}
|
|
286
198
|
}
|
|
@@ -6,29 +6,49 @@
|
|
|
6
6
|
@use 'sass:string';
|
|
7
7
|
@use '@style/theme/index.scss' as *;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
$layout-
|
|
13
|
-
$layout-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
$layout-header-
|
|
19
|
-
$layout-header-
|
|
20
|
-
$layout-header-
|
|
21
|
-
$layout-header-
|
|
22
|
-
$layout-header-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
$layout-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
);
|
|
34
|
-
$layout-trigger-
|
|
9
|
+
/*****************************************************
|
|
10
|
+
* Layout 整体背景(容器主体与页脚共用)
|
|
11
|
+
*****************************************************/
|
|
12
|
+
$layout-body-bg: var(string.unquote('#{$sd-cssvars-prefix}-color-fill-1'));
|
|
13
|
+
$layout-footer-bg: var(string.unquote('#{$sd-cssvars-prefix}-color-fill-1'));
|
|
14
|
+
|
|
15
|
+
/*****************************************************
|
|
16
|
+
* Header
|
|
17
|
+
*****************************************************/
|
|
18
|
+
$layout-header-bg: #001529;
|
|
19
|
+
$layout-header-height: global.$size-16; // 64px
|
|
20
|
+
$layout-header-padding-horizontal: 50px;
|
|
21
|
+
$layout-header-padding: 0 $layout-header-padding-horizontal;
|
|
22
|
+
$layout-header-color: var(string.unquote('#{$sd-cssvars-prefix}-color-text-1'));
|
|
23
|
+
|
|
24
|
+
/*****************************************************
|
|
25
|
+
* Footer
|
|
26
|
+
*****************************************************/
|
|
27
|
+
$layout-footer-padding: 24px $layout-header-padding-horizontal;
|
|
28
|
+
|
|
29
|
+
/*****************************************************
|
|
30
|
+
* Sider
|
|
31
|
+
* 深色背景与 Menu 深色背景保持一致,避免内嵌菜单出现接缝
|
|
32
|
+
*****************************************************/
|
|
33
|
+
$layout-sider-bg: var(string.unquote('#{$sd-cssvars-prefix}-color-menu-dark-bg'));
|
|
34
|
+
$layout-sider-trigger-height: global.$size-11; // 44px
|
|
35
|
+
$layout-sider-trigger-bg: var(string.unquote('#{$sd-cssvars-prefix}-color-menu-dark-hover'));
|
|
36
|
+
$layout-sider-trigger-color: var(string.unquote('#{$sd-cssvars-prefix}-color-white'));
|
|
37
|
+
$layout-sider-zero-trigger-width: global.$size-10; // 40px
|
|
38
|
+
$layout-sider-zero-trigger-height: global.$size-10; // 40px
|
|
39
|
+
$layout-sider-zero-trigger-font-size: 18px;
|
|
40
|
+
|
|
41
|
+
/*****************************************************
|
|
42
|
+
* Sider light 主题
|
|
43
|
+
*****************************************************/
|
|
44
|
+
$layout-light-sider-bg: var(string.unquote('#{$sd-cssvars-prefix}-color-bg-1'));
|
|
45
|
+
$layout-light-trigger-bg: var(string.unquote('#{$sd-cssvars-prefix}-color-bg-1'));
|
|
46
|
+
$layout-light-trigger-color: var(string.unquote('#{$sd-cssvars-prefix}-color-text-1'));
|
|
47
|
+
|
|
48
|
+
/*****************************************************
|
|
49
|
+
* 公共
|
|
50
|
+
*****************************************************/
|
|
51
|
+
$layout-radius-lg: global.$border-radius-large;
|
|
52
|
+
$layout-motion-duration-mid: global.$transition-duration-2;
|
|
53
|
+
$layout-motion-duration-slow: global.$transition-duration-3;
|
|
54
|
+
$layout-font-size: global.$font-size-body;
|
package/es/link/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@ declare const Link: {
|
|
|
14
14
|
loading: boolean;
|
|
15
15
|
ellipsisLineClamp: number | string;
|
|
16
16
|
ellipsisExpandTrigger: "click";
|
|
17
|
-
ellipsisTooltip: boolean | import("
|
|
18
|
-
status: import("
|
|
17
|
+
ellipsisTooltip: boolean | import("../index.ts").EllipsisTooltipProps;
|
|
18
|
+
status: import("../index.ts").Status;
|
|
19
19
|
iconTooltip: string;
|
|
20
20
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
21
21
|
P: {};
|
|
@@ -33,8 +33,8 @@ declare const Link: {
|
|
|
33
33
|
loading: boolean;
|
|
34
34
|
ellipsisLineClamp: number | string;
|
|
35
35
|
ellipsisExpandTrigger: "click";
|
|
36
|
-
ellipsisTooltip: boolean | import("
|
|
37
|
-
status: import("
|
|
36
|
+
ellipsisTooltip: boolean | import("../index.ts").EllipsisTooltipProps;
|
|
37
|
+
status: import("../index.ts").Status;
|
|
38
38
|
iconTooltip: string;
|
|
39
39
|
}>;
|
|
40
40
|
__isFragment?: never;
|
|
@@ -51,8 +51,8 @@ declare const Link: {
|
|
|
51
51
|
loading: boolean;
|
|
52
52
|
ellipsisLineClamp: number | string;
|
|
53
53
|
ellipsisExpandTrigger: "click";
|
|
54
|
-
ellipsisTooltip: boolean | import("
|
|
55
|
-
status: import("
|
|
54
|
+
ellipsisTooltip: boolean | import("../index.ts").EllipsisTooltipProps;
|
|
55
|
+
status: import("../index.ts").Status;
|
|
56
56
|
iconTooltip: string;
|
|
57
57
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
58
58
|
$slots: {
|