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,14 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'mixins/var' as *;
|
|
3
|
+
@use 'common/var' as *;
|
|
4
|
+
|
|
5
|
+
@include b(main) {
|
|
6
|
+
@include set-component-css-var('main', $main);
|
|
7
|
+
|
|
8
|
+
display: block;
|
|
9
|
+
flex: 1;
|
|
10
|
+
flex-basis: auto;
|
|
11
|
+
overflow: auto;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
padding: getCssVar('main-padding');
|
|
14
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'mixins/mixins' as *;
|
|
4
|
+
@use 'mixins/var' as *;
|
|
5
|
+
@use 'common/var' as *;
|
|
6
|
+
|
|
7
|
+
@include b(mention) {
|
|
8
|
+
position: relative;
|
|
9
|
+
width: 100%;
|
|
10
|
+
|
|
11
|
+
@include e(popper) {
|
|
12
|
+
@include picker-popper(
|
|
13
|
+
map.get($mention, 'bg-color'),
|
|
14
|
+
map.get($mention, 'border'),
|
|
15
|
+
map.get($mention, 'shadow')
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@include b(mention-dropdown) {
|
|
21
|
+
@include set-component-css-var('mention', $mention);
|
|
22
|
+
|
|
23
|
+
@include e(item) {
|
|
24
|
+
font-size: getCssVar('mention-font-size');
|
|
25
|
+
padding: 0 20px;
|
|
26
|
+
position: relative;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
text-overflow: ellipsis;
|
|
30
|
+
color: getCssVar('mention-option-color');
|
|
31
|
+
height: getCssVar('mention-option-height');
|
|
32
|
+
line-height: getCssVar('mention-option-height');
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
min-width: getCssVar('mention-option-min-width');
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
|
|
37
|
+
@include when(hovering) {
|
|
38
|
+
background-color: getCssVar('mention-option-hover-background');
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@include when(selected) {
|
|
42
|
+
color: getCssVar('mention-option-selected-color');
|
|
43
|
+
font-weight: bold;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@include when(disabled) {
|
|
47
|
+
color: getCssVar('mention-option-disabled-color');
|
|
48
|
+
cursor: not-allowed;
|
|
49
|
+
background-color: unset;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@include b(mention-dropdown) {
|
|
55
|
+
z-index: calc(#{getCssVar('index-top')} + 1);
|
|
56
|
+
border-radius: getCssVar('border-radius-base');
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@include b(mention-dropdown__loading) {
|
|
61
|
+
padding: 10px 0;
|
|
62
|
+
margin: 0;
|
|
63
|
+
text-align: center;
|
|
64
|
+
color: getCssVar('mention-option-loading-color');
|
|
65
|
+
font-size: 12px;
|
|
66
|
+
min-width: getCssVar('mention-option-min-width');
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@include b(mention-dropdown__wrap) {
|
|
70
|
+
max-height: getCssVar('mention-max-height');
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@include b(mention-dropdown__list) {
|
|
74
|
+
list-style: none;
|
|
75
|
+
padding: getCssVar('mention-padding');
|
|
76
|
+
margin: 0;
|
|
77
|
+
box-sizing: border-box;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@include b(mention-dropdown__header) {
|
|
81
|
+
padding: getCssVar('mention-header-padding');
|
|
82
|
+
border-bottom: getCssVar('mention-border');
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@include b(mention-dropdown__footer) {
|
|
86
|
+
padding: getCssVar('mention-footer-padding');
|
|
87
|
+
border-top: getCssVar('mention-border');
|
|
88
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'mixins/var' as *;
|
|
3
|
+
@use 'common/var' as *;
|
|
4
|
+
@use 'common/transition';
|
|
5
|
+
|
|
6
|
+
@mixin menu-item {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
height: getCssVar('menu-item-height');
|
|
10
|
+
line-height: getCssVar('menu-item-height');
|
|
11
|
+
font-size: getCssVar('menu-item-font-size');
|
|
12
|
+
color: getCssVar('menu-text-color');
|
|
13
|
+
padding: 0 getCssVar('menu-base-level-padding');
|
|
14
|
+
list-style: none;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
position: relative;
|
|
17
|
+
transition:
|
|
18
|
+
border-color getCssVar('transition-duration'),
|
|
19
|
+
background-color getCssVar('transition-duration'),
|
|
20
|
+
color getCssVar('transition-duration');
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
|
|
24
|
+
* {
|
|
25
|
+
vertical-align: bottom;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
i {
|
|
29
|
+
color: inherit;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:hover,
|
|
33
|
+
&:focus {
|
|
34
|
+
outline: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:hover {
|
|
38
|
+
background-color: getCssVar('menu-hover-bg-color');
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@include when(disabled) {
|
|
42
|
+
opacity: 0.25;
|
|
43
|
+
cursor: not-allowed;
|
|
44
|
+
background: none !important;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:root {
|
|
49
|
+
// They are defined on :root so they can be inherited by sub-menu instead of overwritten
|
|
50
|
+
@include set-component-css-var('menu', $menu);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@include b(menu) {
|
|
54
|
+
border-right: solid 1px getCssVar('menu-border-color');
|
|
55
|
+
list-style: none;
|
|
56
|
+
position: relative;
|
|
57
|
+
margin: 0;
|
|
58
|
+
padding-left: 0;
|
|
59
|
+
background-color: getCssVar('menu-bg-color');
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
|
|
62
|
+
@include m(vertical) {
|
|
63
|
+
&:not(.#{$namespace}-menu--collapse):not(
|
|
64
|
+
.#{$namespace}-menu--popup-container
|
|
65
|
+
) {
|
|
66
|
+
& .#{$namespace}-menu-item,
|
|
67
|
+
& .#{$namespace}-sub-menu__title,
|
|
68
|
+
& .#{$namespace}-menu-item-group__title {
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
padding-left: calc(
|
|
71
|
+
#{getCssVar('menu-base-level-padding')} + #{getCssVar('menu-level')} *
|
|
72
|
+
#{getCssVar('menu-level-padding')}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&:not(.#{$namespace}-menu--collapse) .#{$namespace}-sub-menu__title {
|
|
79
|
+
padding-right: calc(
|
|
80
|
+
#{getCssVar('menu-base-level-padding')} + #{getCssVar('menu-icon-width')}
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@include m(horizontal) {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-wrap: nowrap;
|
|
87
|
+
border-right: none;
|
|
88
|
+
|
|
89
|
+
height: getCssVar('menu-horizontal-height');
|
|
90
|
+
|
|
91
|
+
// reset menu-item popup height
|
|
92
|
+
&.#{$namespace}-menu--popup-container {
|
|
93
|
+
height: unset;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&.#{$namespace}-menu {
|
|
97
|
+
border-bottom: solid 1px getCssVar('menu-border-color');
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
& > .#{$namespace}-menu-item {
|
|
101
|
+
display: inline-flex;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
align-items: center;
|
|
104
|
+
|
|
105
|
+
height: 100%;
|
|
106
|
+
margin: 0;
|
|
107
|
+
border-bottom: 2px solid transparent;
|
|
108
|
+
color: getCssVar('menu-text-color');
|
|
109
|
+
|
|
110
|
+
a,
|
|
111
|
+
a:hover {
|
|
112
|
+
color: inherit;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
& > .#{$namespace}-sub-menu {
|
|
117
|
+
&:focus,
|
|
118
|
+
&:hover {
|
|
119
|
+
outline: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:hover {
|
|
123
|
+
.#{$namespace}-sub-menu__title {
|
|
124
|
+
color: getCssVar('menu-hover-text-color');
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&.is-active {
|
|
129
|
+
.#{$namespace}-sub-menu__title {
|
|
130
|
+
border-bottom: 2px solid getCssVar('menu-active-color');
|
|
131
|
+
color: getCssVar('menu-active-color');
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
& .#{$namespace}-sub-menu__title {
|
|
136
|
+
height: 100%;
|
|
137
|
+
border-bottom: 2px solid transparent;
|
|
138
|
+
color: getCssVar('menu-text-color');
|
|
139
|
+
|
|
140
|
+
&:hover {
|
|
141
|
+
background-color: getCssVar('menu-bg-color');
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
& .#{$namespace}-menu {
|
|
147
|
+
& .#{$namespace}-menu-item,
|
|
148
|
+
& .#{$namespace}-sub-menu__title {
|
|
149
|
+
background-color: getCssVar('menu-bg-color');
|
|
150
|
+
display: flex;
|
|
151
|
+
align-items: center;
|
|
152
|
+
height: getCssVar('menu-horizontal-sub-item-height');
|
|
153
|
+
line-height: getCssVar('menu-horizontal-sub-item-height');
|
|
154
|
+
padding: 0 10px;
|
|
155
|
+
color: getCssVar('menu-text-color');
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
& .#{$namespace}-sub-menu__title {
|
|
159
|
+
padding-right: 40px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
& .#{$namespace}-menu-item.is-active,
|
|
163
|
+
& .#{$namespace}-menu-item.is-active:hover,
|
|
164
|
+
& .#{$namespace}-sub-menu.is-active > .#{$namespace}-sub-menu__title,
|
|
165
|
+
&
|
|
166
|
+
.#{$namespace}-sub-menu.is-active
|
|
167
|
+
> .#{$namespace}-sub-menu__title:hover {
|
|
168
|
+
color: getCssVar('menu-active-color');
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
& .#{$namespace}-menu-item:not(.is-disabled):hover,
|
|
173
|
+
& .#{$namespace}-menu-item:not(.is-disabled):focus {
|
|
174
|
+
outline: none;
|
|
175
|
+
color: getCssVarWithDefault(
|
|
176
|
+
'menu-active-color',
|
|
177
|
+
getCssVar('menu-hover-text-color')
|
|
178
|
+
);
|
|
179
|
+
background-color: getCssVar('menu-hover-bg-color');
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
& > .#{$namespace}-menu-item.is-active {
|
|
183
|
+
border-bottom: 2px solid getCssVar('menu-active-color');
|
|
184
|
+
color: getCssVar('menu-active-color') !important;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@include m(collapse) {
|
|
189
|
+
width: calc(
|
|
190
|
+
#{getCssVar('menu-icon-width')} +
|
|
191
|
+
#{getCssVar('menu-base-level-padding')} * 2
|
|
192
|
+
);
|
|
193
|
+
|
|
194
|
+
> .#{$namespace}-menu-item,
|
|
195
|
+
> .#{$namespace}-sub-menu > .#{$namespace}-sub-menu__title,
|
|
196
|
+
> .#{$namespace}-menu-item-group
|
|
197
|
+
> ul
|
|
198
|
+
> .#{$namespace}-sub-menu
|
|
199
|
+
> .#{$namespace}-sub-menu__title {
|
|
200
|
+
[class^='#{$namespace}-icon'] {
|
|
201
|
+
margin: 0;
|
|
202
|
+
vertical-align: middle;
|
|
203
|
+
width: getCssVar('menu-icon-width');
|
|
204
|
+
text-align: center;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.#{$namespace}-sub-menu__icon-arrow {
|
|
208
|
+
display: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
> span {
|
|
212
|
+
height: 0;
|
|
213
|
+
width: 0;
|
|
214
|
+
overflow: hidden;
|
|
215
|
+
visibility: hidden;
|
|
216
|
+
display: inline-block;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
> .#{$namespace}-menu-item.is-active i {
|
|
221
|
+
color: inherit;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.#{$namespace}-menu .#{$namespace}-sub-menu {
|
|
225
|
+
min-width: 200px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.#{$namespace}-sub-menu {
|
|
229
|
+
&.is-active .#{$namespace}-sub-menu__title {
|
|
230
|
+
color: getCssVar('menu-active-color');
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
@include m(popup) {
|
|
236
|
+
z-index: 100;
|
|
237
|
+
min-width: 200px;
|
|
238
|
+
border: none;
|
|
239
|
+
padding: 5px 0;
|
|
240
|
+
border-radius: getCssVar('border-radius-small');
|
|
241
|
+
box-shadow: getCssVar('box-shadow-light');
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.#{$namespace}-icon {
|
|
245
|
+
flex-shrink: 0;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
@include b(menu-item) {
|
|
250
|
+
@include menu-item;
|
|
251
|
+
|
|
252
|
+
& [class^='#{$namespace}-icon'] {
|
|
253
|
+
margin-right: 5px;
|
|
254
|
+
width: getCssVar('menu-icon-width');
|
|
255
|
+
text-align: center;
|
|
256
|
+
font-size: 18px;
|
|
257
|
+
vertical-align: middle;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
@include when(active) {
|
|
261
|
+
color: getCssVar('menu-active-color');
|
|
262
|
+
|
|
263
|
+
i {
|
|
264
|
+
color: inherit;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.#{$namespace}-menu-tooltip__trigger {
|
|
269
|
+
position: absolute;
|
|
270
|
+
left: 0;
|
|
271
|
+
top: 0;
|
|
272
|
+
height: 100%;
|
|
273
|
+
width: 100%;
|
|
274
|
+
display: inline-flex;
|
|
275
|
+
align-items: center;
|
|
276
|
+
box-sizing: border-box;
|
|
277
|
+
padding: 0 getCssVar('menu-base-level-padding');
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
@include b(sub-menu) {
|
|
282
|
+
list-style: none;
|
|
283
|
+
margin: 0;
|
|
284
|
+
padding-left: 0;
|
|
285
|
+
|
|
286
|
+
@include e(title) {
|
|
287
|
+
@include menu-item;
|
|
288
|
+
|
|
289
|
+
&:hover {
|
|
290
|
+
background-color: getCssVar('menu-hover-bg-color');
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
& .#{$namespace}-menu {
|
|
295
|
+
border: none;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
& .#{$namespace}-menu-item {
|
|
299
|
+
height: getCssVar('menu-sub-item-height');
|
|
300
|
+
line-height: getCssVar('menu-sub-item-height');
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
&.#{$namespace}-sub-menu__hide-arrow .#{$namespace}-sub-menu__title {
|
|
304
|
+
padding-right: getCssVar('menu-base-level-padding');
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
@include e(hide-arrow) {
|
|
308
|
+
.#{$namespace}-sub-menu__icon-arrow {
|
|
309
|
+
display: none !important;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
@include when(active) {
|
|
314
|
+
.#{$namespace}-sub-menu__title {
|
|
315
|
+
border-bottom-color: getCssVar('menu-active-color');
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
@include when(disabled) {
|
|
320
|
+
.#{$namespace}-sub-menu__title,
|
|
321
|
+
.#{$namespace}-menu-item {
|
|
322
|
+
opacity: 0.25;
|
|
323
|
+
cursor: not-allowed;
|
|
324
|
+
background: none !important;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.#{$namespace}-icon {
|
|
329
|
+
vertical-align: middle;
|
|
330
|
+
margin-right: 5px;
|
|
331
|
+
width: getCssVar('menu-icon-width');
|
|
332
|
+
text-align: center;
|
|
333
|
+
font-size: 18px;
|
|
334
|
+
|
|
335
|
+
&.#{$namespace}-sub-menu__icon-more {
|
|
336
|
+
margin-right: 0 !important;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.#{$namespace}-sub-menu__icon-arrow {
|
|
341
|
+
position: absolute;
|
|
342
|
+
top: 50%;
|
|
343
|
+
right: getCssVar('menu-base-level-padding');
|
|
344
|
+
margin-top: -6px;
|
|
345
|
+
transition: transform getCssVar('transition-duration');
|
|
346
|
+
font-size: 12px;
|
|
347
|
+
margin-right: 0;
|
|
348
|
+
width: inherit;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
@include b(menu-item-group) {
|
|
353
|
+
> ul {
|
|
354
|
+
padding: 0;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
@include e(title) {
|
|
358
|
+
padding: 7px 0 7px getCssVar('menu-base-level-padding');
|
|
359
|
+
line-height: normal;
|
|
360
|
+
font-size: 12px;
|
|
361
|
+
color: getCssVar('text-color', 'secondary');
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.horizontal-collapse-transition
|
|
366
|
+
.#{$namespace}-sub-menu__title
|
|
367
|
+
.#{$namespace}-sub-menu__icon-arrow {
|
|
368
|
+
transition: getCssVar('transition-duration-fast');
|
|
369
|
+
opacity: 0;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.#{$namespace}-popper,
|
|
373
|
+
.#{$namespace}-menu--popup-container,
|
|
374
|
+
.#{$namespace}-menu {
|
|
375
|
+
outline: none;
|
|
376
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'mixins/mixins' as *;
|
|
4
|
+
@use 'mixins/var' as *;
|
|
5
|
+
@use 'common/var' as *;
|
|
6
|
+
@use 'common/popup' as *;
|
|
7
|
+
|
|
8
|
+
@include b(message-box) {
|
|
9
|
+
@include set-component-css-var('messagebox', $messagebox);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@include b(message-box) {
|
|
13
|
+
display: inline-block;
|
|
14
|
+
position: relative;
|
|
15
|
+
max-width: getCssVar('messagebox-width');
|
|
16
|
+
width: 100%;
|
|
17
|
+
padding: getCssVar('messagebox-padding-primary');
|
|
18
|
+
vertical-align: middle;
|
|
19
|
+
background-color: getCssVar('bg-color');
|
|
20
|
+
border-radius: getCssVar('messagebox-border-radius');
|
|
21
|
+
font-size: getCssVar('messagebox-font-size');
|
|
22
|
+
box-shadow: getCssVar('messagebox-box-shadow');
|
|
23
|
+
text-align: left;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
backface-visibility: hidden;
|
|
26
|
+
// To avoid small screen overflowing, see #11919
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
overflow-wrap: break-word;
|
|
29
|
+
|
|
30
|
+
&:focus {
|
|
31
|
+
outline: none !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@at-root .is-message-box {
|
|
35
|
+
.#{$namespace}-overlay-message-box {
|
|
36
|
+
text-align: center;
|
|
37
|
+
position: fixed;
|
|
38
|
+
top: 0;
|
|
39
|
+
right: 0;
|
|
40
|
+
bottom: 0;
|
|
41
|
+
left: 0;
|
|
42
|
+
padding: 16px;
|
|
43
|
+
overflow: auto;
|
|
44
|
+
|
|
45
|
+
&::after {
|
|
46
|
+
content: '';
|
|
47
|
+
display: inline-block;
|
|
48
|
+
height: 100%;
|
|
49
|
+
width: 0;
|
|
50
|
+
vertical-align: middle;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@include when(draggable) {
|
|
56
|
+
@include e(header) {
|
|
57
|
+
cursor: move;
|
|
58
|
+
user-select: none;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@include e(header) {
|
|
63
|
+
padding-bottom: getCssVar('messagebox-padding-primary');
|
|
64
|
+
|
|
65
|
+
&.show-close {
|
|
66
|
+
padding-right: calc(
|
|
67
|
+
getCssVar('messagebox-padding-primary') +
|
|
68
|
+
var(
|
|
69
|
+
#{getCssVarName('message-close-size')},
|
|
70
|
+
map.get($message, 'close-size')
|
|
71
|
+
)
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@include e(title) {
|
|
77
|
+
font-size: getCssVar('messagebox-font-size');
|
|
78
|
+
line-height: getCssVar('messagebox-font-line-height');
|
|
79
|
+
color: getCssVar('messagebox-title-color');
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@include e(headerbtn) {
|
|
83
|
+
position: absolute;
|
|
84
|
+
top: 0;
|
|
85
|
+
right: 0;
|
|
86
|
+
padding: 0;
|
|
87
|
+
width: 40px;
|
|
88
|
+
height: 40px;
|
|
89
|
+
border: none;
|
|
90
|
+
outline: none;
|
|
91
|
+
background: transparent;
|
|
92
|
+
font-size: var(
|
|
93
|
+
#{getCssVarName('message-close-size')},
|
|
94
|
+
map.get($message, 'close-size')
|
|
95
|
+
);
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
|
|
98
|
+
.#{$namespace}-message-box__close {
|
|
99
|
+
color: getCssVar('color-info');
|
|
100
|
+
font-size: inherit;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&:focus,
|
|
104
|
+
&:hover {
|
|
105
|
+
.#{$namespace}-message-box__close {
|
|
106
|
+
color: getCssVar('color-primary');
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@include e(content) {
|
|
112
|
+
color: getCssVar('messagebox-content-color');
|
|
113
|
+
font-size: getCssVar('messagebox-content-font-size');
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@include e(container) {
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
gap: 12px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@include e(input) {
|
|
123
|
+
padding-top: 12px;
|
|
124
|
+
|
|
125
|
+
& div.invalid > input {
|
|
126
|
+
border-color: getCssVar('color-error');
|
|
127
|
+
|
|
128
|
+
&:focus {
|
|
129
|
+
border-color: getCssVar('color-error');
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@include e(status) {
|
|
135
|
+
font-size: 24px;
|
|
136
|
+
|
|
137
|
+
@each $type in (primary, success, info, warning, error) {
|
|
138
|
+
&.#{$namespace}-message-box-icon--#{$type} {
|
|
139
|
+
@include css-var-from-global(('messagebox', 'color'), ('color', $type));
|
|
140
|
+
color: getCssVar('messagebox-color');
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@include e(message) {
|
|
146
|
+
margin: 0;
|
|
147
|
+
min-width: 0;
|
|
148
|
+
|
|
149
|
+
& p {
|
|
150
|
+
margin: 0;
|
|
151
|
+
line-height: getCssVar('messagebox-font-line-height');
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@include e(errormsg) {
|
|
156
|
+
color: getCssVar('color-error');
|
|
157
|
+
font-size: getCssVar('messagebox-error-font-size');
|
|
158
|
+
line-height: getCssVar('messagebox-font-line-height');
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@include e(btns) {
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-wrap: wrap;
|
|
164
|
+
justify-content: flex-end;
|
|
165
|
+
align-items: center;
|
|
166
|
+
padding-top: getCssVar('messagebox-padding-primary');
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// centerAlign 布局
|
|
170
|
+
@include m(center) {
|
|
171
|
+
@include e(title) {
|
|
172
|
+
display: flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
justify-content: center;
|
|
175
|
+
gap: 6px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@include e(status) {
|
|
179
|
+
font-size: inherit;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@include e(btns) {
|
|
183
|
+
justify-content: center;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@include e(container) {
|
|
187
|
+
justify-content: center;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
@include b(message-box-parent) {
|
|
193
|
+
@include m(hidden) {
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.fade-in-linear-enter-active {
|
|
199
|
+
.#{$namespace}-overlay-message-box {
|
|
200
|
+
animation: msgbox-fade-in getCssVar('transition-duration');
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.fade-in-linear-leave-active {
|
|
205
|
+
.#{$namespace}-overlay-message-box {
|
|
206
|
+
animation: msgbox-fade-in getCssVar('transition-duration') reverse;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@keyframes msgbox-fade-in {
|
|
211
|
+
0% {
|
|
212
|
+
transform: translate3d(0, -20px, 0);
|
|
213
|
+
opacity: 0;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
100% {
|
|
217
|
+
transform: translate3d(0, 0, 0);
|
|
218
|
+
opacity: 1;
|
|
219
|
+
}
|
|
220
|
+
}
|