cy-element-ui 1.0.46 → 1.0.48
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 +4 -4
- package/lib/aside.js +77 -77
- package/lib/autocomplete.js +159 -3940
- package/lib/avatar.js +108 -108
- package/lib/backtop.js +110 -110
- package/lib/badge.js +108 -108
- package/lib/breadcrumb-item.js +4 -4
- package/lib/breadcrumb.js +4 -4
- package/lib/button-group.js +4 -4
- package/lib/button.js +4 -4
- package/lib/calendar.js +46 -1545
- package/lib/card.js +96 -96
- package/lib/carousel-item.js +108 -452
- package/lib/carousel.js +116 -185
- package/lib/cascader-panel.js +187 -2270
- package/lib/cascader.js +275 -6452
- package/lib/checkbox-button.js +11 -43
- package/lib/checkbox-group.js +15 -47
- package/lib/checkbox.js +15 -47
- package/lib/col.js +2 -2
- package/lib/collapse-item.js +110 -815
- package/lib/collapse.js +108 -108
- package/lib/color-picker.js +153 -3953
- package/lib/container.js +88 -88
- package/lib/date-picker.js +419 -5230
- package/lib/descriptions-item.js +2 -2
- package/lib/descriptions.js +8 -63
- package/lib/dialog.js +22 -1200
- package/lib/divider.js +104 -104
- package/lib/drawer.js +105 -875
- package/lib/dropdown-item.js +11 -43
- package/lib/dropdown-menu.js +75 -2277
- package/lib/dropdown.js +136 -1072
- package/lib/element-ui.common.js +29785 -42723
- package/lib/empty.js +7 -603
- package/lib/fileUpload.js +109 -2477
- package/lib/footer.js +77 -77
- package/lib/form-item.js +28 -418
- package/lib/form.js +15 -29
- package/lib/header.js +77 -77
- package/lib/icon.js +4 -4
- package/lib/image.js +49 -1376
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +21 -311
- package/lib/input-number.js +33 -1422
- package/lib/input.js +37 -507
- package/lib/link.js +4 -4
- package/lib/loading.js +67 -804
- package/lib/main.js +64 -64
- package/lib/menu-item-group.js +4 -4
- package/lib/menu-item.js +61 -2945
- package/lib/menu.js +54 -745
- package/lib/message-box.js +80 -2537
- package/lib/message.js +24 -1102
- package/lib/notification.js +25 -1102
- package/lib/option-group.js +11 -43
- package/lib/option.js +18 -394
- package/lib/page-header.js +87 -683
- package/lib/pagination.js +139 -6078
- package/lib/popconfirm.js +219 -3508
- package/lib/popover.js +99 -2624
- package/lib/progress.js +4 -4
- package/lib/radio-button.js +11 -43
- package/lib/radio-group.js +11 -43
- package/lib/radio.js +15 -47
- package/lib/rate.js +113 -756
- package/lib/result.js +4 -4
- package/lib/row.js +2 -2
- package/lib/scrollbar.js +50 -735
- package/lib/select.js +209 -4352
- package/lib/selectDisplayInput.js +108 -108
- package/lib/skeleton-item.js +2 -2
- package/lib/skeleton.js +108 -108
- package/lib/slider.js +120 -4266
- package/lib/spinner.js +4 -4
- package/lib/statistic.js +117 -9605
- package/lib/step.js +108 -108
- package/lib/steps.js +99 -514
- package/lib/subTitle.js +91 -91
- package/lib/submenu.js +121 -2442
- package/lib/switch.js +21 -476
- package/lib/tab-pane.js +4 -4
- package/lib/tabDialog.js +37 -1563
- package/lib/table-column.js +32 -880
- package/lib/table.js +424 -4467
- package/lib/tabs.js +12 -425
- 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 +285 -5013
- package/lib/time-select.js +181 -4949
- package/lib/timeline-item.js +108 -108
- package/lib/timeline.js +82 -82
- package/lib/tooltip.js +41 -2566
- package/lib/transfer.js +142 -2136
- package/lib/tree.js +55 -1372
- package/lib/treeSelect.js +106 -3421
- package/lib/upload.js +28 -1047
- 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,44 @@
|
|
|
1
|
+
@import "config";
|
|
2
|
+
|
|
3
|
+
/* BEM support Func
|
|
4
|
+
-------------------------- */
|
|
5
|
+
@function selectorToString($selector) {
|
|
6
|
+
$selector: inspect($selector);
|
|
7
|
+
$selector: str-slice($selector, 2, -2);
|
|
8
|
+
@return $selector;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@function containsModifier($selector) {
|
|
12
|
+
$selector: selectorToString($selector);
|
|
13
|
+
|
|
14
|
+
@if str-index($selector, $modifier-separator) {
|
|
15
|
+
@return true;
|
|
16
|
+
} @else {
|
|
17
|
+
@return false;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@function containWhenFlag($selector) {
|
|
22
|
+
$selector: selectorToString($selector);
|
|
23
|
+
|
|
24
|
+
@if str-index($selector, '.' + $state-prefix) {
|
|
25
|
+
@return true
|
|
26
|
+
} @else {
|
|
27
|
+
@return false
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@function containPseudoClass($selector) {
|
|
32
|
+
$selector: selectorToString($selector);
|
|
33
|
+
|
|
34
|
+
@if str-index($selector, ':') {
|
|
35
|
+
@return true
|
|
36
|
+
} @else {
|
|
37
|
+
@return false
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@function hitAllSpecialNestRule($selector) {
|
|
42
|
+
|
|
43
|
+
@return containsModifier($selector) or containWhenFlag($selector) or containPseudoClass($selector);
|
|
44
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
@import "function";
|
|
2
|
+
@import "../common/var";
|
|
3
|
+
|
|
4
|
+
/* Break-points
|
|
5
|
+
-------------------------- */
|
|
6
|
+
@mixin res($key, $map: $--breakpoints) {
|
|
7
|
+
// 循环断点Map,如果存在则返回
|
|
8
|
+
@if map-has-key($map, $key) {
|
|
9
|
+
@media only screen and #{inspect(map-get($map, $key))} {
|
|
10
|
+
@content;
|
|
11
|
+
}
|
|
12
|
+
} @else {
|
|
13
|
+
@warn "Undefeined points: `#{$map}`";
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Scrollbar
|
|
18
|
+
-------------------------- */
|
|
19
|
+
@mixin scroll-bar {
|
|
20
|
+
$--scrollbar-thumb-background: #b4bccc;
|
|
21
|
+
$--scrollbar-track-background: #fff;
|
|
22
|
+
|
|
23
|
+
&::-webkit-scrollbar {
|
|
24
|
+
z-index: 11;
|
|
25
|
+
width: 6px;
|
|
26
|
+
|
|
27
|
+
&:horizontal {
|
|
28
|
+
height: 6px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&-thumb {
|
|
32
|
+
border-radius: 5px;
|
|
33
|
+
width: 6px;
|
|
34
|
+
background: $--scrollbar-thumb-background;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&-corner {
|
|
38
|
+
background: $--scrollbar-track-background;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&-track {
|
|
42
|
+
background: $--scrollbar-track-background;
|
|
43
|
+
|
|
44
|
+
&-piece {
|
|
45
|
+
background: $--scrollbar-track-background;
|
|
46
|
+
width: 6px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Placeholder
|
|
53
|
+
-------------------------- */
|
|
54
|
+
@mixin placeholder {
|
|
55
|
+
&::-webkit-input-placeholder {
|
|
56
|
+
@content
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&::-moz-placeholder {
|
|
60
|
+
@content
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&:-ms-input-placeholder {
|
|
64
|
+
@content
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* BEM
|
|
69
|
+
-------------------------- */
|
|
70
|
+
@mixin b($block) {
|
|
71
|
+
$B: $namespace+'-'+$block !global;
|
|
72
|
+
|
|
73
|
+
.#{$B} {
|
|
74
|
+
@content;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@mixin e($element) {
|
|
79
|
+
$E: $element !global;
|
|
80
|
+
$selector: &;
|
|
81
|
+
$currentSelector: "";
|
|
82
|
+
@each $unit in $element {
|
|
83
|
+
$currentSelector: #{$currentSelector + "." + $B + $element-separator + $unit + ","};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@if hitAllSpecialNestRule($selector) {
|
|
87
|
+
@at-root {
|
|
88
|
+
#{$selector} {
|
|
89
|
+
#{$currentSelector} {
|
|
90
|
+
@content;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
} @else {
|
|
95
|
+
@at-root {
|
|
96
|
+
#{$currentSelector} {
|
|
97
|
+
@content;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@mixin m($modifier) {
|
|
104
|
+
$selector: &;
|
|
105
|
+
$currentSelector: "";
|
|
106
|
+
@each $unit in $modifier {
|
|
107
|
+
$currentSelector: #{$currentSelector + & + $modifier-separator + $unit + ","};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@at-root {
|
|
111
|
+
#{$currentSelector} {
|
|
112
|
+
@content;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@mixin configurable-m($modifier, $E-flag: false) {
|
|
118
|
+
$selector: &;
|
|
119
|
+
$interpolation: '';
|
|
120
|
+
|
|
121
|
+
@if $E-flag {
|
|
122
|
+
$interpolation: $element-separator + $E-flag;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@at-root {
|
|
126
|
+
#{$selector} {
|
|
127
|
+
.#{$B+$interpolation+$modifier-separator+$modifier} {
|
|
128
|
+
@content;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@mixin spec-selector($specSelector: '', $element: $E, $modifier: false, $block: $B) {
|
|
135
|
+
$modifierCombo: '';
|
|
136
|
+
|
|
137
|
+
@if $modifier {
|
|
138
|
+
$modifierCombo: $modifier-separator + $modifier;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@at-root {
|
|
142
|
+
#{&}#{$specSelector}.#{$block+$element-separator+$element+$modifierCombo} {
|
|
143
|
+
@content
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@mixin meb($modifier: false, $element: $E, $block: $B) {
|
|
149
|
+
$selector: &;
|
|
150
|
+
$modifierCombo: '';
|
|
151
|
+
|
|
152
|
+
@if $modifier {
|
|
153
|
+
$modifierCombo: $modifier-separator + $modifier;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@at-root {
|
|
157
|
+
#{$selector} {
|
|
158
|
+
.#{$block+$element-separator+$element+$modifierCombo} {
|
|
159
|
+
@content
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@mixin when($state) {
|
|
166
|
+
@at-root {
|
|
167
|
+
&.#{$state-prefix + $state} {
|
|
168
|
+
@content;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@mixin extend-rule($name) {
|
|
174
|
+
@extend #{'%shared-'+$name};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@mixin share-rule($name) {
|
|
178
|
+
$rule-name: '%shared-'+$name;
|
|
179
|
+
|
|
180
|
+
@at-root #{$rule-name} {
|
|
181
|
+
@content
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@mixin pseudo($pseudo) {
|
|
186
|
+
@at-root #{&}#{':#{$pseudo}'} {
|
|
187
|
+
@content
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@mixin utils-user-select($value) {
|
|
2
|
+
-moz-user-select: $value;
|
|
3
|
+
-webkit-user-select: $value;
|
|
4
|
+
-ms-user-select: $value;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@mixin utils-clearfix {
|
|
8
|
+
$selector: &;
|
|
9
|
+
|
|
10
|
+
@at-root {
|
|
11
|
+
#{$selector}::before,
|
|
12
|
+
#{$selector}::after {
|
|
13
|
+
display: table;
|
|
14
|
+
content: "";
|
|
15
|
+
}
|
|
16
|
+
#{$selector}::after {
|
|
17
|
+
clear: both
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin utils-vertical-center {
|
|
23
|
+
$selector: &;
|
|
24
|
+
|
|
25
|
+
@at-root {
|
|
26
|
+
#{$selector}::after {
|
|
27
|
+
display: inline-block;
|
|
28
|
+
content: "";
|
|
29
|
+
height: 100%;
|
|
30
|
+
vertical-align: middle
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin utils-ellipsis {
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
text-overflow: ellipsis;
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
@import "mixins/mixins";
|
|
2
|
+
@import "common/var";
|
|
3
|
+
|
|
4
|
+
@include b(notification) {
|
|
5
|
+
display: flex;
|
|
6
|
+
width: $--notification-width;
|
|
7
|
+
padding: $--notification-padding;
|
|
8
|
+
border-radius: $--notification-radius;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
border: 1px solid $--notification-border-color;
|
|
11
|
+
position: fixed;
|
|
12
|
+
background-color: $--color-white;
|
|
13
|
+
box-shadow: $--notification-shadow;
|
|
14
|
+
transition: opacity .3s, transform .3s, left .3s, right .3s, top 0.4s, bottom .3s;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
|
|
17
|
+
&.right {
|
|
18
|
+
right: 16px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.left {
|
|
22
|
+
left: 16px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@include e(group) {
|
|
26
|
+
margin-left: $--notification-group-margin-left;
|
|
27
|
+
margin-right: $--notification-group-margin-right;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@include e(title) {
|
|
31
|
+
font-weight: bold;
|
|
32
|
+
font-size: $--notification-title-font-size;
|
|
33
|
+
color: $--notification-title-color;
|
|
34
|
+
margin: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@include e(content) {
|
|
38
|
+
font-size: $--notification-content-font-size;
|
|
39
|
+
line-height: 21px;
|
|
40
|
+
margin: 6px 0 0 0;
|
|
41
|
+
color: $--notification-content-color;
|
|
42
|
+
text-align: justify;
|
|
43
|
+
|
|
44
|
+
p {
|
|
45
|
+
margin: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@include e(icon) {
|
|
50
|
+
height: $--notification-icon-size;
|
|
51
|
+
width: $--notification-icon-size;
|
|
52
|
+
font-size: $--notification-icon-size;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@include e(closeBtn) {
|
|
56
|
+
position: absolute;
|
|
57
|
+
top: 18px;
|
|
58
|
+
right: 15px;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
color: $--notification-close-color;
|
|
61
|
+
font-size: $--notification-close-font-size;
|
|
62
|
+
|
|
63
|
+
&:hover {
|
|
64
|
+
color: $--notification-close-hover-color;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.el-icon-success {
|
|
69
|
+
color: $--notification-success-icon-color;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.el-icon-error {
|
|
73
|
+
color: $--notification-danger-icon-color;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.el-icon-info {
|
|
77
|
+
color: $--notification-info-icon-color;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.el-icon-warning {
|
|
81
|
+
color: $--notification-warning-icon-color;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.el-notification-fade-enter {
|
|
86
|
+
&.right {
|
|
87
|
+
right: 0;
|
|
88
|
+
transform: translateX(100%);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&.left {
|
|
92
|
+
left: 0;
|
|
93
|
+
transform: translateX(-100%);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.el-notification-fade-leave-active {
|
|
98
|
+
opacity: 0;
|
|
99
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@import "mixins/mixins";
|
|
2
|
+
@import "common/var";
|
|
3
|
+
|
|
4
|
+
@include b(select-group) {
|
|
5
|
+
$gap: 20px;
|
|
6
|
+
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
|
|
10
|
+
@include e(wrap) {
|
|
11
|
+
position: relative;
|
|
12
|
+
list-style: none;
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
|
|
16
|
+
&:not(:last-of-type) {
|
|
17
|
+
padding-bottom: 24px;
|
|
18
|
+
|
|
19
|
+
&::after {
|
|
20
|
+
content: '';
|
|
21
|
+
position: absolute;
|
|
22
|
+
display: block;
|
|
23
|
+
left: $gap;
|
|
24
|
+
right: $gap;
|
|
25
|
+
bottom: 12px;
|
|
26
|
+
height: 1px;
|
|
27
|
+
background: $--border-color-light;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@include e(title) {
|
|
33
|
+
padding-left: $gap;
|
|
34
|
+
font-size: $--select-group-font-size;
|
|
35
|
+
color: $--select-group-color;
|
|
36
|
+
line-height: $--select-group-height;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
& .el-select-dropdown__item {
|
|
40
|
+
padding-left: $gap;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@import "mixins/mixins";
|
|
2
|
+
@import "common/var";
|
|
3
|
+
|
|
4
|
+
@include b(select-dropdown) {
|
|
5
|
+
@include e(item) {
|
|
6
|
+
font-size: $--select-font-size;
|
|
7
|
+
padding: 0 20px;
|
|
8
|
+
position: relative;
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
text-overflow: ellipsis;
|
|
12
|
+
color: $--select-option-color;
|
|
13
|
+
height: $--select-option-height;
|
|
14
|
+
line-height: $--select-option-height;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
|
|
18
|
+
@include when(disabled) {
|
|
19
|
+
color: $--select-option-disabled-color;
|
|
20
|
+
cursor: not-allowed;
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
background-color: $--color-white;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.hover, &:hover {
|
|
28
|
+
background-color: $--select-option-hover-background;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.selected {
|
|
32
|
+
color: $--select-option-selected-font-color;
|
|
33
|
+
font-weight: bold;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@import "mixins/mixins";
|
|
2
|
+
@import "common/var";
|
|
3
|
+
|
|
4
|
+
@include b(page-header) {
|
|
5
|
+
display: flex;
|
|
6
|
+
line-height: 24px;
|
|
7
|
+
|
|
8
|
+
@include e(left) {
|
|
9
|
+
display: flex;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
margin-right: 40px;
|
|
12
|
+
position: relative;
|
|
13
|
+
|
|
14
|
+
&::after {
|
|
15
|
+
content: "";
|
|
16
|
+
position: absolute;
|
|
17
|
+
width: 1px;
|
|
18
|
+
height: 16px;
|
|
19
|
+
right: -20px;
|
|
20
|
+
top: 50%;
|
|
21
|
+
transform: translateY(-50%);
|
|
22
|
+
background-color: $--border-color-base;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.el-icon-back {
|
|
26
|
+
font-size: 18px;
|
|
27
|
+
margin-right: 6px;
|
|
28
|
+
align-self: center;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include e(title) {
|
|
32
|
+
font-size: 14px;
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@include e(content) {
|
|
38
|
+
font-size: 18px;
|
|
39
|
+
color: $--color-text-primary;
|
|
40
|
+
}
|
|
41
|
+
}
|