cy-element-ui 1.0.47 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/alert.js +108 -108
- package/lib/aside.js +77 -77
- package/lib/autocomplete.js +5199 -360
- package/lib/avatar.js +4 -4
- package/lib/backtop.js +192 -101
- package/lib/badge.js +108 -108
- package/lib/breadcrumb-item.js +108 -108
- package/lib/breadcrumb.js +94 -94
- package/lib/button-group.js +4 -4
- package/lib/button.js +4 -4
- package/lib/calendar.js +1734 -137
- package/lib/card.js +96 -96
- package/lib/carousel-item.js +452 -108
- package/lib/carousel.js +1256 -105
- package/lib/cascader-panel.js +3524 -191
- package/lib/cascader.js +8077 -717
- package/lib/checkbox-button.js +151 -119
- package/lib/checkbox-group.js +47 -15
- package/lib/checkbox.js +47 -15
- package/lib/col.js +2 -2
- package/lib/collapse-item.js +815 -110
- package/lib/collapse.js +108 -108
- package/lib/color-picker.js +4705 -828
- package/lib/container.js +88 -88
- package/lib/date-picker.js +10735 -4739
- package/lib/descriptions-item.js +2 -2
- package/lib/descriptions.js +63 -8
- package/lib/dialog.js +1200 -22
- package/lib/divider.js +104 -104
- package/lib/drawer.js +875 -105
- package/lib/dropdown-item.js +128 -96
- package/lib/dropdown-menu.js +2301 -99
- package/lib/dropdown.js +990 -54
- package/lib/element-ui.common.js +31058 -13663
- package/lib/empty.js +793 -99
- package/lib/fileUpload.js +2542 -26
- package/lib/footer.js +77 -77
- package/lib/form-item.js +3305 -202
- package/lib/form.js +129 -115
- package/lib/header.js +77 -77
- package/lib/icon.js +67 -67
- package/lib/image.js +1662 -146
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +435 -26
- package/lib/input-number.js +1421 -32
- package/lib/input.js +509 -37
- package/lib/link.js +4 -4
- package/lib/loading.js +886 -149
- package/lib/main.js +64 -64
- package/lib/menu-item-group.js +103 -103
- package/lib/menu-item.js +3140 -137
- package/lib/menu.js +959 -268
- package/lib/message-box.js +2743 -188
- package/lib/message.js +1196 -118
- package/lib/notification.js +1196 -119
- package/lib/option-group.js +151 -119
- package/lib/option.js +392 -16
- package/lib/page-header.js +781 -87
- package/lib/pagination.js +7747 -646
- package/lib/popconfirm.js +3606 -219
- package/lib/popover.js +2604 -79
- package/lib/progress.js +4 -4
- package/lib/radio-button.js +151 -119
- package/lib/radio-group.js +151 -119
- package/lib/radio.js +47 -15
- package/lib/rate.js +756 -113
- package/lib/result.js +108 -108
- package/lib/row.js +2 -2
- package/lib/scrollbar.js +1813 -41
- package/lib/select.js +5547 -209
- package/lib/selectDisplayInput.js +4 -4
- package/lib/skeleton-item.js +108 -108
- package/lib/skeleton.js +108 -108
- package/lib/slider.js +4768 -530
- package/lib/spinner.js +100 -100
- package/lib/statistic.js +9600 -112
- package/lib/step.js +108 -108
- package/lib/steps.js +514 -99
- package/lib/subTitle.js +91 -91
- package/lib/submenu.js +2397 -76
- package/lib/switch.js +582 -127
- package/lib/tab-pane.js +108 -108
- package/lib/tabDialog.js +1630 -104
- package/lib/table-column.js +1115 -267
- package/lib/table.js +7067 -1253
- package/lib/tabs.js +1615 -113
- package/lib/tag.js +4 -4
- package/lib/theme-chalk/README.md +33 -0
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/gulpfile.js +27 -0
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/package.json +35 -0
- package/lib/theme-chalk/src/alert.scss +147 -0
- package/lib/theme-chalk/src/aside.scss +7 -0
- package/lib/theme-chalk/src/autocomplete.scss +80 -0
- package/lib/theme-chalk/src/avatar.scss +51 -0
- package/lib/theme-chalk/src/backtop.scss +22 -0
- package/lib/theme-chalk/src/badge.scss +57 -0
- package/lib/theme-chalk/src/base.scss +2 -0
- package/lib/theme-chalk/src/breadcrumb.scss +55 -0
- package/lib/theme-chalk/src/button.scss +262 -0
- package/lib/theme-chalk/src/calendar.scss +79 -0
- package/lib/theme-chalk/src/card.scss +32 -0
- package/lib/theme-chalk/src/carousel-item.scss +50 -0
- package/lib/theme-chalk/src/carousel.scss +161 -0
- package/lib/theme-chalk/src/cascader-panel.scss +120 -0
- package/lib/theme-chalk/src/cascader.scss +182 -0
- package/lib/theme-chalk/src/checkbox.scss +359 -0
- package/lib/theme-chalk/src/col.scss +156 -0
- package/lib/theme-chalk/src/collapse.scss +63 -0
- package/lib/theme-chalk/src/color-picker.scss +384 -0
- package/lib/theme-chalk/src/common/popup.scss +42 -0
- package/lib/theme-chalk/src/common/transition.scss +99 -0
- package/lib/theme-chalk/src/common/var.scss +1028 -0
- package/lib/theme-chalk/src/container.scss +14 -0
- package/lib/theme-chalk/src/date-picker/date-picker.scss +97 -0
- package/lib/theme-chalk/src/date-picker/date-range-picker.scss +101 -0
- package/lib/theme-chalk/src/date-picker/date-table.scss +151 -0
- package/lib/theme-chalk/src/date-picker/month-table.scss +82 -0
- package/lib/theme-chalk/src/date-picker/picker-panel.scss +117 -0
- package/lib/theme-chalk/src/date-picker/picker.scss +197 -0
- package/lib/theme-chalk/src/date-picker/time-picker.scss +85 -0
- package/lib/theme-chalk/src/date-picker/time-range-picker.scss +31 -0
- package/lib/theme-chalk/src/date-picker/time-spinner.scss +110 -0
- package/lib/theme-chalk/src/date-picker/year-table.scss +51 -0
- package/lib/theme-chalk/src/date-picker.scss +12 -0
- package/lib/theme-chalk/src/descriptions-item.scss +42 -0
- package/lib/theme-chalk/src/descriptions.scss +111 -0
- package/lib/theme-chalk/src/dialog.scss +123 -0
- package/lib/theme-chalk/src/display.scss +12 -0
- package/lib/theme-chalk/src/divider.scss +47 -0
- package/lib/theme-chalk/src/drawer.scss +219 -0
- package/lib/theme-chalk/src/dropdown.scss +182 -0
- package/lib/theme-chalk/src/empty.scss +45 -0
- package/lib/theme-chalk/src/footer.scss +8 -0
- package/lib/theme-chalk/src/form.scss +167 -0
- package/lib/theme-chalk/src/header.scss +8 -0
- package/lib/theme-chalk/src/icon.scss +1167 -0
- package/lib/theme-chalk/src/image.scss +179 -0
- package/lib/theme-chalk/src/index.scss +90 -0
- package/lib/theme-chalk/src/input-number.scss +180 -0
- package/lib/theme-chalk/src/input.scss +360 -0
- package/lib/theme-chalk/src/link.scss +81 -0
- package/lib/theme-chalk/src/loading.scss +96 -0
- package/lib/theme-chalk/src/main.scss +12 -0
- package/lib/theme-chalk/src/menu.scss +289 -0
- package/lib/theme-chalk/src/message-box.scss +226 -0
- package/lib/theme-chalk/src/message.scss +120 -0
- package/lib/theme-chalk/src/mixins/_button.scss +81 -0
- package/lib/theme-chalk/src/mixins/config.scss +4 -0
- package/lib/theme-chalk/src/mixins/function.scss +44 -0
- package/lib/theme-chalk/src/mixins/mixins.scss +190 -0
- package/lib/theme-chalk/src/mixins/utils.scss +39 -0
- package/lib/theme-chalk/src/notification.scss +99 -0
- package/lib/theme-chalk/src/option-group.scss +42 -0
- package/lib/theme-chalk/src/option.scss +36 -0
- package/lib/theme-chalk/src/page-header.scss +41 -0
- package/lib/theme-chalk/src/pagination.scss +295 -0
- package/lib/theme-chalk/src/popconfirm.scss +16 -0
- package/lib/theme-chalk/src/popover.scss +40 -0
- package/lib/theme-chalk/src/popper.scss +101 -0
- package/lib/theme-chalk/src/progress.scss +141 -0
- package/lib/theme-chalk/src/radio-button.scss +113 -0
- package/lib/theme-chalk/src/radio-group.scss +9 -0
- package/lib/theme-chalk/src/radio.scss +199 -0
- package/lib/theme-chalk/src/rate.scss +49 -0
- package/lib/theme-chalk/src/reset.scss +79 -0
- package/lib/theme-chalk/src/result.scss +61 -0
- package/lib/theme-chalk/src/row.scss +43 -0
- package/lib/theme-chalk/src/scrollbar.scss +72 -0
- package/lib/theme-chalk/src/select-dropdown.scss +62 -0
- package/lib/theme-chalk/src/select.scss +152 -0
- package/lib/theme-chalk/src/skeleton-item.scss +84 -0
- package/lib/theme-chalk/src/skeleton.scss +40 -0
- package/lib/theme-chalk/src/slider.scss +250 -0
- package/lib/theme-chalk/src/spinner.scss +44 -0
- package/lib/theme-chalk/src/statistic.scss +38 -0
- package/lib/theme-chalk/src/step.scss +317 -0
- package/lib/theme-chalk/src/steps.scss +20 -0
- package/lib/theme-chalk/src/switch.scss +116 -0
- package/lib/theme-chalk/src/table-column.scss +97 -0
- package/lib/theme-chalk/src/table.scss +564 -0
- package/lib/theme-chalk/src/tabs.scss +602 -0
- package/lib/theme-chalk/src/tag.scss +163 -0
- package/lib/theme-chalk/src/time-picker.scss +8 -0
- package/lib/theme-chalk/src/time-select.scss +37 -0
- package/lib/theme-chalk/src/timeline-item.scss +86 -0
- package/lib/theme-chalk/src/timeline.scss +14 -0
- package/lib/theme-chalk/src/tooltip.scss +141 -0
- package/lib/theme-chalk/src/transfer.scss +227 -0
- package/lib/theme-chalk/src/tree.scss +123 -0
- package/lib/theme-chalk/src/upload.scss +603 -0
- package/lib/time-picker.js +6481 -589
- package/lib/time-select.js +6334 -407
- package/lib/timeline-item.js +108 -108
- package/lib/timeline.js +4 -4
- package/lib/tooltip.js +2688 -44
- package/lib/transfer.js +2238 -146
- package/lib/tree.js +1563 -148
- package/lib/treeSelect.js +3421 -106
- package/lib/upload.js +1198 -31
- package/package.json +3 -3
- package/packages/theme-chalk/gulpfile.js +1 -14
- package/packages/theme-chalk/src/common/var.scss +16 -16
- package/packages/theme-cy/gulpfile.js +1 -14
- package/src/index.js +1 -1
- package/lib/theme-chalk/alert.css +0 -1
- package/lib/theme-chalk/aside.css +0 -1
- package/lib/theme-chalk/autocomplete.css +0 -1
- package/lib/theme-chalk/avatar.css +0 -1
- package/lib/theme-chalk/backtop.css +0 -1
- package/lib/theme-chalk/badge.css +0 -1
- package/lib/theme-chalk/breadcrumb.css +0 -1
- package/lib/theme-chalk/button.css +0 -1
- package/lib/theme-chalk/calendar.css +0 -1
- package/lib/theme-chalk/card.css +0 -1
- package/lib/theme-chalk/carousel-item.css +0 -1
- package/lib/theme-chalk/carousel.css +0 -1
- package/lib/theme-chalk/cascader-panel.css +0 -1
- package/lib/theme-chalk/cascader.css +0 -1
- package/lib/theme-chalk/checkbox.css +0 -1
- package/lib/theme-chalk/col.css +0 -1
- package/lib/theme-chalk/collapse.css +0 -1
- package/lib/theme-chalk/color-picker.css +0 -1
- package/lib/theme-chalk/container.css +0 -1
- package/lib/theme-chalk/date-picker.css +0 -1
- package/lib/theme-chalk/descriptions-item.css +0 -1
- package/lib/theme-chalk/descriptions.css +0 -1
- package/lib/theme-chalk/dialog.css +0 -1
- package/lib/theme-chalk/display.css +0 -1
- package/lib/theme-chalk/divider.css +0 -1
- package/lib/theme-chalk/drawer.css +0 -1
- package/lib/theme-chalk/dropdown.css +0 -1
- package/lib/theme-chalk/empty.css +0 -1
- package/lib/theme-chalk/footer.css +0 -1
- package/lib/theme-chalk/form.css +0 -1
- package/lib/theme-chalk/header.css +0 -1
- package/lib/theme-chalk/icon.css +0 -1
- package/lib/theme-chalk/image.css +0 -1
- package/lib/theme-chalk/input-number.css +0 -1
- package/lib/theme-chalk/input.css +0 -1
- package/lib/theme-chalk/link.css +0 -1
- package/lib/theme-chalk/loading.css +0 -1
- package/lib/theme-chalk/main.css +0 -1
- package/lib/theme-chalk/menu.css +0 -1
- package/lib/theme-chalk/message-box.css +0 -1
- package/lib/theme-chalk/message.css +0 -1
- package/lib/theme-chalk/notification.css +0 -1
- package/lib/theme-chalk/option-group.css +0 -1
- package/lib/theme-chalk/option.css +0 -1
- package/lib/theme-chalk/page-header.css +0 -1
- package/lib/theme-chalk/pagination.css +0 -1
- package/lib/theme-chalk/popconfirm.css +0 -1
- package/lib/theme-chalk/popover.css +0 -1
- package/lib/theme-chalk/popper.css +0 -1
- package/lib/theme-chalk/progress.css +0 -1
- package/lib/theme-chalk/radio-button.css +0 -1
- package/lib/theme-chalk/radio-group.css +0 -1
- package/lib/theme-chalk/radio.css +0 -1
- package/lib/theme-chalk/rate.css +0 -1
- package/lib/theme-chalk/reset.css +0 -1
- package/lib/theme-chalk/result.css +0 -1
- package/lib/theme-chalk/row.css +0 -1
- package/lib/theme-chalk/scrollbar.css +0 -1
- package/lib/theme-chalk/select-dropdown.css +0 -1
- package/lib/theme-chalk/select.css +0 -1
- package/lib/theme-chalk/skeleton-item.css +0 -1
- package/lib/theme-chalk/skeleton.css +0 -1
- package/lib/theme-chalk/slider.css +0 -1
- package/lib/theme-chalk/spinner.css +0 -1
- package/lib/theme-chalk/statistic.css +0 -1
- package/lib/theme-chalk/step.css +0 -1
- package/lib/theme-chalk/steps.css +0 -1
- package/lib/theme-chalk/switch.css +0 -1
- package/lib/theme-chalk/table-column.css +0 -1
- package/lib/theme-chalk/table.css +0 -1
- package/lib/theme-chalk/tabs.css +0 -1
- package/lib/theme-chalk/tag.css +0 -1
- package/lib/theme-chalk/time-picker.css +0 -1
- package/lib/theme-chalk/time-select.css +0 -1
- package/lib/theme-chalk/timeline-item.css +0 -1
- package/lib/theme-chalk/timeline.css +0 -1
- package/lib/theme-chalk/tooltip.css +0 -1
- package/lib/theme-chalk/transfer.css +0 -1
- package/lib/theme-chalk/tree.css +0 -1
- package/lib/theme-chalk/upload.css +0 -1
- /package/lib/theme-chalk/{breadcrumb-item.css → src/breadcrumb-item.scss} +0 -0
- /package/lib/theme-chalk/{button-group.css → src/button-group.scss} +0 -0
- /package/lib/theme-chalk/{checkbox-button.css → src/checkbox-button.scss} +0 -0
- /package/lib/theme-chalk/{checkbox-group.css → src/checkbox-group.scss} +0 -0
- /package/lib/theme-chalk/{collapse-item.css → src/collapse-item.scss} +0 -0
- /package/lib/theme-chalk/{dropdown-item.css → src/dropdown-item.scss} +0 -0
- /package/lib/theme-chalk/{dropdown-menu.css → src/dropdown-menu.scss} +0 -0
- /package/lib/theme-chalk/{fonts → src/fonts}/element-icons.ttf +0 -0
- /package/lib/theme-chalk/{fonts → src/fonts}/element-icons.woff +0 -0
- /package/lib/theme-chalk/{form-item.css → src/form-item.scss} +0 -0
- /package/lib/theme-chalk/{infinite-scroll.css → src/infinite-scroll.scss} +0 -0
- /package/lib/theme-chalk/{infiniteScroll.css → src/infiniteScroll.scss} +0 -0
- /package/lib/theme-chalk/{menu-item-group.css → src/menu-item-group.scss} +0 -0
- /package/lib/theme-chalk/{menu-item.css → src/menu-item.scss} +0 -0
- /package/lib/theme-chalk/{submenu.css → src/submenu.scss} +0 -0
- /package/lib/theme-chalk/{tab-pane.css → src/tab-pane.scss} +0 -0
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
@import "mixins/mixins";
|
|
2
|
+
@import "mixins/utils";
|
|
3
|
+
@import "common/var";
|
|
4
|
+
@import "common/transition";
|
|
5
|
+
|
|
6
|
+
@mixin menu-item {
|
|
7
|
+
height: 56px;
|
|
8
|
+
line-height: 56px;
|
|
9
|
+
font-size: $--menu-item-font-size;
|
|
10
|
+
color: $--menu-item-font-color;
|
|
11
|
+
padding: 0 20px;
|
|
12
|
+
list-style: none;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
position: relative;
|
|
15
|
+
transition: border-color .3s, background-color .3s, color .3s;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
|
|
19
|
+
* {
|
|
20
|
+
vertical-align: middle;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
i {
|
|
24
|
+
color: $--color-text-secondary;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:hover,
|
|
28
|
+
&:focus {
|
|
29
|
+
outline: none;
|
|
30
|
+
background-color: $--menu-item-hover-fill;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@include when(disabled) {
|
|
34
|
+
opacity: 0.25;
|
|
35
|
+
cursor: not-allowed;
|
|
36
|
+
background: none !important;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@include b(menu) {
|
|
41
|
+
border-right: solid 1px #e6e6e6;
|
|
42
|
+
list-style: none;
|
|
43
|
+
position: relative;
|
|
44
|
+
margin: 0;
|
|
45
|
+
padding-left: 0;
|
|
46
|
+
background-color: $--menu-background-color;
|
|
47
|
+
@include utils-clearfix;
|
|
48
|
+
&.el-menu--horizontal {
|
|
49
|
+
border-bottom: solid 1px #e6e6e6;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@include m(horizontal) {
|
|
53
|
+
border-right: none;
|
|
54
|
+
& > .el-menu-item {
|
|
55
|
+
float: left;
|
|
56
|
+
height: 60px;
|
|
57
|
+
line-height: 60px;
|
|
58
|
+
margin: 0;
|
|
59
|
+
border-bottom: 2px solid transparent;
|
|
60
|
+
color: $--color-text-secondary;
|
|
61
|
+
|
|
62
|
+
a,
|
|
63
|
+
a:hover {
|
|
64
|
+
color: inherit;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:not(.is-disabled):hover,
|
|
68
|
+
&:not(.is-disabled):focus{
|
|
69
|
+
background-color: #fff;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
& > .el-submenu {
|
|
73
|
+
float: left;
|
|
74
|
+
|
|
75
|
+
&:focus,
|
|
76
|
+
&:hover {
|
|
77
|
+
outline: none;
|
|
78
|
+
.el-submenu__title {
|
|
79
|
+
color: $--color-text-primary;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.is-active {
|
|
84
|
+
.el-submenu__title {
|
|
85
|
+
border-bottom: 2px solid $--color-primary;
|
|
86
|
+
color: $--color-text-primary;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
& .el-submenu__title {
|
|
91
|
+
height: 60px;
|
|
92
|
+
line-height: 60px;
|
|
93
|
+
border-bottom: 2px solid transparent;
|
|
94
|
+
color: $--color-text-secondary;
|
|
95
|
+
|
|
96
|
+
&:hover {
|
|
97
|
+
background-color: #fff;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
& .el-submenu__icon-arrow {
|
|
101
|
+
position: static;
|
|
102
|
+
vertical-align: middle;
|
|
103
|
+
margin-left: 8px;
|
|
104
|
+
margin-top: -3px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
& .el-menu {
|
|
108
|
+
& .el-menu-item,
|
|
109
|
+
& .el-submenu__title {
|
|
110
|
+
background-color: $--color-white;
|
|
111
|
+
float: none;
|
|
112
|
+
height: 36px;
|
|
113
|
+
line-height: 36px;
|
|
114
|
+
padding: 0 10px;
|
|
115
|
+
color: $--color-text-secondary;
|
|
116
|
+
}
|
|
117
|
+
& .el-menu-item.is-active,
|
|
118
|
+
& .el-submenu.is-active > .el-submenu__title {
|
|
119
|
+
color: $--color-text-primary;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
& .el-menu-item:not(.is-disabled):hover,
|
|
123
|
+
& .el-menu-item:not(.is-disabled):focus {
|
|
124
|
+
outline: none;
|
|
125
|
+
color: $--color-text-primary;
|
|
126
|
+
}
|
|
127
|
+
& > .el-menu-item.is-active {
|
|
128
|
+
border-bottom: 2px solid $--color-primary;
|
|
129
|
+
color: $--color-text-primary;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
@include m(collapse) {
|
|
133
|
+
width: 64px;
|
|
134
|
+
|
|
135
|
+
> .el-menu-item,
|
|
136
|
+
> .el-submenu > .el-submenu__title {
|
|
137
|
+
[class^="el-icon-"] {
|
|
138
|
+
margin: 0;
|
|
139
|
+
vertical-align: middle;
|
|
140
|
+
width: 24px;
|
|
141
|
+
text-align: center;
|
|
142
|
+
}
|
|
143
|
+
.el-submenu__icon-arrow {
|
|
144
|
+
display: none;
|
|
145
|
+
}
|
|
146
|
+
span {
|
|
147
|
+
height: 0;
|
|
148
|
+
width: 0;
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
visibility: hidden;
|
|
151
|
+
display: inline-block;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
> .el-menu-item.is-active i {
|
|
156
|
+
color: inherit;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.el-menu .el-submenu {
|
|
160
|
+
min-width: 200px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.el-submenu {
|
|
164
|
+
position: relative;
|
|
165
|
+
& .el-menu {
|
|
166
|
+
position: absolute;
|
|
167
|
+
margin-left: 5px;
|
|
168
|
+
top: 0;
|
|
169
|
+
left: 100%;
|
|
170
|
+
z-index: 10;
|
|
171
|
+
border: 1px solid $--border-color-light;
|
|
172
|
+
border-radius: $--border-radius-small;
|
|
173
|
+
box-shadow: $--box-shadow-light;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&.is-opened {
|
|
177
|
+
> .el-submenu__title .el-submenu__icon-arrow {
|
|
178
|
+
transform: none;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
@include m(popup) {
|
|
184
|
+
z-index: 100;
|
|
185
|
+
min-width: 200px;
|
|
186
|
+
border: none;
|
|
187
|
+
padding: 5px 0;
|
|
188
|
+
border-radius: $--border-radius-small;
|
|
189
|
+
box-shadow: $--box-shadow-light;
|
|
190
|
+
|
|
191
|
+
&-bottom-start {
|
|
192
|
+
margin-top: 5px;
|
|
193
|
+
}
|
|
194
|
+
&-right-start {
|
|
195
|
+
margin-left: 5px;
|
|
196
|
+
margin-right: 5px;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
@include b(menu-item) {
|
|
201
|
+
@include menu-item;
|
|
202
|
+
|
|
203
|
+
& [class^="el-icon-"] {
|
|
204
|
+
margin-right: 5px;
|
|
205
|
+
width: 24px;
|
|
206
|
+
text-align: center;
|
|
207
|
+
font-size: 18px;
|
|
208
|
+
vertical-align: middle;
|
|
209
|
+
}
|
|
210
|
+
@include when(active) {
|
|
211
|
+
color: $--color-primary;
|
|
212
|
+
i {
|
|
213
|
+
color: inherit;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@include b(submenu) {
|
|
219
|
+
list-style: none;
|
|
220
|
+
margin: 0;
|
|
221
|
+
padding-left: 0;
|
|
222
|
+
|
|
223
|
+
@include e(title) {
|
|
224
|
+
@include menu-item;
|
|
225
|
+
|
|
226
|
+
&:hover {
|
|
227
|
+
background-color: $--menu-item-hover-fill;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
& .el-menu {
|
|
231
|
+
border: none;
|
|
232
|
+
}
|
|
233
|
+
& .el-menu-item {
|
|
234
|
+
height: 50px;
|
|
235
|
+
line-height: 50px;
|
|
236
|
+
padding: 0 45px;
|
|
237
|
+
min-width: 200px;
|
|
238
|
+
}
|
|
239
|
+
@include e(icon-arrow) {
|
|
240
|
+
position: absolute;
|
|
241
|
+
top: 50%;
|
|
242
|
+
right: 20px;
|
|
243
|
+
margin-top: -7px;
|
|
244
|
+
transition: transform .3s;
|
|
245
|
+
font-size: 12px;
|
|
246
|
+
}
|
|
247
|
+
@include when(active) {
|
|
248
|
+
.el-submenu__title {
|
|
249
|
+
border-bottom-color: $--color-primary;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
@include when(opened) {
|
|
253
|
+
> .el-submenu__title .el-submenu__icon-arrow {
|
|
254
|
+
transform: rotateZ(180deg);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
@include when(disabled) {
|
|
258
|
+
.el-submenu__title,
|
|
259
|
+
.el-menu-item {
|
|
260
|
+
opacity: 0.25;
|
|
261
|
+
cursor: not-allowed;
|
|
262
|
+
background: none !important;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
[class^="el-icon-"] {
|
|
266
|
+
vertical-align: middle;
|
|
267
|
+
margin-right: 5px;
|
|
268
|
+
width: 24px;
|
|
269
|
+
text-align: center;
|
|
270
|
+
font-size: 18px;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
@include b(menu-item-group) {
|
|
275
|
+
> ul {
|
|
276
|
+
padding: 0;
|
|
277
|
+
}
|
|
278
|
+
@include e(title) {
|
|
279
|
+
padding: 7px 0 7px 20px;
|
|
280
|
+
line-height: normal;
|
|
281
|
+
font-size: 12px;
|
|
282
|
+
color: $--color-text-secondary;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.horizontal-collapse-transition .el-submenu__title .el-submenu__icon-arrow {
|
|
287
|
+
transition: .2s;
|
|
288
|
+
opacity: 0;
|
|
289
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
@import "mixins/mixins";
|
|
2
|
+
@import "common/var";
|
|
3
|
+
@import "common/popup";
|
|
4
|
+
@import "button";
|
|
5
|
+
@import "input";
|
|
6
|
+
|
|
7
|
+
@include b(message-box) {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
width: $--msgbox-width;
|
|
10
|
+
padding-bottom: 10px;
|
|
11
|
+
vertical-align: middle;
|
|
12
|
+
background-color: $--color-white;
|
|
13
|
+
border-radius: $--msgbox-border-radius;
|
|
14
|
+
border: 1px solid $--border-color-lighter;
|
|
15
|
+
font-size: $--messagebox-font-size;
|
|
16
|
+
box-shadow: $--box-shadow-light;
|
|
17
|
+
text-align: left;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
backface-visibility: hidden;
|
|
20
|
+
|
|
21
|
+
@include e(wrapper) {
|
|
22
|
+
position: fixed;
|
|
23
|
+
top: 0;
|
|
24
|
+
bottom: 0;
|
|
25
|
+
left: 0;
|
|
26
|
+
right: 0;
|
|
27
|
+
text-align: center;
|
|
28
|
+
|
|
29
|
+
&::after {
|
|
30
|
+
content: "";
|
|
31
|
+
display: inline-block;
|
|
32
|
+
height: 100%;
|
|
33
|
+
width: 0;
|
|
34
|
+
vertical-align: middle;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@include e(header) {
|
|
39
|
+
position: relative;
|
|
40
|
+
padding: $--msgbox-padding-primary;
|
|
41
|
+
padding-bottom: 10px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@include e(title) {
|
|
45
|
+
padding-left: 0;
|
|
46
|
+
margin-bottom: 0;
|
|
47
|
+
font-size: $--messagebox-font-size;
|
|
48
|
+
line-height: 1;
|
|
49
|
+
color: $--messagebox-title-color;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@include e(headerbtn) {
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: $--msgbox-padding-primary;
|
|
55
|
+
right: $--msgbox-padding-primary;
|
|
56
|
+
padding: 0;
|
|
57
|
+
border: none;
|
|
58
|
+
outline: none;
|
|
59
|
+
background: transparent;
|
|
60
|
+
font-size: $--message-close-size;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
|
|
63
|
+
.el-message-box__close {
|
|
64
|
+
color: $--color-info;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:focus, &:hover {
|
|
68
|
+
.el-message-box__close {
|
|
69
|
+
color: $--color-primary;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@include e(content) {
|
|
76
|
+
padding: 10px $--msgbox-padding-primary;
|
|
77
|
+
color: $--messagebox-content-color;
|
|
78
|
+
font-size: $--messagebox-content-font-size;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@include e(container) {
|
|
82
|
+
position: relative;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@include e(input) {
|
|
86
|
+
padding-top: 15px;
|
|
87
|
+
|
|
88
|
+
& input.invalid {
|
|
89
|
+
border-color: $--color-danger;
|
|
90
|
+
&:focus {
|
|
91
|
+
border-color: $--color-danger;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@include e(status) {
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: 50%;
|
|
99
|
+
transform: translateY(-50%);
|
|
100
|
+
font-size: 24px !important;
|
|
101
|
+
|
|
102
|
+
&::before {
|
|
103
|
+
// 防止图标切割
|
|
104
|
+
padding-left: 1px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
+ .el-message-box__message {
|
|
108
|
+
padding-left: 36px;
|
|
109
|
+
padding-right: 12px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&.el-icon-success {
|
|
113
|
+
color: $--messagebox-success-color;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&.el-icon-info {
|
|
117
|
+
color: $--messagebox-info-color;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&.el-icon-warning {
|
|
121
|
+
color: $--messagebox-warning-color;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&.el-icon-error {
|
|
125
|
+
color: $--messagebox-danger-color;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@include e(message) {
|
|
130
|
+
margin: 0;
|
|
131
|
+
|
|
132
|
+
& p {
|
|
133
|
+
margin: 0;
|
|
134
|
+
line-height: 24px;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@include e(errormsg) {
|
|
139
|
+
color: $--color-danger;
|
|
140
|
+
font-size: $--messagebox-error-font-size;
|
|
141
|
+
min-height: 18px;
|
|
142
|
+
margin-top: 2px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@include e(btns) {
|
|
146
|
+
padding: 5px 15px 0;
|
|
147
|
+
text-align: right;
|
|
148
|
+
|
|
149
|
+
& button:nth-child(2) {
|
|
150
|
+
margin-left: 10px;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@include e(btns-reverse) {
|
|
155
|
+
flex-direction: row-reverse;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// centerAlign 布局
|
|
159
|
+
@include m(center) {
|
|
160
|
+
padding-bottom: 30px;
|
|
161
|
+
|
|
162
|
+
@include e(header) {
|
|
163
|
+
padding-top: 30px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@include e(title) {
|
|
167
|
+
position: relative;
|
|
168
|
+
display: flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
justify-content: center;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@include e(status) {
|
|
174
|
+
position: relative;
|
|
175
|
+
top: auto;
|
|
176
|
+
padding-right: 5px;
|
|
177
|
+
text-align: center;
|
|
178
|
+
transform: translateY(-1px);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@include e(message) {
|
|
182
|
+
margin-left: 0;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@include e((btns, content)) {
|
|
186
|
+
text-align: center;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@include e(content) {
|
|
190
|
+
$padding-horizontal: $--msgbox-padding-primary + 12px;
|
|
191
|
+
|
|
192
|
+
padding-left: $padding-horizontal;
|
|
193
|
+
padding-right: $padding-horizontal;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.msgbox-fade-enter-active {
|
|
199
|
+
animation: msgbox-fade-in .3s;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.msgbox-fade-leave-active {
|
|
203
|
+
animation: msgbox-fade-out .3s;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@keyframes msgbox-fade-in {
|
|
207
|
+
0% {
|
|
208
|
+
transform: translate3d(0, -20px, 0);
|
|
209
|
+
opacity: 0;
|
|
210
|
+
}
|
|
211
|
+
100% {
|
|
212
|
+
transform: translate3d(0, 0, 0);
|
|
213
|
+
opacity: 1;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@keyframes msgbox-fade-out {
|
|
218
|
+
0% {
|
|
219
|
+
transform: translate3d(0, 0, 0);
|
|
220
|
+
opacity: 1;
|
|
221
|
+
}
|
|
222
|
+
100% {
|
|
223
|
+
transform: translate3d(0, -20px, 0);
|
|
224
|
+
opacity: 0;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
@import "mixins/mixins";
|
|
2
|
+
@import "common/var";
|
|
3
|
+
|
|
4
|
+
@include b(message) {
|
|
5
|
+
min-width: $--message-min-width;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
border-radius: $--border-radius-base;
|
|
8
|
+
border-width: $--border-width-base;
|
|
9
|
+
border-style: $--border-style-base;
|
|
10
|
+
border-color: $--border-color-lighter;
|
|
11
|
+
position: fixed;
|
|
12
|
+
left: 50%;
|
|
13
|
+
top: 20px;
|
|
14
|
+
transform: translateX(-50%);
|
|
15
|
+
background-color: $--message-background-color;
|
|
16
|
+
transition: opacity 0.3s, transform .4s, top 0.4s;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
padding: $--message-padding;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
|
|
22
|
+
@include when(center) {
|
|
23
|
+
justify-content: center;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@include when(closable) {
|
|
27
|
+
.el-message__content {
|
|
28
|
+
padding-right: 16px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
p {
|
|
33
|
+
margin: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@include m(info) {
|
|
37
|
+
.el-message__content {
|
|
38
|
+
color: $--message-info-font-color;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@include m(success) {
|
|
43
|
+
background-color: $--color-success-lighter;
|
|
44
|
+
border-color: $--color-success-light;
|
|
45
|
+
|
|
46
|
+
.el-message__content {
|
|
47
|
+
color: $--message-success-font-color;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@include m(warning) {
|
|
52
|
+
background-color: $--color-warning-lighter;
|
|
53
|
+
border-color: $--color-warning-light;
|
|
54
|
+
|
|
55
|
+
.el-message__content {
|
|
56
|
+
color: $--message-warning-font-color;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@include m(error) {
|
|
61
|
+
background-color: $--color-danger-lighter;
|
|
62
|
+
border-color: $--color-danger-light;
|
|
63
|
+
|
|
64
|
+
.el-message__content {
|
|
65
|
+
color: $--message-danger-font-color;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@include e(icon) {
|
|
70
|
+
margin-right: 10px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@include e(content) {
|
|
74
|
+
padding: 0;
|
|
75
|
+
font-size: 14px;
|
|
76
|
+
line-height: 1;
|
|
77
|
+
&:focus {
|
|
78
|
+
outline-width: 0;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@include e(closeBtn) {
|
|
83
|
+
position: absolute;
|
|
84
|
+
top: 50%;
|
|
85
|
+
right: 15px;
|
|
86
|
+
transform: translateY(-50%);
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
color: $--message-close-icon-color;
|
|
89
|
+
font-size: $--message-close-size;
|
|
90
|
+
|
|
91
|
+
&:focus {
|
|
92
|
+
outline-width: 0;
|
|
93
|
+
}
|
|
94
|
+
&:hover {
|
|
95
|
+
color: $--message-close-hover-color;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
& .el-icon-success {
|
|
100
|
+
color: $--message-success-font-color;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
& .el-icon-error {
|
|
104
|
+
color: $--message-danger-font-color;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
& .el-icon-info {
|
|
108
|
+
color: $--message-info-font-color;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
& .el-icon-warning {
|
|
112
|
+
color: $--message-warning-font-color;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.el-message-fade-enter,
|
|
117
|
+
.el-message-fade-leave-active {
|
|
118
|
+
opacity: 0;
|
|
119
|
+
transform: translate(-50%, -100%);
|
|
120
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
@import "../common/var";
|
|
2
|
+
@mixin button-plain($color) {
|
|
3
|
+
color: $color;
|
|
4
|
+
background: mix($--color-white, $color, 90%);
|
|
5
|
+
border-color: mix($--color-white, $color, 60%);
|
|
6
|
+
|
|
7
|
+
&:hover,
|
|
8
|
+
&:focus {
|
|
9
|
+
background: $color;
|
|
10
|
+
border-color: $color;
|
|
11
|
+
color: $--color-white;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&:active {
|
|
15
|
+
background: mix($--color-black, $color, $--button-active-shade-percent);
|
|
16
|
+
border-color: mix($--color-black, $color, $--button-active-shade-percent);
|
|
17
|
+
color: $--color-white;
|
|
18
|
+
outline: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.is-disabled {
|
|
22
|
+
&,
|
|
23
|
+
&:hover,
|
|
24
|
+
&:focus,
|
|
25
|
+
&:active {
|
|
26
|
+
color: mix($--color-white, $color, 40%);
|
|
27
|
+
background-color: mix($--color-white, $color, 90%);
|
|
28
|
+
border-color: mix($--color-white, $color, 80%);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@mixin button-variant($color, $background-color, $border-color) {
|
|
34
|
+
color: $color;
|
|
35
|
+
background-color: $background-color;
|
|
36
|
+
border-color: $border-color;
|
|
37
|
+
|
|
38
|
+
&:hover,
|
|
39
|
+
&:focus {
|
|
40
|
+
background: mix($--color-white, $background-color, $--button-hover-tint-percent);
|
|
41
|
+
border-color: mix($--color-white, $border-color, $--button-hover-tint-percent);
|
|
42
|
+
color: $color;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:active {
|
|
46
|
+
background: mix($--color-black, $background-color, $--button-active-shade-percent);
|
|
47
|
+
border-color: mix($--color-black, $border-color, $--button-active-shade-percent);
|
|
48
|
+
color: $color;
|
|
49
|
+
outline: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.is-active {
|
|
53
|
+
background: mix($--color-black, $background-color, $--button-active-shade-percent);
|
|
54
|
+
border-color: mix($--color-black, $border-color, $--button-active-shade-percent);
|
|
55
|
+
color: $color;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.is-disabled {
|
|
59
|
+
&,
|
|
60
|
+
&:hover,
|
|
61
|
+
&:focus,
|
|
62
|
+
&:active {
|
|
63
|
+
color: $--color-white;
|
|
64
|
+
background-color: mix($background-color, $--color-white);
|
|
65
|
+
border-color: mix($border-color, $--color-white);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.is-plain {
|
|
70
|
+
@include button-plain($background-color);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@mixin button-size($padding-vertical, $padding-horizontal, $font-size, $border-radius) {
|
|
75
|
+
padding: $padding-vertical $padding-horizontal;
|
|
76
|
+
font-size: $font-size;
|
|
77
|
+
border-radius: $border-radius;
|
|
78
|
+
&.is-round {
|
|
79
|
+
padding: $padding-vertical $padding-horizontal;
|
|
80
|
+
}
|
|
81
|
+
}
|