ep-craft 0.1.2 → 0.1.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/dist/components/button/EpButton.vue.d.ts +7 -7
- package/dist/components/button/button.d.ts +4 -4
- package/dist/components/button/index.d.ts +2 -4
- package/dist/components/button/index.js +4 -6
- package/dist/index.css +1 -2
- package/dist/resolver.js +9 -12
- package/package.json +4 -2
- package/theme-chalk/src/affix.scss +7 -0
- package/theme-chalk/src/alert.scss +115 -0
- package/theme-chalk/src/anchor-link.scss +45 -0
- package/theme-chalk/src/anchor.scss +93 -0
- package/theme-chalk/src/aside.scss +8 -0
- package/theme-chalk/src/autocomplete.scss +95 -0
- package/theme-chalk/src/avatar-group.scss +25 -0
- package/theme-chalk/src/avatar.scss +55 -0
- package/theme-chalk/src/backtop.scss +29 -0
- package/theme-chalk/src/badge.scss +58 -0
- package/theme-chalk/src/base.scss +3 -0
- package/theme-chalk/src/breadcrumb-item.scss +58 -0
- package/theme-chalk/src/breadcrumb.scss +9 -0
- package/theme-chalk/src/button-group.scss +133 -0
- package/theme-chalk/src/button.scss +374 -0
- package/theme-chalk/src/calendar.scss +94 -0
- package/theme-chalk/src/card.scss +49 -0
- package/theme-chalk/src/carousel-item.scss +58 -0
- package/theme-chalk/src/carousel.scss +195 -0
- package/theme-chalk/src/cascader-panel.scss +150 -0
- package/theme-chalk/src/cascader.scss +289 -0
- package/theme-chalk/src/check-tag.scss +60 -0
- package/theme-chalk/src/checkbox-button.scss +142 -0
- package/theme-chalk/src/checkbox-group.scss +7 -0
- package/theme-chalk/src/checkbox.scss +300 -0
- package/theme-chalk/src/col.scss +56 -0
- package/theme-chalk/src/collapse-item.scss +72 -0
- package/theme-chalk/src/collapse-transition.scss +1 -0
- package/theme-chalk/src/collapse.scss +29 -0
- package/theme-chalk/src/color/index.scss +20 -0
- package/theme-chalk/src/color-picker-panel.scss +294 -0
- package/theme-chalk/src/color-picker.scss +165 -0
- package/theme-chalk/src/common/popup.scss +47 -0
- package/theme-chalk/src/common/transition.scss +125 -0
- package/theme-chalk/src/common/var.scss +1748 -0
- package/theme-chalk/src/config-provider.scss +0 -0
- package/theme-chalk/src/container.scss +14 -0
- package/theme-chalk/src/dark/css-vars.scss +45 -0
- package/theme-chalk/src/dark/var.scss +224 -0
- package/theme-chalk/src/date-picker/date-picker.scss +121 -0
- package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
- package/theme-chalk/src/date-picker/date-table.scss +164 -0
- package/theme-chalk/src/date-picker/month-table.scss +112 -0
- package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
- package/theme-chalk/src/date-picker/picker.scss +217 -0
- package/theme-chalk/src/date-picker/time-picker.scss +90 -0
- package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
- package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
- package/theme-chalk/src/date-picker/utils.scss +14 -0
- package/theme-chalk/src/date-picker/year-table.scss +108 -0
- package/theme-chalk/src/date-picker-panel.scss +34 -0
- package/theme-chalk/src/date-picker.scss +0 -0
- package/theme-chalk/src/descriptions-item.scss +77 -0
- package/theme-chalk/src/descriptions.scss +151 -0
- package/theme-chalk/src/dialog.scss +207 -0
- package/theme-chalk/src/display.scss +12 -0
- package/theme-chalk/src/divider.scss +48 -0
- package/theme-chalk/src/drawer.scss +251 -0
- package/theme-chalk/src/dropdown-item.scss +0 -0
- package/theme-chalk/src/dropdown-menu.scss +0 -0
- package/theme-chalk/src/dropdown.scss +208 -0
- package/theme-chalk/src/empty.scss +49 -0
- package/theme-chalk/src/footer.scss +12 -0
- package/theme-chalk/src/form-item.scss +246 -0
- package/theme-chalk/src/form.scss +28 -0
- package/theme-chalk/src/header.scss +12 -0
- package/theme-chalk/src/icon.scss +41 -0
- package/theme-chalk/src/image-viewer.scss +161 -0
- package/theme-chalk/src/image.scss +49 -0
- package/theme-chalk/src/index.scss +116 -0
- package/theme-chalk/src/infinite-scroll.scss +0 -0
- package/theme-chalk/src/input-number.scss +192 -0
- package/theme-chalk/src/input-otp.scss +191 -0
- package/theme-chalk/src/input-tag.scss +249 -0
- package/theme-chalk/src/input.scss +541 -0
- package/theme-chalk/src/link.scss +90 -0
- package/theme-chalk/src/loading.scss +104 -0
- package/theme-chalk/src/main.scss +14 -0
- package/theme-chalk/src/mention.scss +88 -0
- package/theme-chalk/src/menu-item-group.scss +0 -0
- package/theme-chalk/src/menu-item.scss +0 -0
- package/theme-chalk/src/menu.scss +376 -0
- package/theme-chalk/src/message-box.scss +220 -0
- package/theme-chalk/src/message.scss +123 -0
- package/theme-chalk/src/mixins/_button.scss +240 -0
- package/theme-chalk/src/mixins/_col.scss +41 -0
- package/theme-chalk/src/mixins/_var.scss +67 -0
- package/theme-chalk/src/mixins/config.scss +5 -0
- package/theme-chalk/src/mixins/function.scss +99 -0
- package/theme-chalk/src/mixins/mixins.scss +257 -0
- package/theme-chalk/src/mixins/utils.scss +39 -0
- package/theme-chalk/src/notification.scss +109 -0
- package/theme-chalk/src/option-group.scss +33 -0
- package/theme-chalk/src/option.scss +71 -0
- package/theme-chalk/src/overlay.scss +17 -0
- package/theme-chalk/src/page-header.scss +60 -0
- package/theme-chalk/src/pagination.scss +235 -0
- package/theme-chalk/src/popconfirm.scss +17 -0
- package/theme-chalk/src/popover.scss +61 -0
- package/theme-chalk/src/popper.scss +117 -0
- package/theme-chalk/src/progress.scss +179 -0
- package/theme-chalk/src/radio-button.scss +165 -0
- package/theme-chalk/src/radio-group.scss +9 -0
- package/theme-chalk/src/radio.scss +220 -0
- package/theme-chalk/src/rate.scss +121 -0
- package/theme-chalk/src/reset.scss +99 -0
- package/theme-chalk/src/result.scss +57 -0
- package/theme-chalk/src/row.scss +34 -0
- package/theme-chalk/src/scrollbar.scss +97 -0
- package/theme-chalk/src/segmented.scss +186 -0
- package/theme-chalk/src/select-dropdown-v2.scss +1 -0
- package/theme-chalk/src/select-dropdown.scss +57 -0
- package/theme-chalk/src/select-v2.scss +4 -0
- package/theme-chalk/src/select.scss +269 -0
- package/theme-chalk/src/skeleton-item.scss +83 -0
- package/theme-chalk/src/skeleton.scss +44 -0
- package/theme-chalk/src/slider.scss +212 -0
- package/theme-chalk/src/space.scss +20 -0
- package/theme-chalk/src/spinner.scss +43 -0
- package/theme-chalk/src/splitter-panel.scss +8 -0
- package/theme-chalk/src/splitter.scss +148 -0
- package/theme-chalk/src/statistic.scss +35 -0
- package/theme-chalk/src/step.scss +320 -0
- package/theme-chalk/src/steps.scss +22 -0
- package/theme-chalk/src/sub-menu.scss +0 -0
- package/theme-chalk/src/switch.scss +294 -0
- package/theme-chalk/src/tab-pane.scss +0 -0
- package/theme-chalk/src/table-column.scss +100 -0
- package/theme-chalk/src/table-v2.scss +239 -0
- package/theme-chalk/src/table.scss +698 -0
- package/theme-chalk/src/tabs.scss +699 -0
- package/theme-chalk/src/tag.scss +195 -0
- package/theme-chalk/src/text.scss +51 -0
- package/theme-chalk/src/time-picker.scss +5 -0
- package/theme-chalk/src/time-select.scss +37 -0
- package/theme-chalk/src/timeline-item.scss +135 -0
- package/theme-chalk/src/timeline.scss +101 -0
- package/theme-chalk/src/tooltip.scss +0 -0
- package/theme-chalk/src/tour.scss +187 -0
- package/theme-chalk/src/transfer.scss +201 -0
- package/theme-chalk/src/tree-select.scss +41 -0
- package/theme-chalk/src/tree.scss +134 -0
- package/theme-chalk/src/upload.scss +660 -0
- package/theme-chalk/src/var.scss +87 -0
- package/theme-chalk/src/virtual-list.scss +40 -0
- package/dist/components/button/EpButton.vue.js +0 -171
- package/dist/components/button/EpButton2.vue.js +0 -4
- package/dist/components/button/button.js +0 -95
- package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.js +0 -134
- package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +0 -153
- package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.js +0 -77
- package/dist/node_modules/@ctrl/tinycolor/dist/module/index.js +0 -354
- package/dist/node_modules/@ctrl/tinycolor/dist/module/util.js +0 -32
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'mixins/utils' as *;
|
|
3
|
+
@use 'mixins/var' as *;
|
|
4
|
+
@use 'common/var' as *;
|
|
5
|
+
|
|
6
|
+
@include b(transfer) {
|
|
7
|
+
@include set-component-css-var('transfer', $transfer);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@include b(transfer) {
|
|
11
|
+
font-size: getCssVar('font-size', 'base');
|
|
12
|
+
|
|
13
|
+
@include e(buttons) {
|
|
14
|
+
display: inline-block;
|
|
15
|
+
vertical-align: middle;
|
|
16
|
+
padding: 0 30px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@include e(button) {
|
|
20
|
+
vertical-align: top;
|
|
21
|
+
|
|
22
|
+
&:nth-child(2) {
|
|
23
|
+
margin: 0 0 0 10px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
i,
|
|
27
|
+
span {
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
& .#{$namespace}-icon + span {
|
|
32
|
+
margin-left: 0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@include b(transfer-panel) {
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
background: getCssVar('bg-color', 'overlay');
|
|
40
|
+
display: inline-block;
|
|
41
|
+
text-align: left;
|
|
42
|
+
vertical-align: middle;
|
|
43
|
+
width: getCssVar('transfer-panel-width');
|
|
44
|
+
max-height: 100%;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
position: relative;
|
|
47
|
+
|
|
48
|
+
@include e(body) {
|
|
49
|
+
height: getCssVar('transfer-panel-body-height');
|
|
50
|
+
border-left: 1px solid getCssVar('transfer-border-color');
|
|
51
|
+
border-right: 1px solid getCssVar('transfer-border-color');
|
|
52
|
+
border-bottom: 1px solid getCssVar('transfer-border-color');
|
|
53
|
+
border-bottom-left-radius: getCssVar('transfer-border-radius');
|
|
54
|
+
border-bottom-right-radius: getCssVar('transfer-border-radius');
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
@include when('with-footer') {
|
|
57
|
+
border-bottom: none;
|
|
58
|
+
border-bottom-left-radius: 0;
|
|
59
|
+
border-bottom-right-radius: 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@include e(list) {
|
|
64
|
+
margin: 0;
|
|
65
|
+
padding: 6px 0;
|
|
66
|
+
list-style: none;
|
|
67
|
+
height: getCssVar('transfer-panel-body-height');
|
|
68
|
+
overflow: auto;
|
|
69
|
+
box-sizing: border-box;
|
|
70
|
+
@include when(filterable) {
|
|
71
|
+
height: calc(100% - getCssVar('transfer-filter-height') - 30px);
|
|
72
|
+
padding-top: 0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@include e(item) {
|
|
77
|
+
height: getCssVar('transfer-item-height');
|
|
78
|
+
line-height: getCssVar('transfer-item-height');
|
|
79
|
+
padding-left: 15px;
|
|
80
|
+
display: block !important;
|
|
81
|
+
|
|
82
|
+
& + .#{$namespace}-transfer-panel__item {
|
|
83
|
+
margin-left: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.#{$namespace}-checkbox {
|
|
87
|
+
color: getCssVar('text-color', 'regular');
|
|
88
|
+
margin-right: 30px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:hover {
|
|
92
|
+
color: getCssVar('color-primary');
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&.#{$namespace}-checkbox .#{$namespace}-checkbox__label {
|
|
96
|
+
width: 100%;
|
|
97
|
+
@include utils-ellipsis;
|
|
98
|
+
display: block;
|
|
99
|
+
box-sizing: border-box;
|
|
100
|
+
padding-left: 22px;
|
|
101
|
+
line-height: getCssVar('transfer-item-height');
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.#{$namespace}-checkbox__input {
|
|
105
|
+
position: absolute;
|
|
106
|
+
top: 8px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@include e(filter) {
|
|
111
|
+
text-align: center;
|
|
112
|
+
padding: 15px;
|
|
113
|
+
box-sizing: border-box;
|
|
114
|
+
|
|
115
|
+
.#{$namespace}-input__inner {
|
|
116
|
+
height: getCssVar('transfer-filter-height');
|
|
117
|
+
width: 100%;
|
|
118
|
+
font-size: 12px;
|
|
119
|
+
display: inline-block;
|
|
120
|
+
box-sizing: border-box;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.#{$namespace}-icon-circle-close {
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.#{$namespace}-transfer-panel__header {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
height: getCssVar('transfer-panel-header-height');
|
|
132
|
+
background: getCssVar('transfer-panel-header-bg-color');
|
|
133
|
+
margin: 0;
|
|
134
|
+
padding-left: 15px;
|
|
135
|
+
border: 1px solid getCssVar('transfer-border-color');
|
|
136
|
+
border-top-left-radius: getCssVar('transfer-border-radius');
|
|
137
|
+
border-top-right-radius: getCssVar('transfer-border-radius');
|
|
138
|
+
box-sizing: border-box;
|
|
139
|
+
color: getCssVar('color-black');
|
|
140
|
+
|
|
141
|
+
.#{$namespace}-checkbox {
|
|
142
|
+
position: relative;
|
|
143
|
+
display: flex;
|
|
144
|
+
width: 100%;
|
|
145
|
+
align-items: center;
|
|
146
|
+
|
|
147
|
+
.#{$namespace}-checkbox__label {
|
|
148
|
+
display: flex;
|
|
149
|
+
flex: 1;
|
|
150
|
+
align-items: center;
|
|
151
|
+
min-width: 0;
|
|
152
|
+
font-size: 16px;
|
|
153
|
+
color: getCssVar('text-color', 'primary');
|
|
154
|
+
font-weight: normal;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.#{$namespace}-transfer-panel__header-title {
|
|
160
|
+
@include utils-ellipsis;
|
|
161
|
+
flex: 1;
|
|
162
|
+
min-width: 0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.#{$namespace}-transfer-panel__header-count {
|
|
166
|
+
flex-shrink: 0;
|
|
167
|
+
margin-left: 8px;
|
|
168
|
+
margin-right: 15px;
|
|
169
|
+
color: getCssVar('text-color', 'secondary');
|
|
170
|
+
font-size: 12px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.#{$namespace}-transfer-panel__footer {
|
|
174
|
+
height: getCssVar('transfer-panel-footer-height');
|
|
175
|
+
background: getCssVar('bg-color', 'overlay');
|
|
176
|
+
margin: 0;
|
|
177
|
+
padding: 0;
|
|
178
|
+
border: 1px solid getCssVar('transfer-border-color');
|
|
179
|
+
border-bottom-left-radius: getCssVar('transfer-border-radius');
|
|
180
|
+
border-bottom-right-radius: getCssVar('transfer-border-radius');
|
|
181
|
+
@include utils-vertical-center;
|
|
182
|
+
|
|
183
|
+
.#{$namespace}-checkbox {
|
|
184
|
+
padding-left: 20px;
|
|
185
|
+
color: getCssVar('text-color', 'regular');
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.#{$namespace}-transfer-panel__empty {
|
|
190
|
+
margin: 0;
|
|
191
|
+
height: getCssVar('transfer-item-height');
|
|
192
|
+
line-height: getCssVar('transfer-item-height');
|
|
193
|
+
padding: 6px 15px 0;
|
|
194
|
+
color: getCssVar('text-color', 'secondary');
|
|
195
|
+
text-align: center;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.#{$namespace}-checkbox__label {
|
|
199
|
+
padding-left: 8px;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'mixins/var' as *;
|
|
3
|
+
@use 'common/var' as *;
|
|
4
|
+
|
|
5
|
+
@include b(tree-select) {
|
|
6
|
+
@include set-component-css-var('tree', $tree);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@include b(tree-select) {
|
|
10
|
+
@include e(popper) {
|
|
11
|
+
// padding-left same with select option
|
|
12
|
+
.#{$namespace}-tree-node__expand-icon {
|
|
13
|
+
margin-left: 8px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// remove icon when show checkbox
|
|
17
|
+
.#{$namespace}-tree-node.is-checked
|
|
18
|
+
> .#{$namespace}-tree-node__content
|
|
19
|
+
.#{$namespace}-select-dropdown__item.selected::after {
|
|
20
|
+
content: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.#{$namespace}-select-dropdown__list
|
|
24
|
+
> .#{$namespace}-select-dropdown__item {
|
|
25
|
+
padding-left: 32px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.#{$namespace}-select-dropdown__item {
|
|
29
|
+
flex: 1;
|
|
30
|
+
background: transparent !important;
|
|
31
|
+
|
|
32
|
+
// padding-left move to `el-tree-node__expand-icon`
|
|
33
|
+
padding-left: 0;
|
|
34
|
+
|
|
35
|
+
// fix: select height > tree node height
|
|
36
|
+
// https://github.com/yujinpan/el-select-tree/pull/33
|
|
37
|
+
height: 20px;
|
|
38
|
+
line-height: 20px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'mixins/var' as *;
|
|
3
|
+
@use 'common/var' as *;
|
|
4
|
+
@use 'common/transition';
|
|
5
|
+
|
|
6
|
+
@include b(tree) {
|
|
7
|
+
@include set-component-css-var('tree', $tree);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@include b(tree) {
|
|
11
|
+
position: relative;
|
|
12
|
+
cursor: default;
|
|
13
|
+
background: getCssVar('fill-color', 'blank');
|
|
14
|
+
color: getCssVar('tree-text-color');
|
|
15
|
+
font-size: getCssVar('font-size', 'base');
|
|
16
|
+
|
|
17
|
+
@include e(empty-block) {
|
|
18
|
+
position: relative;
|
|
19
|
+
min-height: 60px;
|
|
20
|
+
text-align: center;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@include e(empty-text) {
|
|
26
|
+
position: absolute;
|
|
27
|
+
left: 50%;
|
|
28
|
+
top: 50%;
|
|
29
|
+
transform: translate(-50%, -50%);
|
|
30
|
+
color: getCssVar('text-color', 'secondary');
|
|
31
|
+
font-size: getCssVar('font-size', 'base');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@include e(drop-indicator) {
|
|
35
|
+
position: absolute;
|
|
36
|
+
left: 0;
|
|
37
|
+
right: 0;
|
|
38
|
+
height: 1px;
|
|
39
|
+
background-color: getCssVar('color-primary');
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@include b(tree-node) {
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
outline: none;
|
|
46
|
+
&:focus {
|
|
47
|
+
/* focus */
|
|
48
|
+
> .#{$namespace}-tree-node__content {
|
|
49
|
+
background-color: getCssVar('tree-node-hover-bg-color');
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@include when(drop-inner) {
|
|
54
|
+
> .#{$namespace}-tree-node__content .#{$namespace}-tree-node__label {
|
|
55
|
+
background-color: getCssVar('color-primary');
|
|
56
|
+
color: #fff;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@include e(content) {
|
|
61
|
+
@include css-var-from-global('checkbox-height', 'tree-node-content-height');
|
|
62
|
+
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
height: getCssVar('tree-node-content-height');
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
|
|
68
|
+
& > .#{$namespace}-tree-node__expand-icon {
|
|
69
|
+
padding: 6px;
|
|
70
|
+
box-sizing: content-box;
|
|
71
|
+
}
|
|
72
|
+
& > label.#{$namespace}-checkbox {
|
|
73
|
+
margin-right: 8px;
|
|
74
|
+
}
|
|
75
|
+
&:hover {
|
|
76
|
+
background-color: getCssVar('tree-node-hover-bg-color');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.#{$namespace}-tree.is-dragging & {
|
|
80
|
+
cursor: move;
|
|
81
|
+
|
|
82
|
+
& * {
|
|
83
|
+
pointer-events: none;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.#{$namespace}-tree.is-dragging.is-drop-not-allow & {
|
|
88
|
+
cursor: not-allowed;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@include e(expand-icon) {
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
color: getCssVar('tree-expand-icon-color');
|
|
95
|
+
font-size: 12px;
|
|
96
|
+
|
|
97
|
+
transform: rotate(0deg);
|
|
98
|
+
transition: transform getCssVar('transition-duration') ease-in-out;
|
|
99
|
+
|
|
100
|
+
&.expanded {
|
|
101
|
+
transform: rotate(90deg);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&.is-leaf {
|
|
105
|
+
color: transparent;
|
|
106
|
+
cursor: default;
|
|
107
|
+
visibility: hidden;
|
|
108
|
+
}
|
|
109
|
+
&.is-hidden {
|
|
110
|
+
visibility: hidden;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@include e(loading-icon) {
|
|
115
|
+
margin-right: 8px;
|
|
116
|
+
font-size: getCssVar('font-size', 'base');
|
|
117
|
+
color: getCssVar('tree-expand-icon-color');
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
& > .#{$namespace}-tree-node__children {
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
background-color: transparent;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&.is-expanded > .#{$namespace}-tree-node__children {
|
|
126
|
+
display: block;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.#{$namespace}-tree--highlight-current
|
|
131
|
+
.#{$namespace}-tree-node.is-current
|
|
132
|
+
> .#{$namespace}-tree-node__content {
|
|
133
|
+
background-color: getCssVar('color-primary-light-9');
|
|
134
|
+
}
|