cy-element-ui 1.0.43 → 1.0.45

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 (208) hide show
  1. package/lib/element-ui.common.js +1 -1
  2. package/lib/index.js +1 -1
  3. package/lib/theme-chalk/alert.css +1 -0
  4. package/lib/theme-chalk/aside.css +1 -0
  5. package/lib/theme-chalk/autocomplete.css +1 -0
  6. package/lib/theme-chalk/avatar.css +1 -0
  7. package/lib/theme-chalk/backtop.css +1 -0
  8. package/lib/theme-chalk/badge.css +1 -0
  9. package/lib/theme-chalk/base.css +1 -1
  10. package/lib/theme-chalk/breadcrumb.css +1 -0
  11. package/lib/theme-chalk/button.css +1 -0
  12. package/lib/theme-chalk/calendar.css +1 -0
  13. package/lib/theme-chalk/card.css +1 -0
  14. package/lib/theme-chalk/carousel-item.css +1 -0
  15. package/lib/theme-chalk/carousel.css +1 -0
  16. package/lib/theme-chalk/cascader-panel.css +1 -0
  17. package/lib/theme-chalk/cascader.css +1 -0
  18. package/lib/theme-chalk/checkbox.css +1 -0
  19. package/lib/theme-chalk/col.css +1 -0
  20. package/lib/theme-chalk/collapse.css +1 -0
  21. package/lib/theme-chalk/color-picker.css +1 -0
  22. package/lib/theme-chalk/container.css +1 -0
  23. package/lib/theme-chalk/date-picker.css +1 -0
  24. package/lib/theme-chalk/descriptions-item.css +1 -0
  25. package/lib/theme-chalk/descriptions.css +1 -0
  26. package/lib/theme-chalk/dialog.css +1 -0
  27. package/lib/theme-chalk/display.css +1 -0
  28. package/lib/theme-chalk/divider.css +1 -0
  29. package/lib/theme-chalk/drawer.css +1 -0
  30. package/lib/theme-chalk/dropdown.css +1 -0
  31. package/lib/theme-chalk/empty.css +1 -0
  32. package/lib/theme-chalk/footer.css +1 -0
  33. package/lib/theme-chalk/form.css +1 -0
  34. package/lib/theme-chalk/header.css +1 -0
  35. package/lib/theme-chalk/icon.css +1 -0
  36. package/lib/theme-chalk/image.css +1 -0
  37. package/lib/theme-chalk/index.css +1 -1
  38. package/lib/theme-chalk/input-number.css +1 -0
  39. package/lib/theme-chalk/input.css +1 -0
  40. package/lib/theme-chalk/link.css +1 -0
  41. package/lib/theme-chalk/loading.css +1 -0
  42. package/lib/theme-chalk/main.css +1 -0
  43. package/lib/theme-chalk/menu.css +1 -0
  44. package/lib/theme-chalk/message-box.css +1 -0
  45. package/lib/theme-chalk/message.css +1 -0
  46. package/lib/theme-chalk/notification.css +1 -0
  47. package/lib/theme-chalk/option-group.css +1 -0
  48. package/lib/theme-chalk/option.css +1 -0
  49. package/lib/theme-chalk/page-header.css +1 -0
  50. package/lib/theme-chalk/pagination.css +1 -0
  51. package/lib/theme-chalk/popconfirm.css +1 -0
  52. package/lib/theme-chalk/popover.css +1 -0
  53. package/lib/theme-chalk/popper.css +1 -0
  54. package/lib/theme-chalk/progress.css +1 -0
  55. package/lib/theme-chalk/radio-button.css +1 -0
  56. package/lib/theme-chalk/radio-group.css +1 -0
  57. package/lib/theme-chalk/radio.css +1 -0
  58. package/lib/theme-chalk/rate.css +1 -0
  59. package/lib/theme-chalk/reset.css +1 -0
  60. package/lib/theme-chalk/result.css +1 -0
  61. package/lib/theme-chalk/row.css +1 -0
  62. package/lib/theme-chalk/scrollbar.css +1 -0
  63. package/lib/theme-chalk/select-dropdown.css +1 -0
  64. package/lib/theme-chalk/select.css +1 -0
  65. package/lib/theme-chalk/skeleton-item.css +1 -0
  66. package/lib/theme-chalk/skeleton.css +1 -0
  67. package/lib/theme-chalk/slider.css +1 -0
  68. package/lib/theme-chalk/spinner.css +1 -0
  69. package/lib/theme-chalk/statistic.css +1 -0
  70. package/lib/theme-chalk/step.css +1 -0
  71. package/lib/theme-chalk/steps.css +1 -0
  72. package/lib/theme-chalk/switch.css +1 -0
  73. package/lib/theme-chalk/table-column.css +1 -0
  74. package/lib/theme-chalk/table.css +1 -0
  75. package/lib/theme-chalk/tabs.css +1 -0
  76. package/lib/theme-chalk/tag.css +1 -0
  77. package/lib/theme-chalk/time-picker.css +1 -0
  78. package/lib/theme-chalk/time-select.css +1 -0
  79. package/lib/theme-chalk/timeline-item.css +1 -0
  80. package/lib/theme-chalk/timeline.css +1 -0
  81. package/lib/theme-chalk/tooltip.css +1 -0
  82. package/lib/theme-chalk/transfer.css +1 -0
  83. package/lib/theme-chalk/tree.css +1 -0
  84. package/lib/theme-chalk/upload.css +1 -0
  85. package/package.json +2 -2
  86. package/packages/theme-chalk/gulpfile.js +14 -1
  87. package/packages/theme-chalk/src/common/var.scss +16 -16
  88. package/packages/theme-cy/gulpfile.js +14 -1
  89. package/src/index.js +1 -1
  90. package/lib/theme-chalk/README.md +0 -33
  91. package/lib/theme-chalk/gulpfile.js +0 -27
  92. package/lib/theme-chalk/package.json +0 -35
  93. package/lib/theme-chalk/src/alert.scss +0 -147
  94. package/lib/theme-chalk/src/aside.scss +0 -7
  95. package/lib/theme-chalk/src/autocomplete.scss +0 -80
  96. package/lib/theme-chalk/src/avatar.scss +0 -51
  97. package/lib/theme-chalk/src/backtop.scss +0 -22
  98. package/lib/theme-chalk/src/badge.scss +0 -57
  99. package/lib/theme-chalk/src/base.scss +0 -2
  100. package/lib/theme-chalk/src/breadcrumb.scss +0 -55
  101. package/lib/theme-chalk/src/button.scss +0 -262
  102. package/lib/theme-chalk/src/calendar.scss +0 -79
  103. package/lib/theme-chalk/src/card.scss +0 -32
  104. package/lib/theme-chalk/src/carousel-item.scss +0 -50
  105. package/lib/theme-chalk/src/carousel.scss +0 -161
  106. package/lib/theme-chalk/src/cascader-panel.scss +0 -120
  107. package/lib/theme-chalk/src/cascader.scss +0 -182
  108. package/lib/theme-chalk/src/checkbox.scss +0 -359
  109. package/lib/theme-chalk/src/col.scss +0 -156
  110. package/lib/theme-chalk/src/collapse.scss +0 -63
  111. package/lib/theme-chalk/src/color-picker.scss +0 -384
  112. package/lib/theme-chalk/src/common/popup.scss +0 -42
  113. package/lib/theme-chalk/src/common/transition.scss +0 -99
  114. package/lib/theme-chalk/src/common/var.scss +0 -1028
  115. package/lib/theme-chalk/src/container.scss +0 -14
  116. package/lib/theme-chalk/src/date-picker/date-picker.scss +0 -97
  117. package/lib/theme-chalk/src/date-picker/date-range-picker.scss +0 -101
  118. package/lib/theme-chalk/src/date-picker/date-table.scss +0 -151
  119. package/lib/theme-chalk/src/date-picker/month-table.scss +0 -82
  120. package/lib/theme-chalk/src/date-picker/picker-panel.scss +0 -117
  121. package/lib/theme-chalk/src/date-picker/picker.scss +0 -197
  122. package/lib/theme-chalk/src/date-picker/time-picker.scss +0 -85
  123. package/lib/theme-chalk/src/date-picker/time-range-picker.scss +0 -31
  124. package/lib/theme-chalk/src/date-picker/time-spinner.scss +0 -110
  125. package/lib/theme-chalk/src/date-picker/year-table.scss +0 -51
  126. package/lib/theme-chalk/src/date-picker.scss +0 -12
  127. package/lib/theme-chalk/src/descriptions-item.scss +0 -42
  128. package/lib/theme-chalk/src/descriptions.scss +0 -111
  129. package/lib/theme-chalk/src/dialog.scss +0 -123
  130. package/lib/theme-chalk/src/display.scss +0 -12
  131. package/lib/theme-chalk/src/divider.scss +0 -47
  132. package/lib/theme-chalk/src/drawer.scss +0 -219
  133. package/lib/theme-chalk/src/dropdown.scss +0 -182
  134. package/lib/theme-chalk/src/empty.scss +0 -45
  135. package/lib/theme-chalk/src/footer.scss +0 -8
  136. package/lib/theme-chalk/src/form.scss +0 -167
  137. package/lib/theme-chalk/src/header.scss +0 -8
  138. package/lib/theme-chalk/src/icon.scss +0 -1167
  139. package/lib/theme-chalk/src/image.scss +0 -179
  140. package/lib/theme-chalk/src/index.scss +0 -90
  141. package/lib/theme-chalk/src/input-number.scss +0 -180
  142. package/lib/theme-chalk/src/input.scss +0 -360
  143. package/lib/theme-chalk/src/link.scss +0 -81
  144. package/lib/theme-chalk/src/loading.scss +0 -96
  145. package/lib/theme-chalk/src/main.scss +0 -12
  146. package/lib/theme-chalk/src/menu.scss +0 -289
  147. package/lib/theme-chalk/src/message-box.scss +0 -226
  148. package/lib/theme-chalk/src/message.scss +0 -120
  149. package/lib/theme-chalk/src/mixins/_button.scss +0 -81
  150. package/lib/theme-chalk/src/mixins/config.scss +0 -4
  151. package/lib/theme-chalk/src/mixins/function.scss +0 -44
  152. package/lib/theme-chalk/src/mixins/mixins.scss +0 -190
  153. package/lib/theme-chalk/src/mixins/utils.scss +0 -39
  154. package/lib/theme-chalk/src/notification.scss +0 -99
  155. package/lib/theme-chalk/src/option-group.scss +0 -42
  156. package/lib/theme-chalk/src/option.scss +0 -36
  157. package/lib/theme-chalk/src/page-header.scss +0 -41
  158. package/lib/theme-chalk/src/pagination.scss +0 -295
  159. package/lib/theme-chalk/src/popconfirm.scss +0 -16
  160. package/lib/theme-chalk/src/popover.scss +0 -40
  161. package/lib/theme-chalk/src/popper.scss +0 -101
  162. package/lib/theme-chalk/src/progress.scss +0 -141
  163. package/lib/theme-chalk/src/radio-button.scss +0 -113
  164. package/lib/theme-chalk/src/radio-group.scss +0 -9
  165. package/lib/theme-chalk/src/radio.scss +0 -199
  166. package/lib/theme-chalk/src/rate.scss +0 -49
  167. package/lib/theme-chalk/src/reset.scss +0 -79
  168. package/lib/theme-chalk/src/result.scss +0 -61
  169. package/lib/theme-chalk/src/row.scss +0 -43
  170. package/lib/theme-chalk/src/scrollbar.scss +0 -72
  171. package/lib/theme-chalk/src/select-dropdown.scss +0 -62
  172. package/lib/theme-chalk/src/select.scss +0 -152
  173. package/lib/theme-chalk/src/skeleton-item.scss +0 -84
  174. package/lib/theme-chalk/src/skeleton.scss +0 -40
  175. package/lib/theme-chalk/src/slider.scss +0 -250
  176. package/lib/theme-chalk/src/spinner.scss +0 -44
  177. package/lib/theme-chalk/src/statistic.scss +0 -38
  178. package/lib/theme-chalk/src/step.scss +0 -317
  179. package/lib/theme-chalk/src/steps.scss +0 -20
  180. package/lib/theme-chalk/src/switch.scss +0 -116
  181. package/lib/theme-chalk/src/table-column.scss +0 -97
  182. package/lib/theme-chalk/src/table.scss +0 -564
  183. package/lib/theme-chalk/src/tabs.scss +0 -602
  184. package/lib/theme-chalk/src/tag.scss +0 -163
  185. package/lib/theme-chalk/src/time-picker.scss +0 -8
  186. package/lib/theme-chalk/src/time-select.scss +0 -37
  187. package/lib/theme-chalk/src/timeline-item.scss +0 -86
  188. package/lib/theme-chalk/src/timeline.scss +0 -14
  189. package/lib/theme-chalk/src/tooltip.scss +0 -141
  190. package/lib/theme-chalk/src/transfer.scss +0 -227
  191. package/lib/theme-chalk/src/tree.scss +0 -123
  192. package/lib/theme-chalk/src/upload.scss +0 -603
  193. /package/lib/theme-chalk/{src/breadcrumb-item.scss → breadcrumb-item.css} +0 -0
  194. /package/lib/theme-chalk/{src/button-group.scss → button-group.css} +0 -0
  195. /package/lib/theme-chalk/{src/checkbox-button.scss → checkbox-button.css} +0 -0
  196. /package/lib/theme-chalk/{src/checkbox-group.scss → checkbox-group.css} +0 -0
  197. /package/lib/theme-chalk/{src/collapse-item.scss → collapse-item.css} +0 -0
  198. /package/lib/theme-chalk/{src/dropdown-item.scss → dropdown-item.css} +0 -0
  199. /package/lib/theme-chalk/{src/dropdown-menu.scss → dropdown-menu.css} +0 -0
  200. /package/lib/theme-chalk/{src/fonts → fonts}/element-icons.ttf +0 -0
  201. /package/lib/theme-chalk/{src/fonts → fonts}/element-icons.woff +0 -0
  202. /package/lib/theme-chalk/{src/form-item.scss → form-item.css} +0 -0
  203. /package/lib/theme-chalk/{src/infinite-scroll.scss → infinite-scroll.css} +0 -0
  204. /package/lib/theme-chalk/{src/infiniteScroll.scss → infiniteScroll.css} +0 -0
  205. /package/lib/theme-chalk/{src/menu-item-group.scss → menu-item-group.css} +0 -0
  206. /package/lib/theme-chalk/{src/menu-item.scss → menu-item.css} +0 -0
  207. /package/lib/theme-chalk/{src/submenu.scss → submenu.css} +0 -0
  208. /package/lib/theme-chalk/{src/tab-pane.scss → tab-pane.css} +0 -0
@@ -1,123 +0,0 @@
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
- }
@@ -1,603 +0,0 @@
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
- }