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,123 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+ @import "common/transition";
4
+ @import "checkbox";
5
+
6
+ @include b(tree) {
7
+ position: relative;
8
+ cursor: default;
9
+ background: $--color-white;
10
+ color: $--tree-font-color;
11
+
12
+ @include e(empty-block) {
13
+ position: relative;
14
+ min-height: 60px;
15
+ text-align: center;
16
+ width: 100%;
17
+ height: 100%;
18
+ }
19
+
20
+ @include e(empty-text) {
21
+ position: absolute;
22
+ left: 50%;
23
+ top: 50%;
24
+ transform: translate(-50%, -50%);
25
+ color: $--color-text-secondary;
26
+ font-size: $--font-size-base;
27
+ }
28
+
29
+ @include e(drop-indicator) {
30
+ position: absolute;
31
+ left: 0;
32
+ right: 0;
33
+ height: 1px;
34
+ background-color: $--color-primary;
35
+ }
36
+ }
37
+
38
+ @include b(tree-node) {
39
+ white-space: nowrap;
40
+ outline: none;
41
+ &:focus { /* focus */
42
+ > .el-tree-node__content {
43
+ background-color: $--tree-node-hover-background-color;
44
+ }
45
+ }
46
+
47
+ @include when(drop-inner) {
48
+ > .el-tree-node__content .el-tree-node__label {
49
+ background-color: $--color-primary;
50
+ color: #fff;
51
+ }
52
+ }
53
+
54
+ @include e(content) {
55
+ display: flex;
56
+ align-items: center;
57
+ height: 26px;
58
+ cursor: pointer;
59
+
60
+ & > .el-tree-node__expand-icon {
61
+ padding: 6px;
62
+ }
63
+ & > label.el-checkbox {
64
+ margin-right: 8px;
65
+ }
66
+ &:hover {
67
+ background-color: $--tree-node-hover-background-color;
68
+ }
69
+
70
+ .el-tree.is-dragging & {
71
+ cursor: move;
72
+
73
+ & * {
74
+ pointer-events: none;
75
+ }
76
+ }
77
+
78
+ .el-tree.is-dragging.is-drop-not-allow & {
79
+ cursor: not-allowed;
80
+ }
81
+ }
82
+
83
+ @include e(expand-icon) {
84
+ cursor: pointer;
85
+ color: $--tree-expand-icon-color;
86
+ font-size: 12px;
87
+
88
+ transform: rotate(0deg);
89
+ transition: transform 0.3s ease-in-out;
90
+
91
+ &.expanded {
92
+ transform: rotate(90deg);
93
+ }
94
+
95
+ &.is-leaf {
96
+ color: transparent;
97
+ cursor: default;
98
+ }
99
+ }
100
+
101
+ @include e(label) {
102
+ font-size: $--font-size-base;
103
+ }
104
+
105
+ @include e(loading-icon) {
106
+ margin-right: 8px;
107
+ font-size: $--font-size-base;
108
+ color: $--tree-expand-icon-color;
109
+ }
110
+
111
+ & > .el-tree-node__children {
112
+ overflow: hidden;
113
+ background-color: transparent;
114
+ }
115
+
116
+ &.is-expanded > .el-tree-node__children {
117
+ display: block;
118
+ }
119
+ }
120
+
121
+ .el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
122
+ background-color: mix($--color-white, $--color-primary, 92%);
123
+ }
@@ -0,0 +1,603 @@
1
+ @import "mixins/mixins";
2
+ @import "progress";
3
+ @import "common/var";
4
+
5
+ @include b(upload) {
6
+ display: inline-block;
7
+ text-align: center;
8
+ cursor: pointer;
9
+ outline: none;
10
+ @include e(input) {
11
+ display: none;
12
+ }
13
+
14
+ @include e(tip) {
15
+ font-size: 12px;
16
+ color: $--color-text-regular;
17
+ margin-top: 7px;
18
+ }
19
+
20
+ iframe {
21
+ position: absolute;
22
+ z-index: -1;
23
+ top: 0;
24
+ left: 0;
25
+ opacity: 0;
26
+ filter: alpha(opacity=0);
27
+ }
28
+
29
+ /* 照片墙模式 */
30
+ @include m(picture-card) {
31
+ background-color: #fbfdff;
32
+ border: 1px dashed #c0ccda;
33
+ border-radius: 6px;
34
+ box-sizing: border-box;
35
+ width: 148px;
36
+ height: 148px;
37
+ cursor: pointer;
38
+ line-height: 146px;
39
+ vertical-align: top;
40
+
41
+ i {
42
+ font-size: 28px;
43
+ color: #8c939d;
44
+ }
45
+
46
+ &:hover {
47
+ border-color: $--color-primary;
48
+ color: $--color-primary;
49
+ }
50
+ }
51
+ &:focus {
52
+ border-color: $--color-primary;
53
+ color: $--color-primary;
54
+
55
+ .el-upload-dragger {
56
+ border-color: $--color-primary;
57
+ }
58
+ }
59
+ }
60
+
61
+ @include b(upload-dragger) {
62
+ background-color: #fff;
63
+ border: 1px dashed #d9d9d9;
64
+ border-radius: 6px;
65
+ box-sizing: border-box;
66
+ width: 360px;
67
+ height: 180px;
68
+ text-align: center;
69
+ cursor: pointer;
70
+ position: relative;
71
+ overflow: hidden;
72
+
73
+ .el-icon-upload {
74
+ font-size: 67px;
75
+ color: $--color-text-placeholder;
76
+ margin: 40px 0 16px;
77
+ line-height: 50px;
78
+ }
79
+
80
+ + .el-upload__tip {
81
+ text-align: center;
82
+ }
83
+
84
+ ~ .el-upload__files {
85
+ border-top: $--border-base;
86
+ margin-top: 7px;
87
+ padding-top: 5px;
88
+ }
89
+
90
+ .el-upload__text {
91
+ color: $--color-text-regular;
92
+ font-size: 14px;
93
+ text-align: center;
94
+
95
+ em {
96
+ color: $--color-primary;
97
+ font-style: normal;
98
+ }
99
+ }
100
+
101
+ &:hover {
102
+ border-color: $--color-primary;
103
+ }
104
+
105
+ @include when(dragover) {
106
+ background-color: rgba(32, 159, 255, .06);
107
+ border: 2px dashed $--color-primary;
108
+ }
109
+ }
110
+
111
+ @include b(upload-list) {
112
+ margin: 0;
113
+ padding: 0;
114
+ list-style: none;
115
+
116
+ @include e(item) {
117
+ transition: all .5s cubic-bezier(.55,0,.1,1);
118
+ font-size: 14px;
119
+ color: $--color-text-regular;
120
+ line-height: 1.8;
121
+ margin-top: 5px;
122
+ position: relative;
123
+ box-sizing: border-box;
124
+ border-radius: 4px;
125
+ width: 100%;
126
+
127
+ .el-progress {
128
+ position: absolute;
129
+ top: 20px;
130
+ width: 100%;
131
+ }
132
+
133
+ .el-progress__text {
134
+ position: absolute;
135
+ right: 0;
136
+ top: -13px;
137
+ }
138
+
139
+ .el-progress-bar {
140
+ margin-right: 0;
141
+ padding-right: 0;
142
+ }
143
+
144
+ &:first-child {
145
+ margin-top: 10px;
146
+ }
147
+
148
+ & .el-icon-upload-success {
149
+ color: $--color-success;
150
+ }
151
+
152
+ .el-icon-close {
153
+ display: none;
154
+ position: absolute;
155
+ top: 5px;
156
+ right: 5px;
157
+ cursor: pointer;
158
+ opacity: .75;
159
+ color: $--color-text-regular;
160
+ //transform: scale(.7);
161
+
162
+ &:hover {
163
+ opacity: 1;
164
+ }
165
+ }
166
+
167
+ & .el-icon-close-tip {
168
+ display: none;
169
+ position: absolute;
170
+ top: 5px;
171
+ right: 5px;
172
+ font-size: 12px;
173
+ cursor: pointer;
174
+ opacity: 1;
175
+ color: $--color-primary;
176
+ }
177
+
178
+ &:hover {
179
+ background-color: $--background-color-base;
180
+
181
+ .el-icon-close {
182
+ display: inline-block;
183
+ }
184
+
185
+ .el-progress__text {
186
+ display: none;
187
+ }
188
+ }
189
+
190
+ @include when(success) {
191
+ .el-upload-list__item-status-label {
192
+ display: block;
193
+ }
194
+
195
+ .el-upload-list__item-name:hover, .el-upload-list__item-name:focus {
196
+ color: $--link-hover-color;
197
+ cursor: pointer;
198
+ }
199
+
200
+ &:focus:not(:hover) { /* 键盘focus */
201
+ .el-icon-close-tip {
202
+ display: inline-block;
203
+ }
204
+ }
205
+
206
+ &:not(.focusing):focus, &:active { /* click时 */
207
+ outline-width: 0;
208
+ .el-icon-close-tip {
209
+ display: none;
210
+ }
211
+ }
212
+
213
+ &:hover, &:focus {
214
+ .el-upload-list__item-status-label {
215
+ display: none;
216
+ }
217
+ }
218
+ }
219
+ }
220
+
221
+ @include when(disabled) {
222
+ .el-upload-list__item:hover .el-upload-list__item-status-label {
223
+ display: block;
224
+ }
225
+ }
226
+
227
+ @include e(item-name) {
228
+ color: $--color-text-regular;
229
+ display: block;
230
+ margin-right: 40px;
231
+ overflow: hidden;
232
+ padding-left: 4px;
233
+ text-overflow: ellipsis;
234
+ transition: color .3s;
235
+ white-space: nowrap;
236
+
237
+ [class^="el-icon"] {
238
+ height: 100%;
239
+ margin-right: 7px;
240
+ color: $--color-text-secondary;
241
+ line-height: inherit;
242
+ }
243
+ }
244
+
245
+ @include e(item-status-label) {
246
+ position: absolute;
247
+ right: 5px;
248
+ top: 0;
249
+ line-height: inherit;
250
+ display: none;
251
+ }
252
+
253
+ @include e(item-delete) {
254
+ position: absolute;
255
+ right: 10px;
256
+ top: 0;
257
+ font-size: 12px;
258
+ color: $--color-text-regular;
259
+ display: none;
260
+
261
+ &:hover {
262
+ color: $--color-primary;
263
+ }
264
+ }
265
+
266
+ @include m(picture-card) {
267
+ margin: 0;
268
+ display: inline;
269
+ vertical-align: top;
270
+
271
+ .el-upload-list__item {
272
+ overflow: hidden;
273
+ background-color: #fff;
274
+ border: 1px solid #c0ccda;
275
+ border-radius: 6px;
276
+ box-sizing: border-box;
277
+ width: 148px;
278
+ height: 148px;
279
+ margin: 0 8px 8px 0;
280
+ display: inline-block;
281
+
282
+ .el-icon-check,
283
+ .el-icon-circle-check {
284
+ color: $--color-white;
285
+ }
286
+
287
+ .el-icon-close {
288
+ display: none;
289
+ }
290
+ &:hover {
291
+ .el-upload-list__item-status-label {
292
+ display: none;
293
+ }
294
+
295
+ .el-progress__text {
296
+ display: block;
297
+ }
298
+ }
299
+ }
300
+
301
+ .el-upload-list__item-name {
302
+ display: none;
303
+ }
304
+
305
+ .el-upload-list__item-thumbnail {
306
+ width: 100%;
307
+ height: 100%;
308
+ }
309
+
310
+ .el-upload-list__item-status-label {
311
+ position: absolute;
312
+ right: -15px;
313
+ top: -6px;
314
+ width: 40px;
315
+ height: 24px;
316
+ background: #13ce66;
317
+ text-align: center;
318
+ transform: rotate(45deg);
319
+ box-shadow: 0 0 1pc 1px rgba(0,0,0,0.2);
320
+
321
+ i {
322
+ font-size: 12px;
323
+ margin-top: 11px;
324
+ transform: rotate(-45deg);
325
+ }
326
+ }
327
+
328
+ .el-upload-list__item-actions {
329
+ position: absolute;
330
+ width: 100%;
331
+ height: 100%;
332
+ left: 0;
333
+ top: 0;
334
+ cursor: default;
335
+ text-align: center;
336
+ color: #fff;
337
+ opacity: 0;
338
+ font-size: 20px;
339
+ background-color: rgba(0, 0, 0, .5);
340
+ transition: opacity .3s;
341
+ &::after {
342
+ display: inline-block;
343
+ content: "";
344
+ height: 100%;
345
+ vertical-align: middle
346
+ }
347
+
348
+ span {
349
+ display: none;
350
+ cursor: pointer;
351
+ }
352
+
353
+ span + span {
354
+ margin-left: 15px;
355
+ }
356
+
357
+ .el-upload-list__item-delete {
358
+ position: static;
359
+ font-size: inherit;
360
+ color: inherit;
361
+ }
362
+
363
+ &:hover {
364
+ opacity: 1;
365
+ span {
366
+ display: inline-block;
367
+ }
368
+ }
369
+ }
370
+
371
+ .el-progress {
372
+ top: 50%;
373
+ left: 50%;
374
+ transform: translate(-50%, -50%);
375
+ bottom: auto;
376
+ width: 126px;
377
+
378
+ .el-progress__text {
379
+ top: 50%;
380
+ }
381
+ }
382
+ }
383
+
384
+ @include m(picture) {
385
+ .el-upload-list__item {
386
+ overflow: hidden;
387
+ z-index: 0;
388
+ background-color: #fff;
389
+ border: 1px solid #c0ccda;
390
+ border-radius: 6px;
391
+ box-sizing: border-box;
392
+ margin-top: 10px;
393
+ padding: 10px 10px 10px 90px;
394
+ height: 92px;
395
+
396
+ .el-icon-check,
397
+ .el-icon-circle-check {
398
+ color: $--color-white;
399
+ }
400
+
401
+ &:hover {
402
+ .el-upload-list__item-status-label {
403
+ background: transparent;
404
+ box-shadow: none;
405
+ top: -2px;
406
+ right: -12px;
407
+ }
408
+
409
+ .el-progress__text {
410
+ display: block;
411
+ }
412
+ }
413
+
414
+ &.is-success {
415
+ .el-upload-list__item-name {
416
+ line-height: 70px;
417
+ margin-top: 0;
418
+ i {
419
+ display: none;
420
+ }
421
+ }
422
+ }
423
+ }
424
+
425
+ .el-upload-list__item-thumbnail {
426
+ vertical-align: middle;
427
+ display: inline-block;
428
+ width: 70px;
429
+ height: 70px;
430
+ float: left;
431
+ position: relative;
432
+ z-index: 1;
433
+ margin-left: -80px;
434
+ background-color: $--color-white
435
+ }
436
+
437
+ .el-upload-list__item-name {
438
+ display: block;
439
+ margin-top: 20px;
440
+
441
+ i {
442
+ font-size: 70px;
443
+ line-height: 1;
444
+ position: absolute;
445
+ left: 9px;
446
+ top: 10px;
447
+ }
448
+ }
449
+
450
+ .el-upload-list__item-status-label {
451
+ position: absolute;
452
+ right: -17px;
453
+ top: -7px;
454
+ width: 46px;
455
+ height: 26px;
456
+ background: #13ce66;
457
+ text-align: center;
458
+ transform: rotate(45deg);
459
+ box-shadow: 0 1px 1px #ccc;
460
+
461
+ i {
462
+ font-size: 12px;
463
+ margin-top: 12px;
464
+ transform: rotate(-45deg);
465
+ }
466
+ }
467
+
468
+ .el-progress {
469
+ position: relative;
470
+ top: -7px;
471
+ }
472
+ }
473
+ }
474
+
475
+ @include b(upload-cover) {
476
+ position: absolute;
477
+ left: 0;
478
+ top: 0;
479
+ width: 100%;
480
+ height: 100%;
481
+ overflow: hidden;
482
+ z-index: 10;
483
+ cursor: default;
484
+ @include utils-vertical-center;
485
+
486
+ img {
487
+ display: block;
488
+ width: 100%;
489
+ height: 100%;
490
+ }
491
+
492
+ @include e(label) {
493
+ position: absolute;
494
+ right: -15px;
495
+ top: -6px;
496
+ width: 40px;
497
+ height: 24px;
498
+ background: #13ce66;
499
+ text-align: center;
500
+ transform: rotate(45deg);
501
+ box-shadow: 0 0 1pc 1px rgba(0,0,0,0.2);
502
+
503
+ i {
504
+ font-size: 12px;
505
+ margin-top: 11px;
506
+ transform: rotate(-45deg);
507
+ color: #fff;
508
+ }
509
+ }
510
+
511
+ @include e(progress) {
512
+ display: inline-block;
513
+ vertical-align: middle;
514
+ position: static;
515
+ width: 243px;
516
+
517
+ + .el-upload__inner {
518
+ opacity: 0;
519
+ }
520
+ }
521
+
522
+ @include e(content) {
523
+ position: absolute;
524
+ top: 0;
525
+ left: 0;
526
+ width: 100%;
527
+ height: 100%;
528
+ }
529
+
530
+ @include e(interact) {
531
+ position: absolute;
532
+ bottom: 0;
533
+ left: 0;
534
+ width: 100%;
535
+ height: 100%;
536
+ background-color: rgba(#000, .72);
537
+ text-align: center;
538
+
539
+ .btn {
540
+ display: inline-block;
541
+ color: $--color-white;
542
+ font-size: 14px;
543
+ cursor: pointer;
544
+ vertical-align: middle;
545
+ transition: $--md-fade-transition;
546
+ margin-top: 60px;
547
+
548
+ i {
549
+ margin-top: 0;
550
+ }
551
+
552
+ span {
553
+ opacity: 0;
554
+ transition: opacity .15s linear;
555
+ }
556
+
557
+ &:not(:first-child) {
558
+ margin-left: 35px;
559
+ }
560
+
561
+ &:hover {
562
+ transform: translateY(-13px);
563
+
564
+ span {
565
+ opacity: 1;
566
+ }
567
+ }
568
+
569
+ i {
570
+ color: $--color-white;
571
+ display: block;
572
+ font-size: 24px;
573
+ line-height: inherit;
574
+ margin: 0 auto 5px;
575
+ }
576
+ }
577
+ }
578
+
579
+ @include e(title) {
580
+ position: absolute;
581
+ bottom: 0;
582
+ left: 0;
583
+ background-color: $--color-white;
584
+ height: 36px;
585
+ width: 100%;
586
+ overflow: hidden;
587
+ text-overflow: ellipsis;
588
+ white-space: nowrap;
589
+ font-weight: normal;
590
+ text-align: left;
591
+ padding: 0 10px;
592
+ margin: 0;
593
+ line-height: 36px;
594
+ font-size: 14px;
595
+ color: $--color-text-primary;
596
+ }
597
+
598
+ + .el-upload__inner {
599
+ opacity: 0;
600
+ position: relative;
601
+ z-index: 1;
602
+ }
603
+ }