@qsxy/element-plus-react 1.0.0-next.12 → 1.0.0-next.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Dialog/Dialog.js +5 -6
- package/dist/Dialog/DialogContext.d.ts +1 -1
- package/dist/Dialog/DialogContext.js +1 -1
- package/dist/Drawer/Drawer.d.ts +2 -5
- package/dist/Drawer/Drawer.js +98 -35
- package/dist/Drawer/DrawerBody.js +6 -12
- package/dist/Drawer/DrawerContext.d.ts +1 -13
- package/dist/Drawer/DrawerContext.js +1 -11
- package/dist/Drawer/DrawerHeader.js +5 -18
- package/dist/Drawer/typings.d.ts +31 -10
- package/dist/InputNumber/InputNumber.d.ts +2 -2
- package/dist/InputNumber/InputNumber.js +3 -3
- package/dist/Loading/Loading.d.ts +7 -2
- package/dist/Loading/Loading.js +108 -57
- package/dist/Loading/typings.d.ts +7 -1
- package/dist/Message/Main.d.ts +0 -7
- package/dist/Message/Main.js +0 -7
- package/dist/Message/Message.d.ts +2 -2
- package/dist/Message/Message.js +4 -3
- package/dist/Message/index.d.ts +0 -8
- package/dist/Message/index.js +5 -9
- package/dist/MessageBox/MessageBox.js +2 -1
- package/dist/MessageBox/index.d.ts +5 -5
- package/dist/MessageBox/index.js +1 -0
- package/dist/Notification/Main.d.ts +0 -7
- package/dist/Notification/Main.js +0 -7
- package/dist/Popover/Popover.d.ts +3 -2
- package/dist/Popover/Popover.js +10 -5
- package/dist/Popover/typings.d.ts +0 -1
- package/dist/Skeleton/PlaceholderGraph.d.ts +1 -1
- package/dist/Skeleton/PlaceholderGraph.js +3 -3
- package/dist/Skeleton/PlaceholderGrid.d.ts +1 -1
- package/dist/Skeleton/PlaceholderGrid.js +3 -3
- package/dist/Skeleton/PlaceholderParagraph.d.ts +2 -2
- package/dist/Skeleton/PlaceholderParagraph.js +13 -8
- package/dist/Skeleton/Skeleton.d.ts +2 -9
- package/dist/Skeleton/Skeleton.js +94 -7
- package/dist/Skeleton/SkeletonContext.d.ts +17 -0
- package/dist/Skeleton/SkeletonContext.js +5 -0
- package/dist/Skeleton/SkeletonItem.d.ts +4 -0
- package/dist/Skeleton/SkeletonItem.js +47 -0
- package/dist/Skeleton/index.d.ts +2 -3
- package/dist/Skeleton/index.js +2 -1
- package/dist/Skeleton/typings.d.ts +29 -0
- package/dist/Skeleton/typings.js +1 -0
- package/dist/Table/Table.d.ts +0 -1
- package/dist/Table/Table.js +1 -1
- package/dist/Table/hooks/useSelection.d.ts +1 -1
- package/dist/Tooltip/Tooltip.d.ts +3 -3
- package/dist/Tooltip/Tooltip.js +6 -6
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/theme-chalk/drawer/index.scss +61 -65
- package/theme-chalk/message/index.scss +11 -3
- package/theme-chalk/placeholder/index.scss +22 -37
- package/dist/theme-chalk/avatar/index.scss +0 -50
- package/dist/theme-chalk/badge/index.scss +0 -63
- package/dist/theme-chalk/breadcrumb/index.scss +0 -65
- package/dist/theme-chalk/build.scss +0 -2
- package/dist/theme-chalk/button/_mixins.scss +0 -317
- package/dist/theme-chalk/button/button-group.scss +0 -83
- package/dist/theme-chalk/button/button.scss +0 -382
- package/dist/theme-chalk/button/index.scss +0 -2
- package/dist/theme-chalk/calendar/date-picker.scss +0 -112
- package/dist/theme-chalk/calendar/date-range-picker.scss +0 -139
- package/dist/theme-chalk/calendar/date-table.scss +0 -156
- package/dist/theme-chalk/calendar/index.scss +0 -6
- package/dist/theme-chalk/calendar/month-table.scss +0 -92
- package/dist/theme-chalk/calendar/picker-panel.scss +0 -136
- package/dist/theme-chalk/calendar/year-table.scss +0 -107
- package/dist/theme-chalk/card/index.scss +0 -44
- package/dist/theme-chalk/carousel/index.scss +0 -237
- package/dist/theme-chalk/cascader/cascader-panel.scss +0 -184
- package/dist/theme-chalk/cascader/cascader.scss +0 -239
- package/dist/theme-chalk/cascader/index.scss +0 -2
- package/dist/theme-chalk/checkbox/index.scss +0 -255
- package/dist/theme-chalk/checkbox-button/index.scss +0 -117
- package/dist/theme-chalk/checkbox-group/index.scss +0 -33
- package/dist/theme-chalk/col/_mixins.scss +0 -62
- package/dist/theme-chalk/col/index.scss +0 -50
- package/dist/theme-chalk/collapse/index.scss +0 -84
- package/dist/theme-chalk/color-picker/index.scss +0 -340
- package/dist/theme-chalk/common/_var.scss +0 -6
- package/dist/theme-chalk/common/index.d.ts +0 -1
- package/dist/theme-chalk/common/index.js +0 -1
- package/dist/theme-chalk/common/index.scss +0 -222
- package/dist/theme-chalk/date-picker/index.scss +0 -253
- package/dist/theme-chalk/date-time-picker/index.scss +0 -3
- package/dist/theme-chalk/date-time-picker/time-picker.scss +0 -83
- package/dist/theme-chalk/date-time-picker/time-range-picker.scss +0 -32
- package/dist/theme-chalk/descriptions/descriptions-item.scss +0 -66
- package/dist/theme-chalk/descriptions/descriptions.scss +0 -160
- package/dist/theme-chalk/descriptions/index.scss +0 -2
- package/dist/theme-chalk/dev.scss +0 -2
- package/dist/theme-chalk/dialog/index.scss +0 -190
- package/dist/theme-chalk/display.scss +0 -46
- package/dist/theme-chalk/divider/index.scss +0 -51
- package/dist/theme-chalk/doc.scss +0 -2
- package/dist/theme-chalk/drawer/index.scss +0 -250
- package/dist/theme-chalk/dropdown/index.scss +0 -147
- package/dist/theme-chalk/empty/index.scss +0 -69
- package/dist/theme-chalk/fonts/fa-brands-400.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-brands-400.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-duotone-900.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-duotone-900.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-light-300.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-light-300.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-regular-400.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-regular-400.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-solid-900.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-solid-900.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-thin-100.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-thin-100.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-v4compatibility.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-v4compatibility.woff2 +0 -0
- package/dist/theme-chalk/form/index.scss +0 -378
- package/dist/theme-chalk/icon/fonts.scss +0 -9
- package/dist/theme-chalk/icon/index.scss +0 -44
- package/dist/theme-chalk/icon/scss/_animated.scss +0 -205
- package/dist/theme-chalk/icon/scss/_bordered-pulled.scss +0 -20
- package/dist/theme-chalk/icon/scss/_core.scss +0 -33
- package/dist/theme-chalk/icon/scss/_duotone-icons.scss +0 -12
- package/dist/theme-chalk/icon/scss/_fixed-width.scss +0 -7
- package/dist/theme-chalk/icon/scss/_functions.scss +0 -57
- package/dist/theme-chalk/icon/scss/_icons.scss +0 -11
- package/dist/theme-chalk/icon/scss/_list.scss +0 -20
- package/dist/theme-chalk/icon/scss/_mixins.scss +0 -102
- package/dist/theme-chalk/icon/scss/_rotated-flipped.scss +0 -31
- package/dist/theme-chalk/icon/scss/_screen-reader.scss +0 -14
- package/dist/theme-chalk/icon/scss/_shims.scss +0 -2606
- package/dist/theme-chalk/icon/scss/_sizing.scss +0 -16
- package/dist/theme-chalk/icon/scss/_stacked.scss +0 -32
- package/dist/theme-chalk/icon/scss/_variables.scss +0 -9189
- package/dist/theme-chalk/icon/scss/brands.scss +0 -27
- package/dist/theme-chalk/icon/scss/duotone.scss +0 -72
- package/dist/theme-chalk/icon/scss/fontawesome.scss +0 -13
- package/dist/theme-chalk/icon/scss/index.scss +0 -15
- package/dist/theme-chalk/icon/scss/light.scss +0 -21
- package/dist/theme-chalk/icon/scss/regular.scss +0 -21
- package/dist/theme-chalk/icon/scss/solid.scss +0 -21
- package/dist/theme-chalk/icon/scss/thin.scss +0 -21
- package/dist/theme-chalk/icon/scss/v4-shims.scss +0 -3
- package/dist/theme-chalk/index.scss +0 -67
- package/dist/theme-chalk/input/_mixins.scss +0 -16
- package/dist/theme-chalk/input/index.scss +0 -3
- package/dist/theme-chalk/input/input-range.scss +0 -208
- package/dist/theme-chalk/input/input.scss +0 -577
- package/dist/theme-chalk/input-number/index.scss +0 -172
- package/dist/theme-chalk/link/index.scss +0 -99
- package/dist/theme-chalk/loading/index.scss +0 -94
- package/dist/theme-chalk/message/index.scss +0 -169
- package/dist/theme-chalk/message-box/index.scss +0 -184
- package/dist/theme-chalk/notification/index.scss +0 -155
- package/dist/theme-chalk/pagination/index.scss +0 -515
- package/dist/theme-chalk/placeholder/index.scss +0 -135
- package/dist/theme-chalk/popconfirm/index.scss +0 -35
- package/dist/theme-chalk/popover/index.scss +0 -54
- package/dist/theme-chalk/popper/index.scss +0 -86
- package/dist/theme-chalk/progress/index.scss +0 -155
- package/dist/theme-chalk/radio/index.scss +0 -2
- package/dist/theme-chalk/radio/radio-button.scss +0 -128
- package/dist/theme-chalk/radio/radio.scss +0 -171
- package/dist/theme-chalk/radio-group/index.scss +0 -31
- package/dist/theme-chalk/row/index.scss +0 -30
- package/dist/theme-chalk/scrollbar/index.scss +0 -103
- package/dist/theme-chalk/select/index.scss +0 -244
- package/dist/theme-chalk/select/option-group.scss +0 -54
- package/dist/theme-chalk/select/option.scss +0 -63
- package/dist/theme-chalk/select/select-dropdown.scss +0 -57
- package/dist/theme-chalk/switch/index.scss +0 -273
- package/dist/theme-chalk/table/index.scss +0 -714
- package/dist/theme-chalk/tabs/index.scss +0 -620
- package/dist/theme-chalk/tag/index.scss +0 -360
- package/dist/theme-chalk/time-line/_timeline-item.scss +0 -90
- package/dist/theme-chalk/time-line/_timeline.scss +0 -50
- package/dist/theme-chalk/time-line/index.scss +0 -2
- package/dist/theme-chalk/time-picker/index.scss +0 -109
- package/dist/theme-chalk/tooltip/index.scss +0 -13
- package/dist/theme-chalk/transfer/index.scss +0 -247
- package/dist/theme-chalk/transition/index.scss +0 -756
- package/dist/theme-chalk/tree/_directory.scss +0 -73
- package/dist/theme-chalk/tree/_tree.scss +0 -401
- package/dist/theme-chalk/tree/index.scss +0 -2
- package/dist/theme-chalk/tree-select/index.scss +0 -25
- package/dist/theme-chalk/upload/index.scss +0 -631
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
@use '../common/var';
|
|
2
|
-
|
|
3
|
-
// Kill the scroll on the body
|
|
4
|
-
.#{$namespace}-popup-parent--hidden {
|
|
5
|
-
overflow: hidden !important;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.#{$namespace}-overlay {
|
|
9
|
-
position: fixed;
|
|
10
|
-
top: 0;
|
|
11
|
-
right: 0;
|
|
12
|
-
bottom: 0;
|
|
13
|
-
left: 0;
|
|
14
|
-
z-index: 2000;
|
|
15
|
-
height: 100%;
|
|
16
|
-
background-color: var(--#{$namespace}-overlay-color-lighter);
|
|
17
|
-
overflow: auto;
|
|
18
|
-
|
|
19
|
-
&.is-message-box .el-overlay-message-box {
|
|
20
|
-
text-align: center;
|
|
21
|
-
position: fixed;
|
|
22
|
-
top: 0;
|
|
23
|
-
right: 0;
|
|
24
|
-
bottom: 0;
|
|
25
|
-
left: 0;
|
|
26
|
-
padding: 16px;
|
|
27
|
-
overflow: auto;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&.is-message-box .el-overlay-message-box:after {
|
|
31
|
-
content: '';
|
|
32
|
-
display: inline-block;
|
|
33
|
-
height: 100%;
|
|
34
|
-
width: 0;
|
|
35
|
-
vertical-align: middle;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.#{$namespace}-overlay-dialog {
|
|
40
|
-
position: fixed;
|
|
41
|
-
top: 0;
|
|
42
|
-
right: 0;
|
|
43
|
-
bottom: 0;
|
|
44
|
-
left: 0;
|
|
45
|
-
overflow: auto;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// Container that the dialog scrolls within
|
|
49
|
-
.#{$namespace}-dialog {
|
|
50
|
-
--#{$namespace}-dialog-width: 50%;
|
|
51
|
-
--#{$namespace}-dialog-margin-top: 15vh;
|
|
52
|
-
--#{$namespace}-dialog-bg-color: var(--#{$namespace}-bg-color);
|
|
53
|
-
--#{$namespace}-dialog-box-shadow: var(--#{$namespace}-box-shadow);
|
|
54
|
-
--#{$namespace}-dialog-title-font-size: var(--#{$namespace}-font-size-large);
|
|
55
|
-
--#{$namespace}-dialog-content-font-size: 14px;
|
|
56
|
-
--#{$namespace}-dialog-font-line-height: var(--#{$namespace}-font-line-height-primary);
|
|
57
|
-
--#{$namespace}-dialog-padding-primary: 16px;
|
|
58
|
-
--#{$namespace}-dialog-border-radius: var(--#{$namespace}-border-radius-base);
|
|
59
|
-
position: relative;
|
|
60
|
-
margin: var(--#{$namespace}-dialog-margin-top, 15vh) auto 50px;
|
|
61
|
-
background: var(--#{$namespace}-dialog-bg-color);
|
|
62
|
-
border-radius: var(--#{$namespace}-dialog-border-radius);
|
|
63
|
-
box-shadow: var(--#{$namespace}-dialog-box-shadow);
|
|
64
|
-
box-sizing: border-box;
|
|
65
|
-
padding: var(--#{$namespace}-dialog-padding-primary);
|
|
66
|
-
width: var(--#{$namespace}-dialog-width, 50%);
|
|
67
|
-
|
|
68
|
-
&:focus {
|
|
69
|
-
outline: none !important;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&.is-align-center {
|
|
73
|
-
margin: auto;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&.is-fullscreen {
|
|
77
|
-
--#{$namespace}-dialog-width: 100%;
|
|
78
|
-
--#{$namespace}-dialog-margin-top: 0;
|
|
79
|
-
margin-bottom: 0;
|
|
80
|
-
height: 100%;
|
|
81
|
-
overflow: auto;
|
|
82
|
-
border-radius: 0;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&.is-draggable .#{$namespace}-dialog__header {
|
|
86
|
-
cursor: move;
|
|
87
|
-
-webkit-user-select: none;
|
|
88
|
-
user-select: none;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&.#{$namespace}-dialog-shake {
|
|
92
|
-
animation: 0.3s linear rShakeHead;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.#{$namespace}-dialog--center {
|
|
97
|
-
text-align: center;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.#{$namespace}-dialog__wrapper {
|
|
101
|
-
position: fixed;
|
|
102
|
-
top: 0;
|
|
103
|
-
right: 0;
|
|
104
|
-
bottom: 0;
|
|
105
|
-
left: 0;
|
|
106
|
-
overflow: auto;
|
|
107
|
-
margin: 0;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.#{$namespace}-dialog__header {
|
|
111
|
-
padding-bottom: var(--#{$namespace}-dialog-padding-primary);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.#{$namespace}-dialog__header.show-close {
|
|
115
|
-
padding-right: calc(var(--#{$namespace}-dialog-padding-primary) + var(--#{$namespace}-message-close-size, 16px));
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.#{$namespace}-dialog__headerbtn {
|
|
119
|
-
position: absolute;
|
|
120
|
-
top: 0;
|
|
121
|
-
right: 0;
|
|
122
|
-
padding: 0;
|
|
123
|
-
width: 48px;
|
|
124
|
-
height: 48px;
|
|
125
|
-
background: transparent;
|
|
126
|
-
border: none;
|
|
127
|
-
outline: none;
|
|
128
|
-
cursor: pointer;
|
|
129
|
-
font-size: var(--#{$namespace}-message-close-size, 16px);
|
|
130
|
-
|
|
131
|
-
& .#{$namespace}-dialog__close {
|
|
132
|
-
color: var(--#{$namespace}-color-info);
|
|
133
|
-
font-size: inherit;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
&:focus .#{$namespace}-dialog__close,
|
|
137
|
-
&:hover .#{$namespace}-dialog__close {
|
|
138
|
-
color: var(--#{$namespace}-color-primary);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.#{$namespace}-dialog__title {
|
|
143
|
-
line-height: var(--#{$namespace}-dialog-font-line-height);
|
|
144
|
-
font-size: var(--#{$namespace}-dialog-title-font-size);
|
|
145
|
-
color: var(--#{$namespace}-text-color-primary);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.#{$namespace}-dialog__body {
|
|
149
|
-
color: var(--#{$namespace}-text-color-regular);
|
|
150
|
-
font-size: var(--#{$namespace}-dialog-content-font-size);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.#{$namespace}-dialog__footer {
|
|
154
|
-
padding-top: var(--#{$namespace}-dialog-padding-primary);
|
|
155
|
-
text-align: right;
|
|
156
|
-
box-sizing: border-box;
|
|
157
|
-
|
|
158
|
-
&.is-left {
|
|
159
|
-
text-align: left;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
&.is-center {
|
|
163
|
-
text-align: center;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
&.is-right {
|
|
167
|
-
text-align: right;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.#{$namespace}-dialog--center {
|
|
172
|
-
text-align: center;
|
|
173
|
-
|
|
174
|
-
& .#{$namespace}-dialog__body {
|
|
175
|
-
text-align: initial;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
& .#{$namespace}-dialog__footer {
|
|
179
|
-
text-align: inherit;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.#{$namespace}-overlay-dialog {
|
|
184
|
-
position: fixed;
|
|
185
|
-
top: 0;
|
|
186
|
-
right: 0;
|
|
187
|
-
bottom: 0;
|
|
188
|
-
left: 0;
|
|
189
|
-
overflow: auto;
|
|
190
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
@use './common/var';
|
|
2
|
-
|
|
3
|
-
@use 'sass:string';
|
|
4
|
-
@use 'sass:map';
|
|
5
|
-
|
|
6
|
-
// Break-point
|
|
7
|
-
$sm: 768px !default;
|
|
8
|
-
$md: 992px !default;
|
|
9
|
-
$lg: 1200px !default;
|
|
10
|
-
$xl: 1920px !default;
|
|
11
|
-
|
|
12
|
-
$breakpoints-spec: (
|
|
13
|
-
'xs-only': '(max-width: #{$sm - 1})',
|
|
14
|
-
'sm-and-up': '(min-width: #{$sm})',
|
|
15
|
-
'sm-only': '(min-width: #{$sm}) and (max-width: #{$md - 1})',
|
|
16
|
-
'sm-and-down': '(max-width: #{$md - 1})',
|
|
17
|
-
'md-and-up': '(min-width: #{$md})',
|
|
18
|
-
'md-only': '(min-width: #{$md}) and (max-width: #{$lg - 1})',
|
|
19
|
-
'md-and-down': '(max-width: #{$lg - 1})',
|
|
20
|
-
'lg-and-up': '(min-width: #{$lg})',
|
|
21
|
-
'lg-only': '(min-width: #{$lg}) and (max-width: #{$xl - 1})',
|
|
22
|
-
'lg-and-down': '(max-width: #{$xl - 1})',
|
|
23
|
-
'xl-only': '(min-width: #{$xl})',
|
|
24
|
-
) !default;
|
|
25
|
-
|
|
26
|
-
// Break-points
|
|
27
|
-
@mixin res($key, $map: $breakpoints) {
|
|
28
|
-
// loop breakpoint Map, return if present
|
|
29
|
-
@if map.has-key($map, $key) {
|
|
30
|
-
@media only screen and #{string.unquote(map.get($map, $key))} {
|
|
31
|
-
@content;
|
|
32
|
-
}
|
|
33
|
-
} @else {
|
|
34
|
-
@warn "Undefined points: `#{$map}`";
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.hidden {
|
|
39
|
-
@each $break-point-name, $value in $breakpoints-spec {
|
|
40
|
-
&-#{$break-point-name} {
|
|
41
|
-
@include res($break-point-name, $breakpoints-spec) {
|
|
42
|
-
display: none !important;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
@use '../common/var';
|
|
2
|
-
|
|
3
|
-
.#{$namespace}-divider {
|
|
4
|
-
--#{$namespace}-divider-text-bg-color: var(--#{$namespace}-bg-color);
|
|
5
|
-
--#{$namespace}-divider-border-color: var(--#{$namespace}-border-color);
|
|
6
|
-
position: relative;
|
|
7
|
-
font-weight: 500;
|
|
8
|
-
font-size: 14px;
|
|
9
|
-
color: var(--#{$namespace}-text-color-primary);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.#{$namespace}-divider--horizontal {
|
|
13
|
-
display: block;
|
|
14
|
-
width: 100%;
|
|
15
|
-
height: 1px;
|
|
16
|
-
margin: var(--#{$namespace}-divider-margin, 24px 0);
|
|
17
|
-
background: var(--#{$namespace}-divider-tip-bg-color);
|
|
18
|
-
border-top: 1px var(--#{$namespace}-border-style) var(--#{$namespace}-divider-border-color);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.#{$namespace}-divider--vertical {
|
|
22
|
-
position: relative;
|
|
23
|
-
display: inline-block;
|
|
24
|
-
width: 1px;
|
|
25
|
-
height: 1em;
|
|
26
|
-
margin: var(--#{$namespace}-divider-margin, 0 8px);
|
|
27
|
-
vertical-align: middle;
|
|
28
|
-
background: var(--#{$namespace}-divider-tip-bg-color);
|
|
29
|
-
border-left: 1px var(--#{$namespace}-border-style) var(--#{$namespace}-divider-border-color);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.#{$namespace}-divider__text {
|
|
33
|
-
position: absolute;
|
|
34
|
-
padding: 0 20px;
|
|
35
|
-
background-color: var(--#{$namespace}-divider-text-bg-color);
|
|
36
|
-
|
|
37
|
-
&.is-left {
|
|
38
|
-
left: 20px;
|
|
39
|
-
transform: translateY(-50%);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&.is-center {
|
|
43
|
-
left: 50%;
|
|
44
|
-
transform: translateX(-50%) translateY(-50%);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&.is-right {
|
|
48
|
-
right: 20px;
|
|
49
|
-
transform: translateY(-50%);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
@use '../common/var';
|
|
2
|
-
|
|
3
|
-
.#{$namespace}-drawer-wrapper {
|
|
4
|
-
height: 100%;
|
|
5
|
-
left: 0;
|
|
6
|
-
position: fixed;
|
|
7
|
-
top: 0;
|
|
8
|
-
width: 100%;
|
|
9
|
-
z-index: 1050;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.#{$namespace}-drawer {
|
|
13
|
-
--#{$namespace}-drawer-width: auto;
|
|
14
|
-
--#{$namespace}-drawer-height: 100%;
|
|
15
|
-
--#{$namespace}-drawer-margin-top: 30px;
|
|
16
|
-
--#{$namespace}-drawer-bg-color: var(--#{$namespace}-bg-color-overlay);
|
|
17
|
-
--#{$namespace}-drawer-box-shadow: var(--#{$namespace}-box-shadow);
|
|
18
|
-
--#{$namespace}-drawer-title-font-size: var(--#{$namespace}-font-size-large);
|
|
19
|
-
--#{$namespace}-drawer-content-font-size: 14px;
|
|
20
|
-
--#{$namespace}-drawer-font-line-height: var(--#{$namespace}-font-line-height-primary);
|
|
21
|
-
--#{$namespace}-drawer-padding-primary: 20px;
|
|
22
|
-
--#{$namespace}-drawer-border-radius: var(--#{$namespace}-border-radius-small);
|
|
23
|
-
|
|
24
|
-
display: none;
|
|
25
|
-
overflow: hidden;
|
|
26
|
-
position: fixed;
|
|
27
|
-
z-index: 1050;
|
|
28
|
-
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06);
|
|
29
|
-
outline: 0;
|
|
30
|
-
width: var(--#{$namespace}-drawer-width);
|
|
31
|
-
height: var(--#{$namespace}-drawer-height);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.#{$namespace}-drawer,
|
|
35
|
-
.#{$namespace}-drawer-open.#{$namespace}-drawer-has-backdrop {
|
|
36
|
-
overflow: hidden;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.#{$namespace}-drawer-left,
|
|
40
|
-
.#{$namespace}-drawer-right {
|
|
41
|
-
top: 0;
|
|
42
|
-
--#{$namespace}-drawer-height: 100%;
|
|
43
|
-
|
|
44
|
-
&.#{$namespace}-drawer-large {
|
|
45
|
-
--#{$namespace}-drawer-width: 969px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&.#{$namespace}-drawer-md {
|
|
49
|
-
--#{$namespace}-drawer-width: 800px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&.#{$namespace}-drawer-small {
|
|
53
|
-
--#{$namespace}-drawer-width: 600px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&.#{$namespace}-drawer-xs {
|
|
57
|
-
--#{$namespace}-drawer-width: 400px;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.#{$namespace}-drawer-top,
|
|
62
|
-
.#{$namespace}-drawer-bottom {
|
|
63
|
-
--#{$namespace}-drawer-width: 100%;
|
|
64
|
-
|
|
65
|
-
&.#{$namespace}-drawer-large {
|
|
66
|
-
--#{$namespace}-drawer-height: 568px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&.#{$namespace}-drawer-md {
|
|
70
|
-
--#{$namespace}-drawer-height: 480px;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&.#{$namespace}-drawer-small {
|
|
74
|
-
--#{$namespace}-drawer-height: 400px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&.#{$namespace}-drawer-xs {
|
|
78
|
-
--#{$namespace}-drawer-height: 290px;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.#{$namespace}-drawer-full {
|
|
83
|
-
&.#{$namespace}-drawer-top,
|
|
84
|
-
&.#{$namespace}-drawer-bottom {
|
|
85
|
-
--#{$namespace}-drawer-height: 100%;
|
|
86
|
-
|
|
87
|
-
.#{$namespace}-drawer-content {
|
|
88
|
-
--#{$namespace}-drawer-height: 100%;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&.#{$namespace}-drawer-left,
|
|
93
|
-
&.#{$namespace}-drawer-right {
|
|
94
|
-
--#{$namespace}-drawer-width: calc(100% - 60px);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.#{$namespace}-drawer-right {
|
|
99
|
-
right: 0;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.#{$namespace}-drawer-left {
|
|
103
|
-
left: 0;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.#{$namespace}-drawer-top {
|
|
107
|
-
top: 0;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.#{$namespace}-drawer-bottom {
|
|
111
|
-
bottom: 0;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.#{$namespace}-drawer-open .#{$namespace}-drawer {
|
|
115
|
-
overflow: visible;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.#{$namespace}-drawer-dialog {
|
|
119
|
-
position: relative;
|
|
120
|
-
width: 100%;
|
|
121
|
-
height: 100%;
|
|
122
|
-
|
|
123
|
-
.#{$namespace}-drawer-shake .#{$namespace}-drawer-dialog {
|
|
124
|
-
animation: 0.3s linear shakeHead;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.#{$namespace}-drawer-content {
|
|
129
|
-
position: absolute;
|
|
130
|
-
background-color: var(--#{$namespace}-drawer-bg-color);
|
|
131
|
-
outline: 0;
|
|
132
|
-
width: 100%;
|
|
133
|
-
height: 100%;
|
|
134
|
-
display: flex;
|
|
135
|
-
flex-direction: column;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.#{$namespace}-drawer-backdrop {
|
|
139
|
-
position: fixed;
|
|
140
|
-
top: 0;
|
|
141
|
-
right: 0;
|
|
142
|
-
bottom: 0;
|
|
143
|
-
left: 0;
|
|
144
|
-
z-index: 1050;
|
|
145
|
-
background-color: var(--#{$namespace}-overlay-color-lighter);
|
|
146
|
-
|
|
147
|
-
// Fade for backdrop
|
|
148
|
-
&.#{$namespace}-anim-fade {
|
|
149
|
-
opacity: 0;
|
|
150
|
-
transition: opacity 0.3s ease-in;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
&.#{$namespace}-anim-in {
|
|
154
|
-
opacity: 1;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.#{$namespace}-drawer-header {
|
|
159
|
-
&::before,
|
|
160
|
-
&::after {
|
|
161
|
-
content: ' '; // 1
|
|
162
|
-
display: table; // 2
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
&::after {
|
|
166
|
-
clear: both;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
padding: 15px 20px;
|
|
170
|
-
|
|
171
|
-
&.is-border {
|
|
172
|
-
border-bottom: 1px solid var(--#{$namespace}-border-color);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.#{$namespace}-drawer-header-close {
|
|
176
|
-
background: transparent;
|
|
177
|
-
border: none;
|
|
178
|
-
cursor: pointer;
|
|
179
|
-
position: absolute;
|
|
180
|
-
right: 20px;
|
|
181
|
-
top: 12px;
|
|
182
|
-
font-size: 16px;
|
|
183
|
-
line-height: 1.6666666667;
|
|
184
|
-
color: var(--#{$namespace}-color-info);
|
|
185
|
-
width: 20px;
|
|
186
|
-
padding: 0 4px;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.#{$namespace}-drawer-title {
|
|
191
|
-
font-weight: normal;
|
|
192
|
-
color: var(--#{$namespace}-text-color-primary);
|
|
193
|
-
display: block;
|
|
194
|
-
font-size: 16px;
|
|
195
|
-
line-height: 1.25;
|
|
196
|
-
|
|
197
|
-
margin: 0;
|
|
198
|
-
overflow: hidden;
|
|
199
|
-
text-overflow: ellipsis;
|
|
200
|
-
white-space: nowrap;
|
|
201
|
-
width: 100%;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.#{$namespace}-drawer-body {
|
|
205
|
-
position: relative;
|
|
206
|
-
flex: 1;
|
|
207
|
-
overflow: hidden;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.#{$namespace}-drawer-footer {
|
|
211
|
-
text-align: right;
|
|
212
|
-
border-top: none;
|
|
213
|
-
padding: 15px 20px;
|
|
214
|
-
|
|
215
|
-
&::before,
|
|
216
|
-
&::after {
|
|
217
|
-
content: ' '; // 1
|
|
218
|
-
display: table; // 2
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
&::after {
|
|
222
|
-
clear: both;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
// Properly space out buttons
|
|
226
|
-
.#{$namespace}-button + .#{$namespace}-button {
|
|
227
|
-
margin-left: 10px;
|
|
228
|
-
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
|
|
229
|
-
}
|
|
230
|
-
// but override that for button groups
|
|
231
|
-
.#{$namespace}-button-group .#{$namespace}-button + .#{$namespace}-button {
|
|
232
|
-
margin-left: -1px;
|
|
233
|
-
}
|
|
234
|
-
// and override it for block buttons as well
|
|
235
|
-
.#{$namespace}-button-block + .#{$namespace}-button-block {
|
|
236
|
-
margin-left: 0;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.#{$namespace}-drawer-scrollbar-measure {
|
|
241
|
-
position: absolute;
|
|
242
|
-
top: -9999px;
|
|
243
|
-
width: 50px;
|
|
244
|
-
height: 50px;
|
|
245
|
-
overflow: scroll;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.#{$namespace}-drawer-shake .#{$namespace}-drawer-dialog {
|
|
249
|
-
animation: 0.3s linear rShakeHead;
|
|
250
|
-
}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
@use '../common/var';
|
|
2
|
-
|
|
3
|
-
.#{$namespace}-dropdown__popper {
|
|
4
|
-
--#{$namespace}-dropdown-menu-box-shadow: var(--#{$namespace}-box-shadow-light);
|
|
5
|
-
--#{$namespace}-dropdown-menuItem-hover-fill: var(--#{$namespace}-fill-color-light);
|
|
6
|
-
--#{$namespace}-dropdown-menuItem-hover-color: var(--#{$namespace}-color-primary);
|
|
7
|
-
--#{$namespace}-dropdown-menu-index: 10;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.#{$namespace}-dropdown {
|
|
11
|
-
--#{$namespace}-dropdown-menu-box-shadow: var(--#{$namespace}-box-shadow-light);
|
|
12
|
-
--#{$namespace}-dropdown-menuItem-hover-fill: var(--#{$namespace}-fill-color-light);
|
|
13
|
-
--#{$namespace}-dropdown-menuItem-hover-color: var(--#{$namespace}-color-primary);
|
|
14
|
-
display: inline-flex;
|
|
15
|
-
position: relative;
|
|
16
|
-
color: var(--#{$namespace}-text-color-regular);
|
|
17
|
-
font-size: 14px;
|
|
18
|
-
line-height: 1;
|
|
19
|
-
vertical-align: top;
|
|
20
|
-
|
|
21
|
-
&.is-disabled {
|
|
22
|
-
color: var(--#{$namespace}-text-color-placeholder);
|
|
23
|
-
cursor: not-allowed;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.#{$namespace}-dropdown__popper {
|
|
27
|
-
box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.12);
|
|
28
|
-
|
|
29
|
-
.#{$namespace}-dropdown-menu {
|
|
30
|
-
border: none;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.#{$namespace}-dropdown__popper-selfdefine {
|
|
34
|
-
outline: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.#{$namespace}-scrollbar__bar {
|
|
38
|
-
z-index: 1001;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.#{$namespace}-dropdown__list {
|
|
42
|
-
list-style: none;
|
|
43
|
-
padding: 0;
|
|
44
|
-
margin: 0;
|
|
45
|
-
box-sizing: border-box;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// & .#{$namespace}-dropdown__caret-button {
|
|
50
|
-
// padding-left: 0;
|
|
51
|
-
// padding-right: 0;
|
|
52
|
-
// display: inline-flex;
|
|
53
|
-
// justify-content: center;
|
|
54
|
-
// align-items: center;
|
|
55
|
-
// width: 32px;
|
|
56
|
-
// border-left: none;
|
|
57
|
-
|
|
58
|
-
// & > span {
|
|
59
|
-
// display: inline-flex;
|
|
60
|
-
// }
|
|
61
|
-
|
|
62
|
-
// &::before {
|
|
63
|
-
// content: '';
|
|
64
|
-
// position: absolute;
|
|
65
|
-
// display: block;
|
|
66
|
-
// width: 1px;
|
|
67
|
-
// top: 5px;
|
|
68
|
-
// bottom: 5px;
|
|
69
|
-
// left: 0;
|
|
70
|
-
// background: rgba(0, 0, 0, 0.5);
|
|
71
|
-
// }
|
|
72
|
-
|
|
73
|
-
// &.#{$namespace}-button::before {
|
|
74
|
-
// background: #dcdfe6;
|
|
75
|
-
// opacity: 0.5;
|
|
76
|
-
// }
|
|
77
|
-
|
|
78
|
-
// &:hover {
|
|
79
|
-
// &::before {
|
|
80
|
-
// top: 0;
|
|
81
|
-
// bottom: 0;
|
|
82
|
-
// }
|
|
83
|
-
// }
|
|
84
|
-
|
|
85
|
-
// & .#{$namespace}-dropdown__icon {
|
|
86
|
-
// font-size: inherit;
|
|
87
|
-
// padding-left: 0;
|
|
88
|
-
// }
|
|
89
|
-
// }
|
|
90
|
-
|
|
91
|
-
.#{$namespace}-dropdown-selfdefine {
|
|
92
|
-
// 自定义
|
|
93
|
-
outline: none;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.#{$namespace}-dropdown-menu {
|
|
98
|
-
--#{$namespace}-dropdown-menuItem-padding: 5px 16px;
|
|
99
|
-
position: relative;
|
|
100
|
-
top: 0;
|
|
101
|
-
left: 0;
|
|
102
|
-
padding: 6px 0;
|
|
103
|
-
margin: 0;
|
|
104
|
-
background-color: var(--#{$namespace}-bg-color-overlay);
|
|
105
|
-
border: none;
|
|
106
|
-
border-radius: 4px;
|
|
107
|
-
box-shadow: none;
|
|
108
|
-
list-style: none;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.#{$namespace}-dropdown-menu__item {
|
|
112
|
-
display: flex;
|
|
113
|
-
align-items: center;
|
|
114
|
-
white-space: nowrap;
|
|
115
|
-
list-style: none;
|
|
116
|
-
line-height: 22px;
|
|
117
|
-
padding: var(--#{$namespace}-dropdown-menuItem-padding);
|
|
118
|
-
margin: 0;
|
|
119
|
-
font-size: 14px;
|
|
120
|
-
color: var(--#{$namespace}-text-color-regular);
|
|
121
|
-
cursor: pointer;
|
|
122
|
-
outline: none;
|
|
123
|
-
|
|
124
|
-
&:not(.is-disabled):hover {
|
|
125
|
-
background-color: var(--#{$namespace}-dropdown-menuItem-hover-fill);
|
|
126
|
-
color: var(--#{$namespace}-dropdown-menuItem-hover-color);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
i {
|
|
130
|
-
margin-right: 10px;
|
|
131
|
-
display: inline-block;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
&.is-active {
|
|
135
|
-
color: var(--#{$namespace}-color-primary);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&.is-disabled {
|
|
139
|
-
cursor: not-allowed;
|
|
140
|
-
color: var(--#{$namespace}-text-color-placeholder);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.#{$namespace}-dropdown-menu__item--divided {
|
|
145
|
-
margin: 6px 0;
|
|
146
|
-
border-top: 1px solid var(--#{$namespace}-border-color);
|
|
147
|
-
}
|