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.
Files changed (303) hide show
  1. package/README.md +1 -1
  2. package/lib/alert.js +4 -4
  3. package/lib/aside.js +77 -77
  4. package/lib/autocomplete.js +159 -3940
  5. package/lib/avatar.js +108 -108
  6. package/lib/backtop.js +110 -110
  7. package/lib/badge.js +108 -108
  8. package/lib/breadcrumb-item.js +4 -4
  9. package/lib/breadcrumb.js +4 -4
  10. package/lib/button-group.js +4 -4
  11. package/lib/button.js +4 -4
  12. package/lib/calendar.js +46 -1545
  13. package/lib/card.js +96 -96
  14. package/lib/carousel-item.js +108 -452
  15. package/lib/carousel.js +116 -185
  16. package/lib/cascader-panel.js +187 -2270
  17. package/lib/cascader.js +275 -6452
  18. package/lib/checkbox-button.js +11 -43
  19. package/lib/checkbox-group.js +15 -47
  20. package/lib/checkbox.js +15 -47
  21. package/lib/col.js +2 -2
  22. package/lib/collapse-item.js +110 -815
  23. package/lib/collapse.js +108 -108
  24. package/lib/color-picker.js +153 -3953
  25. package/lib/container.js +88 -88
  26. package/lib/date-picker.js +419 -5230
  27. package/lib/descriptions-item.js +2 -2
  28. package/lib/descriptions.js +8 -63
  29. package/lib/dialog.js +22 -1200
  30. package/lib/divider.js +104 -104
  31. package/lib/drawer.js +105 -875
  32. package/lib/dropdown-item.js +11 -43
  33. package/lib/dropdown-menu.js +75 -2277
  34. package/lib/dropdown.js +136 -1072
  35. package/lib/element-ui.common.js +29785 -42723
  36. package/lib/empty.js +7 -603
  37. package/lib/fileUpload.js +109 -2477
  38. package/lib/footer.js +77 -77
  39. package/lib/form-item.js +28 -418
  40. package/lib/form.js +15 -29
  41. package/lib/header.js +77 -77
  42. package/lib/icon.js +4 -4
  43. package/lib/image.js +49 -1376
  44. package/lib/index.js +1 -1
  45. package/lib/infinite-scroll.js +21 -311
  46. package/lib/input-number.js +33 -1422
  47. package/lib/input.js +37 -507
  48. package/lib/link.js +4 -4
  49. package/lib/loading.js +67 -804
  50. package/lib/main.js +64 -64
  51. package/lib/menu-item-group.js +4 -4
  52. package/lib/menu-item.js +61 -2945
  53. package/lib/menu.js +54 -745
  54. package/lib/message-box.js +80 -2537
  55. package/lib/message.js +24 -1102
  56. package/lib/notification.js +25 -1102
  57. package/lib/option-group.js +11 -43
  58. package/lib/option.js +18 -394
  59. package/lib/page-header.js +87 -683
  60. package/lib/pagination.js +139 -6078
  61. package/lib/popconfirm.js +219 -3508
  62. package/lib/popover.js +99 -2624
  63. package/lib/progress.js +4 -4
  64. package/lib/radio-button.js +11 -43
  65. package/lib/radio-group.js +11 -43
  66. package/lib/radio.js +15 -47
  67. package/lib/rate.js +113 -756
  68. package/lib/result.js +4 -4
  69. package/lib/row.js +2 -2
  70. package/lib/scrollbar.js +50 -735
  71. package/lib/select.js +209 -4352
  72. package/lib/selectDisplayInput.js +108 -108
  73. package/lib/skeleton-item.js +2 -2
  74. package/lib/skeleton.js +108 -108
  75. package/lib/slider.js +120 -4266
  76. package/lib/spinner.js +4 -4
  77. package/lib/statistic.js +117 -9605
  78. package/lib/step.js +108 -108
  79. package/lib/steps.js +99 -514
  80. package/lib/subTitle.js +91 -91
  81. package/lib/submenu.js +121 -2442
  82. package/lib/switch.js +21 -476
  83. package/lib/tab-pane.js +4 -4
  84. package/lib/tabDialog.js +37 -1563
  85. package/lib/table-column.js +32 -880
  86. package/lib/table.js +424 -4467
  87. package/lib/tabs.js +12 -425
  88. package/lib/tag.js +4 -4
  89. package/lib/theme-chalk/README.md +33 -0
  90. package/lib/theme-chalk/base.css +1 -1
  91. package/lib/theme-chalk/gulpfile.js +27 -0
  92. package/lib/theme-chalk/index.css +1 -1
  93. package/lib/theme-chalk/package.json +35 -0
  94. package/lib/theme-chalk/src/alert.scss +147 -0
  95. package/lib/theme-chalk/src/aside.scss +7 -0
  96. package/lib/theme-chalk/src/autocomplete.scss +80 -0
  97. package/lib/theme-chalk/src/avatar.scss +51 -0
  98. package/lib/theme-chalk/src/backtop.scss +22 -0
  99. package/lib/theme-chalk/src/badge.scss +57 -0
  100. package/lib/theme-chalk/src/base.scss +2 -0
  101. package/lib/theme-chalk/src/breadcrumb.scss +55 -0
  102. package/lib/theme-chalk/src/button.scss +262 -0
  103. package/lib/theme-chalk/src/calendar.scss +79 -0
  104. package/lib/theme-chalk/src/card.scss +32 -0
  105. package/lib/theme-chalk/src/carousel-item.scss +50 -0
  106. package/lib/theme-chalk/src/carousel.scss +161 -0
  107. package/lib/theme-chalk/src/cascader-panel.scss +120 -0
  108. package/lib/theme-chalk/src/cascader.scss +182 -0
  109. package/lib/theme-chalk/src/checkbox.scss +359 -0
  110. package/lib/theme-chalk/src/col.scss +156 -0
  111. package/lib/theme-chalk/src/collapse.scss +63 -0
  112. package/lib/theme-chalk/src/color-picker.scss +384 -0
  113. package/lib/theme-chalk/src/common/popup.scss +42 -0
  114. package/lib/theme-chalk/src/common/transition.scss +99 -0
  115. package/lib/theme-chalk/src/common/var.scss +1028 -0
  116. package/lib/theme-chalk/src/container.scss +14 -0
  117. package/lib/theme-chalk/src/date-picker/date-picker.scss +97 -0
  118. package/lib/theme-chalk/src/date-picker/date-range-picker.scss +101 -0
  119. package/lib/theme-chalk/src/date-picker/date-table.scss +151 -0
  120. package/lib/theme-chalk/src/date-picker/month-table.scss +82 -0
  121. package/lib/theme-chalk/src/date-picker/picker-panel.scss +117 -0
  122. package/lib/theme-chalk/src/date-picker/picker.scss +197 -0
  123. package/lib/theme-chalk/src/date-picker/time-picker.scss +85 -0
  124. package/lib/theme-chalk/src/date-picker/time-range-picker.scss +31 -0
  125. package/lib/theme-chalk/src/date-picker/time-spinner.scss +110 -0
  126. package/lib/theme-chalk/src/date-picker/year-table.scss +51 -0
  127. package/lib/theme-chalk/src/date-picker.scss +12 -0
  128. package/lib/theme-chalk/src/descriptions-item.scss +42 -0
  129. package/lib/theme-chalk/src/descriptions.scss +111 -0
  130. package/lib/theme-chalk/src/dialog.scss +123 -0
  131. package/lib/theme-chalk/src/display.scss +12 -0
  132. package/lib/theme-chalk/src/divider.scss +47 -0
  133. package/lib/theme-chalk/src/drawer.scss +219 -0
  134. package/lib/theme-chalk/src/dropdown.scss +182 -0
  135. package/lib/theme-chalk/src/empty.scss +45 -0
  136. package/lib/theme-chalk/src/footer.scss +8 -0
  137. package/lib/theme-chalk/src/form.scss +167 -0
  138. package/lib/theme-chalk/src/header.scss +8 -0
  139. package/lib/theme-chalk/src/icon.scss +1167 -0
  140. package/lib/theme-chalk/src/image.scss +179 -0
  141. package/lib/theme-chalk/src/index.scss +90 -0
  142. package/lib/theme-chalk/src/input-number.scss +180 -0
  143. package/lib/theme-chalk/src/input.scss +360 -0
  144. package/lib/theme-chalk/src/link.scss +81 -0
  145. package/lib/theme-chalk/src/loading.scss +96 -0
  146. package/lib/theme-chalk/src/main.scss +12 -0
  147. package/lib/theme-chalk/src/menu.scss +289 -0
  148. package/lib/theme-chalk/src/message-box.scss +226 -0
  149. package/lib/theme-chalk/src/message.scss +120 -0
  150. package/lib/theme-chalk/src/mixins/_button.scss +81 -0
  151. package/lib/theme-chalk/src/mixins/config.scss +4 -0
  152. package/lib/theme-chalk/src/mixins/function.scss +44 -0
  153. package/lib/theme-chalk/src/mixins/mixins.scss +190 -0
  154. package/lib/theme-chalk/src/mixins/utils.scss +39 -0
  155. package/lib/theme-chalk/src/notification.scss +99 -0
  156. package/lib/theme-chalk/src/option-group.scss +42 -0
  157. package/lib/theme-chalk/src/option.scss +36 -0
  158. package/lib/theme-chalk/src/page-header.scss +41 -0
  159. package/lib/theme-chalk/src/pagination.scss +295 -0
  160. package/lib/theme-chalk/src/popconfirm.scss +16 -0
  161. package/lib/theme-chalk/src/popover.scss +40 -0
  162. package/lib/theme-chalk/src/popper.scss +101 -0
  163. package/lib/theme-chalk/src/progress.scss +141 -0
  164. package/lib/theme-chalk/src/radio-button.scss +113 -0
  165. package/lib/theme-chalk/src/radio-group.scss +9 -0
  166. package/lib/theme-chalk/src/radio.scss +199 -0
  167. package/lib/theme-chalk/src/rate.scss +49 -0
  168. package/lib/theme-chalk/src/reset.scss +79 -0
  169. package/lib/theme-chalk/src/result.scss +61 -0
  170. package/lib/theme-chalk/src/row.scss +43 -0
  171. package/lib/theme-chalk/src/scrollbar.scss +72 -0
  172. package/lib/theme-chalk/src/select-dropdown.scss +62 -0
  173. package/lib/theme-chalk/src/select.scss +152 -0
  174. package/lib/theme-chalk/src/skeleton-item.scss +84 -0
  175. package/lib/theme-chalk/src/skeleton.scss +40 -0
  176. package/lib/theme-chalk/src/slider.scss +250 -0
  177. package/lib/theme-chalk/src/spinner.scss +44 -0
  178. package/lib/theme-chalk/src/statistic.scss +38 -0
  179. package/lib/theme-chalk/src/step.scss +317 -0
  180. package/lib/theme-chalk/src/steps.scss +20 -0
  181. package/lib/theme-chalk/src/switch.scss +116 -0
  182. package/lib/theme-chalk/src/table-column.scss +97 -0
  183. package/lib/theme-chalk/src/table.scss +564 -0
  184. package/lib/theme-chalk/src/tabs.scss +602 -0
  185. package/lib/theme-chalk/src/tag.scss +163 -0
  186. package/lib/theme-chalk/src/time-picker.scss +8 -0
  187. package/lib/theme-chalk/src/time-select.scss +37 -0
  188. package/lib/theme-chalk/src/timeline-item.scss +86 -0
  189. package/lib/theme-chalk/src/timeline.scss +14 -0
  190. package/lib/theme-chalk/src/tooltip.scss +141 -0
  191. package/lib/theme-chalk/src/transfer.scss +227 -0
  192. package/lib/theme-chalk/src/tree.scss +123 -0
  193. package/lib/theme-chalk/src/upload.scss +603 -0
  194. package/lib/time-picker.js +285 -5013
  195. package/lib/time-select.js +181 -4949
  196. package/lib/timeline-item.js +108 -108
  197. package/lib/timeline.js +82 -82
  198. package/lib/tooltip.js +41 -2566
  199. package/lib/transfer.js +142 -2136
  200. package/lib/tree.js +55 -1372
  201. package/lib/treeSelect.js +106 -3421
  202. package/lib/upload.js +28 -1047
  203. package/package.json +3 -3
  204. package/packages/theme-chalk/gulpfile.js +1 -14
  205. package/packages/theme-chalk/src/common/var.scss +16 -16
  206. package/packages/theme-cy/gulpfile.js +1 -14
  207. package/src/index.js +1 -1
  208. package/lib/theme-chalk/alert.css +0 -1
  209. package/lib/theme-chalk/aside.css +0 -1
  210. package/lib/theme-chalk/autocomplete.css +0 -1
  211. package/lib/theme-chalk/avatar.css +0 -1
  212. package/lib/theme-chalk/backtop.css +0 -1
  213. package/lib/theme-chalk/badge.css +0 -1
  214. package/lib/theme-chalk/breadcrumb.css +0 -1
  215. package/lib/theme-chalk/button.css +0 -1
  216. package/lib/theme-chalk/calendar.css +0 -1
  217. package/lib/theme-chalk/card.css +0 -1
  218. package/lib/theme-chalk/carousel-item.css +0 -1
  219. package/lib/theme-chalk/carousel.css +0 -1
  220. package/lib/theme-chalk/cascader-panel.css +0 -1
  221. package/lib/theme-chalk/cascader.css +0 -1
  222. package/lib/theme-chalk/checkbox.css +0 -1
  223. package/lib/theme-chalk/col.css +0 -1
  224. package/lib/theme-chalk/collapse.css +0 -1
  225. package/lib/theme-chalk/color-picker.css +0 -1
  226. package/lib/theme-chalk/container.css +0 -1
  227. package/lib/theme-chalk/date-picker.css +0 -1
  228. package/lib/theme-chalk/descriptions-item.css +0 -1
  229. package/lib/theme-chalk/descriptions.css +0 -1
  230. package/lib/theme-chalk/dialog.css +0 -1
  231. package/lib/theme-chalk/display.css +0 -1
  232. package/lib/theme-chalk/divider.css +0 -1
  233. package/lib/theme-chalk/drawer.css +0 -1
  234. package/lib/theme-chalk/dropdown.css +0 -1
  235. package/lib/theme-chalk/empty.css +0 -1
  236. package/lib/theme-chalk/footer.css +0 -1
  237. package/lib/theme-chalk/form.css +0 -1
  238. package/lib/theme-chalk/header.css +0 -1
  239. package/lib/theme-chalk/icon.css +0 -1
  240. package/lib/theme-chalk/image.css +0 -1
  241. package/lib/theme-chalk/input-number.css +0 -1
  242. package/lib/theme-chalk/input.css +0 -1
  243. package/lib/theme-chalk/link.css +0 -1
  244. package/lib/theme-chalk/loading.css +0 -1
  245. package/lib/theme-chalk/main.css +0 -1
  246. package/lib/theme-chalk/menu.css +0 -1
  247. package/lib/theme-chalk/message-box.css +0 -1
  248. package/lib/theme-chalk/message.css +0 -1
  249. package/lib/theme-chalk/notification.css +0 -1
  250. package/lib/theme-chalk/option-group.css +0 -1
  251. package/lib/theme-chalk/option.css +0 -1
  252. package/lib/theme-chalk/page-header.css +0 -1
  253. package/lib/theme-chalk/pagination.css +0 -1
  254. package/lib/theme-chalk/popconfirm.css +0 -1
  255. package/lib/theme-chalk/popover.css +0 -1
  256. package/lib/theme-chalk/popper.css +0 -1
  257. package/lib/theme-chalk/progress.css +0 -1
  258. package/lib/theme-chalk/radio-button.css +0 -1
  259. package/lib/theme-chalk/radio-group.css +0 -1
  260. package/lib/theme-chalk/radio.css +0 -1
  261. package/lib/theme-chalk/rate.css +0 -1
  262. package/lib/theme-chalk/reset.css +0 -1
  263. package/lib/theme-chalk/result.css +0 -1
  264. package/lib/theme-chalk/row.css +0 -1
  265. package/lib/theme-chalk/scrollbar.css +0 -1
  266. package/lib/theme-chalk/select-dropdown.css +0 -1
  267. package/lib/theme-chalk/select.css +0 -1
  268. package/lib/theme-chalk/skeleton-item.css +0 -1
  269. package/lib/theme-chalk/skeleton.css +0 -1
  270. package/lib/theme-chalk/slider.css +0 -1
  271. package/lib/theme-chalk/spinner.css +0 -1
  272. package/lib/theme-chalk/statistic.css +0 -1
  273. package/lib/theme-chalk/step.css +0 -1
  274. package/lib/theme-chalk/steps.css +0 -1
  275. package/lib/theme-chalk/switch.css +0 -1
  276. package/lib/theme-chalk/table-column.css +0 -1
  277. package/lib/theme-chalk/table.css +0 -1
  278. package/lib/theme-chalk/tabs.css +0 -1
  279. package/lib/theme-chalk/tag.css +0 -1
  280. package/lib/theme-chalk/time-picker.css +0 -1
  281. package/lib/theme-chalk/time-select.css +0 -1
  282. package/lib/theme-chalk/timeline-item.css +0 -1
  283. package/lib/theme-chalk/timeline.css +0 -1
  284. package/lib/theme-chalk/tooltip.css +0 -1
  285. package/lib/theme-chalk/transfer.css +0 -1
  286. package/lib/theme-chalk/tree.css +0 -1
  287. package/lib/theme-chalk/upload.css +0 -1
  288. /package/lib/theme-chalk/{breadcrumb-item.css → src/breadcrumb-item.scss} +0 -0
  289. /package/lib/theme-chalk/{button-group.css → src/button-group.scss} +0 -0
  290. /package/lib/theme-chalk/{checkbox-button.css → src/checkbox-button.scss} +0 -0
  291. /package/lib/theme-chalk/{checkbox-group.css → src/checkbox-group.scss} +0 -0
  292. /package/lib/theme-chalk/{collapse-item.css → src/collapse-item.scss} +0 -0
  293. /package/lib/theme-chalk/{dropdown-item.css → src/dropdown-item.scss} +0 -0
  294. /package/lib/theme-chalk/{dropdown-menu.css → src/dropdown-menu.scss} +0 -0
  295. /package/lib/theme-chalk/{fonts → src/fonts}/element-icons.ttf +0 -0
  296. /package/lib/theme-chalk/{fonts → src/fonts}/element-icons.woff +0 -0
  297. /package/lib/theme-chalk/{form-item.css → src/form-item.scss} +0 -0
  298. /package/lib/theme-chalk/{infinite-scroll.css → src/infinite-scroll.scss} +0 -0
  299. /package/lib/theme-chalk/{infiniteScroll.css → src/infiniteScroll.scss} +0 -0
  300. /package/lib/theme-chalk/{menu-item-group.css → src/menu-item-group.scss} +0 -0
  301. /package/lib/theme-chalk/{menu-item.css → src/menu-item.scss} +0 -0
  302. /package/lib/theme-chalk/{submenu.css → src/submenu.scss} +0 -0
  303. /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
+ }