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,79 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+ @import "button";
4
+ @import "button-group";
5
+
6
+ @include b(calendar) {
7
+ background-color:#fff;
8
+
9
+ @include e(header) {
10
+ display: flex;
11
+ justify-content: space-between;
12
+ padding: 12px 20px;
13
+ border-bottom: $--table-border;
14
+ }
15
+
16
+ @include e(title) {
17
+ color: #000000;
18
+ align-self: center;
19
+ }
20
+
21
+ @include e(body) {
22
+ padding: 12px 20px 35px;
23
+ }
24
+ }
25
+
26
+ @include b(calendar-table) {
27
+ table-layout: fixed;
28
+ width: 100%;
29
+
30
+ thead th {
31
+ padding: 12px 0;
32
+ color: $--color-text-regular;
33
+ font-weight: normal;
34
+ }
35
+
36
+ &:not(.is-range) {
37
+ td.prev,
38
+ td.next {
39
+ color: $--color-text-placeholder;
40
+ }
41
+ }
42
+
43
+ td {
44
+ border-bottom: $--calendar-border;
45
+ border-right: $--calendar-border;
46
+ vertical-align: top;
47
+ transition: background-color 0.2s ease;
48
+
49
+ @include when(selected) {
50
+ background-color: $--calendar-selected-background-color;
51
+ }
52
+
53
+ @include when(today) {
54
+ color: $--color-primary;
55
+ }
56
+ }
57
+
58
+ tr:first-child td {
59
+ border-top: $--calendar-border;
60
+ }
61
+
62
+ tr td:first-child {
63
+ border-left: $--calendar-border;
64
+ }
65
+
66
+ tr.el-calendar-table__row--hide-border td {
67
+ border-top: none;
68
+ }
69
+
70
+ @include b(calendar-day) {
71
+ box-sizing: border-box;
72
+ padding: 8px;
73
+ height: $--calendar-cell-width;
74
+ &:hover {
75
+ cursor: pointer;
76
+ background-color: $--calendar-selected-background-color;
77
+ }
78
+ }
79
+ }
@@ -0,0 +1,32 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(card) {
5
+ border-radius: $--card-border-radius;
6
+ border: 1px solid $--card-border-color;
7
+ background-color: $--color-white;
8
+ overflow: hidden;
9
+ color: $--color-text-primary;
10
+ transition: 0.3s;
11
+
12
+ @include when(always-shadow) {
13
+ box-shadow: $--box-shadow-light;
14
+ }
15
+
16
+ @include when(hover-shadow) {
17
+ &:hover,
18
+ &:focus {
19
+ box-shadow: $--box-shadow-light;
20
+ }
21
+ }
22
+
23
+ @include e(header) {
24
+ padding: #{$--card-padding - 2 $--card-padding};
25
+ border-bottom: 1px solid $--card-border-color;
26
+ box-sizing: border-box;
27
+ }
28
+
29
+ @include e(body) {
30
+ padding: $--card-padding;
31
+ }
32
+ }
@@ -0,0 +1,50 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(carousel) {
5
+ @include e(item) {
6
+ position: absolute;
7
+ top: 0;
8
+ left: 0;
9
+ width: 100%;
10
+ height: 100%;
11
+ display: inline-block;
12
+ overflow: hidden;
13
+ z-index: #{$--index-normal - 1};
14
+
15
+ @include when(active) {
16
+ z-index: #{$--index-normal + 1};
17
+ }
18
+
19
+ @include when(animating) {
20
+ transition: transform .4s ease-in-out;
21
+ }
22
+
23
+ @include m(card) {
24
+ width: 50%;
25
+ transition: transform .4s ease-in-out;
26
+ &.is-in-stage {
27
+ cursor: pointer;
28
+ z-index: $--index-normal;
29
+ &:hover .el-carousel__mask,
30
+ &.is-hover .el-carousel__mask {
31
+ opacity: 0.12;
32
+ }
33
+ }
34
+ &.is-active {
35
+ z-index: #{$--index-normal + 1};
36
+ }
37
+ }
38
+ }
39
+
40
+ @include e(mask) {
41
+ position: absolute;
42
+ width: 100%;
43
+ height: 100%;
44
+ top: 0;
45
+ left: 0;
46
+ background-color: $--color-white;
47
+ opacity: 0.24;
48
+ transition: .2s;
49
+ }
50
+ }
@@ -0,0 +1,161 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(carousel) {
5
+ position: relative;
6
+
7
+ @include m(horizontal) {
8
+ overflow-x: hidden;
9
+ }
10
+
11
+ @include m(vertical) {
12
+ overflow-y: hidden;
13
+ }
14
+
15
+ @include e(container) {
16
+ position: relative;
17
+ height: 300px;
18
+ }
19
+
20
+ @include e(arrow) {
21
+ border: none;
22
+ outline: none;
23
+ padding: 0;
24
+ margin: 0;
25
+ height: $--carousel-arrow-size;
26
+ width: $--carousel-arrow-size;
27
+ cursor: pointer;
28
+ transition: .3s;
29
+ border-radius: 50%;
30
+ background-color: $--carousel-arrow-background;
31
+ color: $--color-white;
32
+ position: absolute;
33
+ top: 50%;
34
+ z-index: 10;
35
+ transform: translateY(-50%);
36
+ text-align: center;
37
+ font-size: $--carousel-arrow-font-size;
38
+
39
+ @include m(left) {
40
+ left: 16px;
41
+ }
42
+
43
+ @include m(right) {
44
+ right: 16px;
45
+ }
46
+
47
+ &:hover {
48
+ background-color: $--carousel-arrow-hover-background;
49
+ }
50
+
51
+ & i {
52
+ cursor: pointer;
53
+ }
54
+ }
55
+
56
+ @include e(indicators) {
57
+ position: absolute;
58
+ list-style: none;
59
+ margin: 0;
60
+ padding: 0;
61
+ z-index: #{$--index-normal + 1};
62
+
63
+ @include m(horizontal) {
64
+ bottom: 0;
65
+ left: 50%;
66
+ transform: translateX(-50%);
67
+ }
68
+
69
+ @include m(vertical) {
70
+ right: 0;
71
+ top: 50%;
72
+ transform: translateY(-50%);
73
+ }
74
+
75
+ @include m(outside) {
76
+ bottom: #{$--carousel-indicator-height + $--carousel-indicator-padding-vertical * 2};
77
+ text-align: center;
78
+ position: static;
79
+ transform: none;
80
+ .el-carousel__indicator:hover button {
81
+ opacity: 0.64;
82
+ }
83
+ button {
84
+ background-color: $--carousel-indicator-out-color;
85
+ opacity: 0.24;
86
+ }
87
+ }
88
+
89
+ @include m(labels) {
90
+ left: 0;
91
+ right: 0;
92
+ transform: none;
93
+ text-align: center;
94
+
95
+ .el-carousel__button {
96
+ height: auto;
97
+ width: auto;
98
+ padding: 2px 18px;
99
+ font-size: 12px;
100
+ }
101
+
102
+ .el-carousel__indicator {
103
+ padding: 6px 4px;
104
+ }
105
+ }
106
+ }
107
+
108
+ @include e(indicator) {
109
+ background-color: transparent;
110
+ cursor: pointer;
111
+
112
+ &:hover button {
113
+ opacity: 0.72;
114
+ }
115
+
116
+ @include m(horizontal) {
117
+ display: inline-block;
118
+ padding: $--carousel-indicator-padding-vertical $--carousel-indicator-padding-horizontal;
119
+ }
120
+
121
+ @include m(vertical) {
122
+ padding: $--carousel-indicator-padding-horizontal $--carousel-indicator-padding-vertical;
123
+ .el-carousel__button {
124
+ width: $--carousel-indicator-height;
125
+ height: #{$--carousel-indicator-width / 2};
126
+ }
127
+ }
128
+
129
+ @include when(active) {
130
+ button {
131
+ opacity: 1;
132
+ }
133
+ }
134
+ }
135
+
136
+ @include e(button) {
137
+ display: block;
138
+ opacity: 0.48;
139
+ width: $--carousel-indicator-width;
140
+ height: $--carousel-indicator-height;
141
+ background-color: $--color-white;
142
+ border: none;
143
+ outline: none;
144
+ padding: 0;
145
+ margin: 0;
146
+ cursor: pointer;
147
+ transition: .3s;
148
+ }
149
+ }
150
+
151
+ .carousel-arrow-left-enter,
152
+ .carousel-arrow-left-leave-active {
153
+ transform: translateY(-50%) translateX(-10px);
154
+ opacity: 0;
155
+ }
156
+
157
+ .carousel-arrow-right-enter,
158
+ .carousel-arrow-right-leave-active {
159
+ transform: translateY(-50%) translateX(10px);
160
+ opacity: 0;
161
+ }
@@ -0,0 +1,120 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+ @import "./checkbox";
4
+ @import "./radio";
5
+ @import "./scrollbar";
6
+
7
+ @include b(cascader-panel) {
8
+ display: flex;
9
+ border-radius: $--cascader-menu-radius;
10
+ font-size: $--cascader-menu-font-size;
11
+
12
+ @include when(bordered) {
13
+ border: $--cascader-menu-border;
14
+ border-radius: $--cascader-menu-radius;
15
+ }
16
+ }
17
+
18
+ @include b(cascader-menu) {
19
+ min-width: 180px;
20
+ box-sizing: border-box;
21
+ color: $--cascader-menu-font-color;
22
+ border-right: $--cascader-menu-border;
23
+
24
+ &:last-child {
25
+ border-right: none;
26
+ .el-cascader-node {
27
+ padding-right: 20px;
28
+ }
29
+ }
30
+
31
+ @include e(wrap) {
32
+ height: 204px;
33
+ }
34
+
35
+ @include e(list) {
36
+ position: relative;
37
+ min-height: 100%;
38
+ margin: 0;
39
+ padding: 6px 0;
40
+ list-style: none;
41
+ box-sizing: border-box;
42
+ }
43
+
44
+ @include e(hover-zone) {
45
+ position: absolute;
46
+ top: 0;
47
+ left: 0;
48
+ width: 100%;
49
+ height: 100%;
50
+ pointer-events: none;
51
+ }
52
+
53
+ @include e(empty-text) {
54
+ position: absolute;
55
+ top: 50%;
56
+ left: 50%;
57
+ transform: translate(-50%, -50%);
58
+ text-align: center;
59
+ color: $--cascader-color-empty;
60
+ }
61
+ }
62
+
63
+ @include b(cascader-node) {
64
+ position: relative;
65
+ display: flex;
66
+ align-items: center;
67
+ padding: 0 30px 0 20px;
68
+ height: 34px;
69
+ line-height: 34px;
70
+ outline: none;
71
+
72
+ &.is-selectable.in-active-path {
73
+ color: $--cascader-menu-font-color;
74
+ }
75
+
76
+ &.in-active-path,
77
+ &.is-selectable.in-checked-path,
78
+ &.is-active {
79
+ color: $--cascader-menu-selected-font-color;
80
+ font-weight: bold;
81
+ }
82
+
83
+ &:not(.is-disabled) {
84
+ cursor: pointer;
85
+ &:hover, &:focus {
86
+ background: $--cascader-node-background-hover;
87
+ }
88
+ }
89
+
90
+ @include when(disabled) {
91
+ color: $--cascader-node-color-disabled;
92
+ cursor: not-allowed;
93
+ }
94
+
95
+ @include e(prefix) {
96
+ position: absolute;
97
+ left: 10px;
98
+ }
99
+
100
+ @include e(postfix) {
101
+ position: absolute;
102
+ right: 10px;
103
+ }
104
+
105
+ @include e(label) {
106
+ flex: 1;
107
+ padding: 0 10px;
108
+ white-space: nowrap;
109
+ overflow: hidden;
110
+ text-overflow: ellipsis;
111
+ }
112
+
113
+ > .el-radio {
114
+ margin-right: 0;
115
+
116
+ .el-radio__label {
117
+ padding-left: 0;
118
+ }
119
+ }
120
+ }
@@ -0,0 +1,182 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+ @import "./input";
4
+ @import "./popper";
5
+ @import "./tag";
6
+ @import "./cascader-panel";
7
+
8
+ @include b(cascader) {
9
+ display: inline-block;
10
+ position: relative;
11
+ font-size: $--font-size-base;
12
+ line-height: $--input-height;
13
+
14
+ &:not(.is-disabled):hover {
15
+ .el-input__inner {
16
+ cursor: pointer;
17
+ border-color: $--input-hover-border;
18
+ }
19
+ }
20
+
21
+ .el-input {
22
+ cursor: pointer;
23
+
24
+ .el-input__inner {
25
+ text-overflow: ellipsis;
26
+
27
+ &:focus {
28
+ border-color: $--input-focus-border;
29
+ }
30
+ }
31
+
32
+ .el-icon-arrow-down {
33
+ transition: transform .3s;
34
+ font-size: 14px;
35
+
36
+ @include when(reverse) {
37
+ transform: rotateZ(180deg);
38
+ }
39
+ }
40
+
41
+ .el-icon-circle-close:hover {
42
+ color: $--input-clear-hover-color;
43
+ }
44
+
45
+ @include when(focus) {
46
+ .el-input__inner {
47
+ border-color: $--input-focus-border;
48
+ }
49
+ }
50
+ }
51
+
52
+ @include m(medium) {
53
+ font-size: $--input-medium-font-size;
54
+ line-height: $--input-medium-height;
55
+ }
56
+
57
+ @include m(small) {
58
+ font-size: $--input-small-font-size;
59
+ line-height: $--input-small-height;
60
+ }
61
+
62
+ @include m(mini) {
63
+ font-size: $--input-mini-font-size;
64
+ line-height: $--input-mini-height;
65
+ }
66
+
67
+ @include when(disabled) {
68
+ .el-cascader__label {
69
+ z-index: #{$--index-normal + 1};
70
+ color: $--disabled-color-base;
71
+ }
72
+ }
73
+
74
+ @include e(dropdown) {
75
+ margin: 5px 0;
76
+ font-size: $--cascader-menu-font-size;
77
+ background: $--cascader-menu-fill;
78
+ border: $--cascader-menu-border;
79
+ border-radius: $--cascader-menu-radius;
80
+ box-shadow: $--cascader-menu-shadow;
81
+ }
82
+
83
+ @include e(tags) {
84
+ position: absolute;
85
+ left: 0;
86
+ right: 30px;
87
+ top: 50%;
88
+ transform: translateY(-50%);
89
+ display: flex;
90
+ flex-wrap: wrap;
91
+ line-height: normal;
92
+ text-align: left;
93
+ box-sizing: border-box;
94
+
95
+ .el-tag {
96
+ display: inline-flex;
97
+ align-items: center;
98
+ max-width: 100%;
99
+ margin: 2px 0 2px 6px;
100
+ text-overflow: ellipsis;
101
+ background: $--cascader-tag-background;
102
+
103
+ &:not(.is-hit) {
104
+ border-color: transparent;
105
+ }
106
+
107
+ > span {
108
+ flex: 1;
109
+ overflow: hidden;
110
+ text-overflow: ellipsis;
111
+ }
112
+
113
+ .el-icon-close {
114
+ flex: none;
115
+ background-color: $--color-text-placeholder;
116
+ color: $--color-white;
117
+
118
+ &:hover {
119
+ background-color: $--color-text-secondary;
120
+ }
121
+ }
122
+ }
123
+ }
124
+
125
+ @include e(suggestion-panel) {
126
+ border-radius: $--cascader-menu-radius;
127
+ }
128
+
129
+ @include e(suggestion-list) {
130
+ max-height: 204px;
131
+ margin: 0;
132
+ padding: 6px 0;
133
+ font-size: $--font-size-base;
134
+ color: $--cascader-menu-font-color;
135
+ text-align: center;
136
+ }
137
+
138
+ @include e(suggestion-item) {
139
+ display: flex;
140
+ justify-content: space-between;
141
+ align-items: center;
142
+ height: 34px;
143
+ padding: 0 15px;
144
+ text-align: left;
145
+ outline: none;
146
+ cursor: pointer;
147
+
148
+ &:hover, &:focus {
149
+ background: $--cascader-node-background-hover;
150
+ }
151
+
152
+ &.is-checked {
153
+ color: $--cascader-menu-selected-font-color;
154
+ font-weight: bold;
155
+ }
156
+
157
+ > span {
158
+ margin-right: 10px;
159
+ }
160
+ }
161
+
162
+ @include e(empty-text) {
163
+ margin: 10px 0;
164
+ color: $--cascader-color-empty;
165
+ }
166
+
167
+ @include e(search-input) {
168
+ flex: 1;
169
+ height: 24px;
170
+ min-width: 60px;
171
+ margin: 2px 0 2px 15px;
172
+ padding: 0;
173
+ color: $--cascader-menu-font-color;
174
+ border: none;
175
+ outline: none;
176
+ box-sizing: border-box;
177
+
178
+ &::placeholder {
179
+ color: $--color-text-placeholder;
180
+ }
181
+ }
182
+ }