adtec-core-package 0.0.2 → 0.0.4
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/package.json +10 -4
- package/src/App.vue +0 -3
- package/src/assets/base.css +0 -86
- package/src/assets/main.css +0 -35
- package/src/components/ElFlex/ElFlex.vue +297 -0
- package/src/components/OperationAuth/operationAuth.vue +26 -0
- package/src/components/Search/ElIconSearch.vue +239 -0
- package/src/components/Search/ElSearch.vue +132 -0
- package/src/components/Title/ElTitle.vue +49 -0
- package/src/components/icon/ElIconBtn.vue +182 -0
- package/src/components/icon/ElIcons.vue +38 -0
- package/src/config/ElementPlusConfig.ts +95 -0
- package/src/css/elementUI/affix.scss +7 -0
- package/src/css/elementUI/alert.scss +115 -0
- package/src/css/elementUI/anchor-link.scss +41 -0
- package/src/css/elementUI/anchor.scss +88 -0
- package/src/css/elementUI/aside.scss +8 -0
- package/src/css/elementUI/autocomplete.scss +89 -0
- package/src/css/elementUI/avatar.scss +55 -0
- package/src/css/elementUI/backtop.scss +29 -0
- package/src/css/elementUI/badge.scss +58 -0
- package/src/css/elementUI/base.scss +3 -0
- package/src/css/elementUI/breadcrumb-item.scss +0 -0
- package/src/css/elementUI/breadcrumb.scss +62 -0
- package/src/css/elementUI/button-group.scss +80 -0
- package/src/css/elementUI/button.scss +304 -0
- package/src/css/elementUI/calendar.scss +80 -0
- package/src/css/elementUI/card.scss +45 -0
- package/src/css/elementUI/carousel-item.scss +58 -0
- package/src/css/elementUI/carousel.scss +188 -0
- package/src/css/elementUI/cascader-panel.scss +138 -0
- package/src/css/elementUI/cascader.scss +230 -0
- package/src/css/elementUI/check-tag.scss +60 -0
- package/src/css/elementUI/checkbox-button.scss +140 -0
- package/src/css/elementUI/checkbox-group.scss +7 -0
- package/src/css/elementUI/checkbox.scss +298 -0
- package/src/css/elementUI/col.scss +48 -0
- package/src/css/elementUI/collapse-item.scss +0 -0
- package/src/css/elementUI/collapse-transition.scss +0 -0
- package/src/css/elementUI/collapse.scss +70 -0
- package/src/css/elementUI/color/index.scss +20 -0
- package/src/css/elementUI/color-picker.scss +392 -0
- package/src/css/elementUI/common/popup.scss +47 -0
- package/src/css/elementUI/common/transition.scss +122 -0
- package/src/css/elementUI/common/var.scss +1549 -0
- package/src/css/elementUI/config-provider.scss +0 -0
- package/src/css/elementUI/container.scss +14 -0
- package/src/css/elementUI/dark/css-vars.scss +39 -0
- package/src/css/elementUI/dark/var.scss +222 -0
- package/src/css/elementUI/date-picker/date-picker.scss +110 -0
- package/src/css/elementUI/date-picker/date-range-picker.scss +113 -0
- package/src/css/elementUI/date-picker/date-table.scss +158 -0
- package/src/css/elementUI/date-picker/month-table.scss +112 -0
- package/src/css/elementUI/date-picker/picker-panel.scss +131 -0
- package/src/css/elementUI/date-picker/picker.scss +219 -0
- package/src/css/elementUI/date-picker/time-picker.scss +90 -0
- package/src/css/elementUI/date-picker/time-range-picker.scss +33 -0
- package/src/css/elementUI/date-picker/time-spinner.scss +111 -0
- package/src/css/elementUI/date-picker/year-table.scss +108 -0
- package/src/css/elementUI/date-picker.scss +9 -0
- package/src/css/elementUI/descriptions-item.scss +73 -0
- package/src/css/elementUI/descriptions.scss +152 -0
- package/src/css/elementUI/dialog.scss +199 -0
- package/src/css/elementUI/display.scss +12 -0
- package/src/css/elementUI/divider.scss +48 -0
- package/src/css/elementUI/drawer.scss +164 -0
- package/src/css/elementUI/dropdown-item.scss +0 -0
- package/src/css/elementUI/dropdown-menu.scss +0 -0
- package/src/css/elementUI/dropdown.scss +208 -0
- package/src/css/elementUI/empty.scss +49 -0
- package/src/css/elementUI/footer.scss +12 -0
- package/src/css/elementUI/form-item.scss +0 -0
- package/src/css/elementUI/form.scss +243 -0
- package/src/css/elementUI/header.scss +12 -0
- package/src/css/elementUI/icon.scss +45 -0
- package/src/css/elementUI/image-viewer.scss +139 -0
- package/src/css/elementUI/image.scss +49 -0
- package/src/css/elementUI/index.scss +110 -0
- package/src/css/elementUI/infinite-scroll.scss +0 -0
- package/src/css/elementUI/input-number.scss +178 -0
- package/src/css/elementUI/input.scss +478 -0
- package/src/css/elementUI/link.scss +90 -0
- package/src/css/elementUI/loading.scss +104 -0
- package/src/css/elementUI/main.scss +14 -0
- package/src/css/elementUI/mention.scss +88 -0
- package/src/css/elementUI/menu-item-group.scss +0 -0
- package/src/css/elementUI/menu-item.scss +0 -0
- package/src/css/elementUI/menu.scss +339 -0
- package/src/css/elementUI/message-box.scss +213 -0
- package/src/css/elementUI/message.scss +98 -0
- package/src/css/elementUI/mixins/_button.scss +165 -0
- package/src/css/elementUI/mixins/_col.scss +33 -0
- package/src/css/elementUI/mixins/_var.scss +67 -0
- package/src/css/elementUI/mixins/config.scss +5 -0
- package/src/css/elementUI/mixins/function.scss +88 -0
- package/src/css/elementUI/mixins/mixins.scss +237 -0
- package/src/css/elementUI/mixins/utils.scss +39 -0
- package/src/css/elementUI/notification.scss +104 -0
- package/src/css/elementUI/option-group.scss +33 -0
- package/src/css/elementUI/option.scss +71 -0
- package/src/css/elementUI/overlay.scss +17 -0
- package/src/css/elementUI/page-header.scss +60 -0
- package/src/css/elementUI/pagination.scss +238 -0
- package/src/css/elementUI/popconfirm.scss +16 -0
- package/src/css/elementUI/popover.scss +61 -0
- package/src/css/elementUI/popper.scss +106 -0
- package/src/css/elementUI/progress.scss +179 -0
- package/src/css/elementUI/radio-button.scss +169 -0
- package/src/css/elementUI/radio-group.scss +9 -0
- package/src/css/elementUI/radio.scss +215 -0
- package/src/css/elementUI/rate.scss +108 -0
- package/src/css/elementUI/reset.scss +98 -0
- package/src/css/elementUI/result.scss +57 -0
- package/src/css/elementUI/row.scss +35 -0
- package/src/css/elementUI/scrollbar.scss +97 -0
- package/src/css/elementUI/segmented.scss +183 -0
- package/src/css/elementUI/select-dropdown-v2.scss +1 -0
- package/src/css/elementUI/select-dropdown.scss +57 -0
- package/src/css/elementUI/select-v2.scss +4 -0
- package/src/css/elementUI/select.scss +253 -0
- package/src/css/elementUI/skeleton-item.scss +83 -0
- package/src/css/elementUI/skeleton.scss +44 -0
- package/src/css/elementUI/slider.scss +212 -0
- package/src/css/elementUI/space.scss +20 -0
- package/src/css/elementUI/spinner.scss +43 -0
- package/src/css/elementUI/statistic.scss +35 -0
- package/src/css/elementUI/step.scss +316 -0
- package/src/css/elementUI/steps.scss +21 -0
- package/src/css/elementUI/sub-menu.scss +0 -0
- package/src/css/elementUI/switch.scss +300 -0
- package/src/css/elementUI/tab-pane.scss +0 -0
- package/src/css/elementUI/table-column.scss +98 -0
- package/src/css/elementUI/table-v2.scss +236 -0
- package/src/css/elementUI/table.scss +694 -0
- package/src/css/elementUI/tabs.scss +659 -0
- package/src/css/elementUI/tag.scss +181 -0
- package/src/css/elementUI/text.scss +51 -0
- package/src/css/elementUI/time-picker.scss +5 -0
- package/src/css/elementUI/time-select.scss +37 -0
- package/src/css/elementUI/timeline-item.scss +84 -0
- package/src/css/elementUI/timeline.scss +46 -0
- package/src/css/elementUI/tooltip-v2.scss +95 -0
- package/src/css/elementUI/tooltip.scss +0 -0
- package/src/css/elementUI/tour.scss +187 -0
- package/src/css/elementUI/transfer.scss +203 -0
- package/src/css/elementUI/tree-select.scss +41 -0
- package/src/css/elementUI/tree.scss +134 -0
- package/src/css/elementUI/upload.scss +654 -0
- package/src/css/elementUI/var.scss +87 -0
- package/src/css/elementUI/virtual-list.scss +40 -0
- package/src/interface/ISysMenuDataVo.ts +22 -0
- package/src/interface/ISysMenuInfoVo.ts +83 -0
- package/src/interface/ISysMenuOperationVo.ts +21 -0
- package/src/interface/enum/FlexEnum.ts +85 -0
- package/src/views/HomeView.vue +2 -2
- package/vite.config.ts +2 -9
- package/src/components/HelloWorld.vue +0 -41
- package/src/components/TheWelcome.vue +0 -94
- package/src/components/WelcomeItem.vue +0 -87
- package/src/components/icons/IconCommunity.vue +0 -7
- package/src/components/icons/IconDocumentation.vue +0 -7
- package/src/components/icons/IconEcosystem.vue +0 -7
- package/src/components/icons/IconSupport.vue +0 -7
- package/src/components/icons/IconTooling.vue +0 -19
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'mixins/var' as *;
|
|
3
|
+
@use 'mixins/utils' as *;
|
|
4
|
+
@use 'common/var' as *;
|
|
5
|
+
|
|
6
|
+
@include b(carousel) {
|
|
7
|
+
@include set-component-css-var('carousel', $carousel);
|
|
8
|
+
|
|
9
|
+
position: relative;
|
|
10
|
+
|
|
11
|
+
@include m(horizontal) {
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@include m(vertical) {
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@include e(container) {
|
|
20
|
+
position: relative;
|
|
21
|
+
height: 300px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@include e(arrow) {
|
|
25
|
+
border: none;
|
|
26
|
+
outline: none;
|
|
27
|
+
padding: 0;
|
|
28
|
+
margin: 0;
|
|
29
|
+
height: getCssVar('carousel', 'arrow-size');
|
|
30
|
+
width: getCssVar('carousel', 'arrow-size');
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
transition: getCssVar('transition', 'duration');
|
|
33
|
+
border-radius: 50%;
|
|
34
|
+
background-color: getCssVar('carousel', 'arrow-background');
|
|
35
|
+
color: $color-white;
|
|
36
|
+
position: absolute;
|
|
37
|
+
top: 50%;
|
|
38
|
+
z-index: 10;
|
|
39
|
+
transform: translateY(-50%);
|
|
40
|
+
text-align: center;
|
|
41
|
+
font-size: getCssVar('carousel', 'arrow-font-size');
|
|
42
|
+
|
|
43
|
+
@include utils-inline-flex-center;
|
|
44
|
+
|
|
45
|
+
@include m(left) {
|
|
46
|
+
left: 16px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@include m(right) {
|
|
50
|
+
right: 16px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:hover {
|
|
54
|
+
background-color: getCssVar('carousel', 'arrow-hover-background');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
& i {
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@include e(indicators) {
|
|
63
|
+
position: absolute;
|
|
64
|
+
list-style: none;
|
|
65
|
+
margin: 0;
|
|
66
|
+
padding: 0;
|
|
67
|
+
z-index: calc(#{getCssVar('index-normal')} + 1);
|
|
68
|
+
|
|
69
|
+
@include m(horizontal) {
|
|
70
|
+
bottom: 0;
|
|
71
|
+
left: 50%;
|
|
72
|
+
transform: translateX(-50%);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@include m(vertical) {
|
|
76
|
+
right: 0;
|
|
77
|
+
top: 50%;
|
|
78
|
+
transform: translateY(-50%);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@include m(outside) {
|
|
82
|
+
bottom: calc(
|
|
83
|
+
getCssVar('carousel-indicator-height') +
|
|
84
|
+
getCssVar('carousel-indicator-padding-vertical') * 2
|
|
85
|
+
);
|
|
86
|
+
text-align: center;
|
|
87
|
+
position: static;
|
|
88
|
+
transform: none;
|
|
89
|
+
|
|
90
|
+
.#{$namespace}-carousel__indicator:hover button {
|
|
91
|
+
opacity: 0.64;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
button {
|
|
95
|
+
background-color: getCssVar('carousel', 'indicator-out-color');
|
|
96
|
+
opacity: 0.24;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@include m(right) {
|
|
101
|
+
right: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@include m(labels) {
|
|
105
|
+
left: 0;
|
|
106
|
+
right: 0;
|
|
107
|
+
transform: none;
|
|
108
|
+
text-align: center;
|
|
109
|
+
|
|
110
|
+
.#{$namespace}-carousel__button {
|
|
111
|
+
height: auto;
|
|
112
|
+
width: auto;
|
|
113
|
+
padding: 2px 18px;
|
|
114
|
+
font-size: 12px;
|
|
115
|
+
color: $color-black;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.#{$namespace}-carousel__indicator {
|
|
119
|
+
padding: 6px 4px;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@include e(indicator) {
|
|
125
|
+
background-color: transparent;
|
|
126
|
+
cursor: pointer;
|
|
127
|
+
|
|
128
|
+
&:hover button {
|
|
129
|
+
opacity: 0.72;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@include m(horizontal) {
|
|
133
|
+
display: inline-block;
|
|
134
|
+
padding: getCssVar('carousel-indicator-padding-vertical')
|
|
135
|
+
getCssVar('carousel-indicator-padding-horizontal');
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@include m(vertical) {
|
|
139
|
+
padding: getCssVar('carousel-indicator-padding-horizontal')
|
|
140
|
+
getCssVar('carousel-indicator-padding-vertical');
|
|
141
|
+
|
|
142
|
+
.#{$namespace}-carousel__button {
|
|
143
|
+
width: getCssVar('carousel-indicator-height');
|
|
144
|
+
height: calc(#{getCssVar('carousel-indicator-width')} / 2);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@include when(active) {
|
|
149
|
+
button {
|
|
150
|
+
opacity: 1;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@include e(button) {
|
|
156
|
+
display: block;
|
|
157
|
+
opacity: 0.48;
|
|
158
|
+
width: getCssVar('carousel-indicator-width');
|
|
159
|
+
height: getCssVar('carousel-indicator-height');
|
|
160
|
+
background-color: $color-white;
|
|
161
|
+
border: none;
|
|
162
|
+
outline: none;
|
|
163
|
+
padding: 0;
|
|
164
|
+
margin: 0;
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
transition: getCssVar('transition-duration');
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.carousel-arrow-left-enter-from,
|
|
171
|
+
.carousel-arrow-left-leave-active {
|
|
172
|
+
transform: translateY(-50%) translateX(-10px);
|
|
173
|
+
opacity: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.carousel-arrow-right-enter-from,
|
|
177
|
+
.carousel-arrow-right-leave-active {
|
|
178
|
+
transform: translateY(-50%) translateX(10px);
|
|
179
|
+
opacity: 0;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.#{$namespace}-transitioning {
|
|
183
|
+
filter: url('#elCarouselHorizontal');
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.#{$namespace}-transitioning-vertical {
|
|
187
|
+
filter: url('#elCarouselVertical');
|
|
188
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'mixins/var' as *;
|
|
3
|
+
@use 'common/var' as *;
|
|
4
|
+
|
|
5
|
+
@include b(cascader-panel) {
|
|
6
|
+
@include set-component-css-var('cascader', $cascader);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@include b(cascader-panel) {
|
|
10
|
+
display: flex;
|
|
11
|
+
border-radius: getCssVar('cascader-menu', 'radius');
|
|
12
|
+
font-size: getCssVar('cascader-menu', 'font-size');
|
|
13
|
+
|
|
14
|
+
@include when(bordered) {
|
|
15
|
+
border: getCssVar('cascader-menu', 'border');
|
|
16
|
+
border-radius: getCssVar('cascader-menu', 'radius');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@include b(cascader-menu) {
|
|
21
|
+
min-width: 180px;
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
color: getCssVar('cascader-menu', 'text-color');
|
|
24
|
+
border-right: getCssVar('cascader-menu', 'border');
|
|
25
|
+
|
|
26
|
+
&:last-child {
|
|
27
|
+
border-right: none;
|
|
28
|
+
|
|
29
|
+
.#{$namespace}-cascader-node {
|
|
30
|
+
padding-right: 20px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@include e(wrap) {
|
|
35
|
+
// Raise the priority
|
|
36
|
+
&.#{$namespace}-scrollbar__wrap {
|
|
37
|
+
height: 204px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@include e(list) {
|
|
42
|
+
position: relative;
|
|
43
|
+
min-height: 100%;
|
|
44
|
+
margin: 0;
|
|
45
|
+
padding: 6px 0;
|
|
46
|
+
list-style: none;
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@include e(hover-zone) {
|
|
51
|
+
position: absolute;
|
|
52
|
+
top: 0;
|
|
53
|
+
left: 0;
|
|
54
|
+
width: 100%;
|
|
55
|
+
height: 100%;
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@include e(empty-text) {
|
|
60
|
+
position: absolute;
|
|
61
|
+
top: 50%;
|
|
62
|
+
left: 50%;
|
|
63
|
+
transform: translate(-50%, -50%);
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
color: getCssVar('cascader', 'color-empty');
|
|
67
|
+
|
|
68
|
+
.is-loading {
|
|
69
|
+
margin-right: 2px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@include b(cascader-node) {
|
|
75
|
+
position: relative;
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
padding: 0 30px 0 20px;
|
|
79
|
+
height: 34px;
|
|
80
|
+
line-height: 34px;
|
|
81
|
+
outline: none;
|
|
82
|
+
|
|
83
|
+
&.is-selectable.in-active-path {
|
|
84
|
+
color: getCssVar('cascader-menu', 'text-color');
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&.in-active-path,
|
|
88
|
+
&.is-selectable.in-checked-path,
|
|
89
|
+
&.is-active {
|
|
90
|
+
color: getCssVar('cascader-menu', 'selected-text-color');
|
|
91
|
+
font-weight: bold;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&:not(.is-disabled) {
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
|
|
97
|
+
&:hover,
|
|
98
|
+
&:focus {
|
|
99
|
+
background: getCssVar('cascader-node', 'background-hover');
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@include when(disabled) {
|
|
104
|
+
color: getCssVar('cascader-node', 'color-disabled');
|
|
105
|
+
cursor: not-allowed;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@include e(prefix) {
|
|
109
|
+
position: absolute;
|
|
110
|
+
left: 10px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@include e(postfix) {
|
|
114
|
+
position: absolute;
|
|
115
|
+
right: 10px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@include e(label) {
|
|
119
|
+
flex: 1;
|
|
120
|
+
text-align: left;
|
|
121
|
+
padding: 0 8px;
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
text-overflow: ellipsis;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
> .#{$namespace}-checkbox {
|
|
128
|
+
margin-right: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
> .#{$namespace}-radio {
|
|
132
|
+
margin-right: 0;
|
|
133
|
+
|
|
134
|
+
.#{$namespace}-radio__label {
|
|
135
|
+
padding-left: 0;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'mixins/mixins' as *;
|
|
4
|
+
@use 'mixins/var' as *;
|
|
5
|
+
@use 'common/var' as *;
|
|
6
|
+
|
|
7
|
+
@mixin cascader-tag-normal($background-color) {
|
|
8
|
+
.#{$namespace}-tag {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
max-width: 100%;
|
|
12
|
+
margin: 2px 0 2px 6px;
|
|
13
|
+
text-overflow: ellipsis;
|
|
14
|
+
background: $background-color;
|
|
15
|
+
|
|
16
|
+
&.#{$namespace}-tag--dark,
|
|
17
|
+
&.#{$namespace}-tag--plain {
|
|
18
|
+
background-color: getCssVar('tag', 'bg-color');
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:not(.is-hit) {
|
|
22
|
+
border-color: transparent;
|
|
23
|
+
|
|
24
|
+
&.#{$namespace}-tag--dark,
|
|
25
|
+
&.#{$namespace}-tag--plain {
|
|
26
|
+
border-color: getCssVar('tag', 'border-color');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
> span {
|
|
31
|
+
flex: 1;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
text-overflow: ellipsis;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.#{$namespace}-icon-close {
|
|
37
|
+
flex: none;
|
|
38
|
+
background-color: getCssVar('text-color', 'placeholder');
|
|
39
|
+
color: getCssVar('color-white');
|
|
40
|
+
|
|
41
|
+
&:hover {
|
|
42
|
+
background-color: getCssVar('text-color', 'secondary');
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@include b(cascader) {
|
|
49
|
+
@include set-component-css-var('cascader', $cascader);
|
|
50
|
+
|
|
51
|
+
display: inline-block;
|
|
52
|
+
vertical-align: middle;
|
|
53
|
+
position: relative;
|
|
54
|
+
font-size: getCssVar('font-size', 'base');
|
|
55
|
+
line-height: map.get($input-height, 'default');
|
|
56
|
+
outline: none;
|
|
57
|
+
|
|
58
|
+
&:not(.is-disabled):hover {
|
|
59
|
+
.#{$namespace}-input__wrapper {
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
box-shadow: 0 0 0 1px getCssVar('input', 'hover-border-color') inset;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.#{$namespace}-input {
|
|
66
|
+
display: flex;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
|
|
69
|
+
.#{$namespace}-input__inner {
|
|
70
|
+
text-overflow: ellipsis;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.#{$namespace}-input__suffix-inner {
|
|
75
|
+
.#{$namespace}-icon {
|
|
76
|
+
height: calc(100% - 2px);
|
|
77
|
+
|
|
78
|
+
svg {
|
|
79
|
+
vertical-align: middle;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.icon-arrow-down {
|
|
85
|
+
transition: transform getCssVar('transition-duration');
|
|
86
|
+
font-size: 14px;
|
|
87
|
+
|
|
88
|
+
@include when(reverse) {
|
|
89
|
+
transform: rotateZ(180deg);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.icon-circle-close:hover {
|
|
94
|
+
color: var(
|
|
95
|
+
#{getCssVarName('input', 'clear-hover-color')},
|
|
96
|
+
map.get($input, 'clear-hover-color')
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@include when(focus) {
|
|
101
|
+
.#{$namespace}-input__wrapper {
|
|
102
|
+
box-shadow: 0 0 0 1px
|
|
103
|
+
var(
|
|
104
|
+
#{getCssVarName('input', 'focus-border-color')},
|
|
105
|
+
map.get($input, 'focus-border-color')
|
|
106
|
+
)
|
|
107
|
+
inset;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@each $size in (large, small) {
|
|
113
|
+
@include m($size) {
|
|
114
|
+
font-size: map.get($input-font-size, $size);
|
|
115
|
+
line-height: map.get($input-height, $size);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@include when(disabled) {
|
|
120
|
+
.#{$namespace}-cascader__label {
|
|
121
|
+
z-index: calc(getCssVar('index', 'normal') + 1);
|
|
122
|
+
color: getCssVar('disabled-text-color');
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@include e(dropdown) {
|
|
127
|
+
@include set-component-css-var('cascader', $cascader);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@include e(dropdown) {
|
|
131
|
+
font-size: getCssVar('cascader-menu-font-size');
|
|
132
|
+
border-radius: getCssVar('cascader-menu-radius');
|
|
133
|
+
|
|
134
|
+
@include picker-popper(
|
|
135
|
+
getCssVar('cascader-menu-fill'),
|
|
136
|
+
getCssVar('cascader-menu-border'),
|
|
137
|
+
getCssVar('cascader-menu-shadow')
|
|
138
|
+
);
|
|
139
|
+
|
|
140
|
+
&.#{$namespace}-popper {
|
|
141
|
+
box-shadow: getCssVar('cascader-menu-shadow');
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@include e(tags) {
|
|
146
|
+
position: absolute;
|
|
147
|
+
left: 0;
|
|
148
|
+
right: 30px;
|
|
149
|
+
top: 50%;
|
|
150
|
+
transform: translateY(-50%);
|
|
151
|
+
display: flex;
|
|
152
|
+
flex-wrap: wrap;
|
|
153
|
+
line-height: normal;
|
|
154
|
+
text-align: left;
|
|
155
|
+
box-sizing: border-box;
|
|
156
|
+
@include cascader-tag-normal(getCssVar('cascader-tag-background'));
|
|
157
|
+
|
|
158
|
+
&.is-validate {
|
|
159
|
+
right: 55px;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@include e(collapse-tags) {
|
|
164
|
+
white-space: normal;
|
|
165
|
+
z-index: getCssVar('index-normal');
|
|
166
|
+
@include cascader-tag-normal(getCssVar('fill-color'));
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@include e(suggestion-panel) {
|
|
170
|
+
border-radius: getCssVar('cascader-menu', 'radius');
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@include e(suggestion-list) {
|
|
174
|
+
max-height: 204px;
|
|
175
|
+
margin: 0;
|
|
176
|
+
padding: 6px 0;
|
|
177
|
+
font-size: getCssVar('font-size', 'base');
|
|
178
|
+
color: getCssVar('cascader-menu', 'text-color');
|
|
179
|
+
text-align: center;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@include e(suggestion-item) {
|
|
183
|
+
display: flex;
|
|
184
|
+
justify-content: space-between;
|
|
185
|
+
align-items: center;
|
|
186
|
+
height: 34px;
|
|
187
|
+
padding: 0 15px;
|
|
188
|
+
text-align: left;
|
|
189
|
+
outline: none;
|
|
190
|
+
cursor: pointer;
|
|
191
|
+
|
|
192
|
+
&:hover,
|
|
193
|
+
&:focus {
|
|
194
|
+
background: getCssVar('cascader-node', 'background-hover');
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&.is-checked {
|
|
198
|
+
color: getCssVar('cascader', 'menu-selected-text-color');
|
|
199
|
+
font-weight: bold;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
> span {
|
|
203
|
+
margin-right: 10px;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@include e(empty-text) {
|
|
208
|
+
margin: 10px 0;
|
|
209
|
+
color: getCssVar('cascader', 'color-empty');
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
@include e(search-input) {
|
|
213
|
+
flex: 1;
|
|
214
|
+
height: 24px;
|
|
215
|
+
min-width: 60px;
|
|
216
|
+
margin: 2px 0 2px map.get($input-padding-horizontal, 'default')-$border-width;
|
|
217
|
+
padding: 0;
|
|
218
|
+
color: getCssVar('cascader', 'menu-text-color');
|
|
219
|
+
border: none;
|
|
220
|
+
outline: none;
|
|
221
|
+
box-sizing: border-box;
|
|
222
|
+
|
|
223
|
+
background: transparent;
|
|
224
|
+
|
|
225
|
+
&::placeholder {
|
|
226
|
+
// two input overlap
|
|
227
|
+
color: transparent;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'common/var' as *;
|
|
3
|
+
|
|
4
|
+
@include b(check-tag) {
|
|
5
|
+
background-color: getCssVar('color', 'info', 'light-9');
|
|
6
|
+
border-radius: getCssVar('border-radius', 'base');
|
|
7
|
+
color: getCssVar('color', 'info');
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
display: inline-block;
|
|
10
|
+
font-size: getCssVar('font-size', 'base');
|
|
11
|
+
line-height: getCssVar('font-size', 'base');
|
|
12
|
+
padding: 7px 15px;
|
|
13
|
+
transition: getCssVar('transition', 'all');
|
|
14
|
+
font-weight: bold;
|
|
15
|
+
|
|
16
|
+
&:hover {
|
|
17
|
+
background-color: getCssVar('color', 'info', 'light-7');
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@each $type in $types {
|
|
21
|
+
&.#{bem('check-tag', '', $type)} {
|
|
22
|
+
@include when(checked) {
|
|
23
|
+
background-color: getCssVar('color', $type, 'light-8');
|
|
24
|
+
color: getCssVar('color', $type);
|
|
25
|
+
|
|
26
|
+
&:hover {
|
|
27
|
+
background-color: getCssVar('color', $type, 'light-7');
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@include when(disabled) {
|
|
31
|
+
background-color: getCssVar('color', $type, 'light-8');
|
|
32
|
+
color: getCssVar('disabled-text-color');
|
|
33
|
+
cursor: not-allowed;
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
background-color: getCssVar('color', $type, 'light-8');
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@include when(disabled) {
|
|
42
|
+
@if $type == 'primary' {
|
|
43
|
+
background-color: getCssVar('color', 'info', 'light-9');
|
|
44
|
+
} @else {
|
|
45
|
+
background-color: getCssVar('color', $type, 'light-9');
|
|
46
|
+
}
|
|
47
|
+
color: getCssVar('disabled-text-color');
|
|
48
|
+
cursor: not-allowed;
|
|
49
|
+
|
|
50
|
+
&:hover {
|
|
51
|
+
@if $type == 'primary' {
|
|
52
|
+
background-color: getCssVar('color', 'info', 'light-9');
|
|
53
|
+
} @else {
|
|
54
|
+
background-color: getCssVar('color', $type, 'light-9');
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|