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,360 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(textarea) {
5
+ position: relative;
6
+ display: inline-block;
7
+ width: 100%;
8
+ vertical-align: bottom;
9
+ font-size: $--font-size-base;
10
+
11
+ @include e(inner) {
12
+ display: block;
13
+ resize: vertical;
14
+ padding: 5px 15px;
15
+ line-height: 1.5;
16
+ box-sizing: border-box;
17
+ width: 100%;
18
+ font-size: inherit;
19
+ color: $--input-font-color;
20
+ background-color: $--input-background-color;
21
+ background-image: none;
22
+ border: $--input-border;
23
+ border-radius: $--input-border-radius;
24
+ transition: $--border-transition-base;
25
+
26
+ &::placeholder {
27
+ color: $--input-placeholder-color;
28
+ }
29
+
30
+ &:hover {
31
+ border-color: $--input-hover-border;
32
+ }
33
+
34
+ &:focus {
35
+ outline: none;
36
+ border-color: $--input-focus-border;
37
+ }
38
+ }
39
+
40
+ & .el-input__count {
41
+ color: $--color-info;
42
+ background: $--color-white;
43
+ position: absolute;
44
+ font-size: 12px;
45
+ bottom: 5px;
46
+ right: 10px;
47
+ }
48
+
49
+ @include when(disabled) {
50
+ .el-textarea__inner {
51
+ background-color: $--input-disabled-fill;
52
+ border-color: $--input-disabled-border;
53
+ color: $--input-disabled-color;
54
+ cursor: not-allowed;
55
+
56
+ &::placeholder {
57
+ color: $--input-disabled-placeholder-color;
58
+ }
59
+ }
60
+ }
61
+
62
+ @include when(exceed) {
63
+ .el-textarea__inner {
64
+ border-color: $--color-danger;
65
+ }
66
+
67
+ .el-input__count {
68
+ color: $--color-danger;
69
+ }
70
+ }
71
+ }
72
+
73
+ @include b(input) {
74
+ position: relative;
75
+ font-size: $--font-size-base;
76
+ display: inline-block;
77
+ width: 100%;
78
+ @include scroll-bar;
79
+
80
+ & .el-input__clear {
81
+ color: $--input-icon-color;
82
+ font-size: $--input-font-size;
83
+ cursor: pointer;
84
+ transition: $--color-transition-base;
85
+
86
+ &:hover {
87
+ color: $--input-clear-hover-color;
88
+ }
89
+ }
90
+
91
+ & .el-input__count {
92
+ height: 100%;
93
+ display: inline-flex;
94
+ align-items: center;
95
+ color: $--color-info;
96
+ font-size: 12px;
97
+
98
+ .el-input__count-inner {
99
+ background: $--color-white;
100
+ line-height: initial;
101
+ display: inline-block;
102
+ padding: 0 5px;
103
+ }
104
+ }
105
+
106
+ @include e(inner) {
107
+ -webkit-appearance: none;
108
+ background-color: $--input-background-color;
109
+ background-image: none;
110
+ border-radius: $--input-border-radius;
111
+ border: $--input-border;
112
+ box-sizing: border-box;
113
+ color: $--input-font-color;
114
+ display: inline-block;
115
+ font-size: inherit;
116
+ height: $--input-height;
117
+ line-height: $--input-height;
118
+ outline: none;
119
+ padding: 0 15px;
120
+ transition: $--border-transition-base;
121
+ width: 100%;
122
+
123
+ &::-ms-reveal {
124
+ display: none;
125
+ }
126
+
127
+ &::placeholder {
128
+ color: $--input-placeholder-color;
129
+ }
130
+
131
+ &:hover {
132
+ border-color: $--input-hover-border;
133
+ }
134
+
135
+ &:focus {
136
+ outline: none;
137
+ border-color: $--input-focus-border;
138
+ }
139
+ }
140
+
141
+ @include e(suffix) {
142
+ position: absolute;
143
+ height: 100%;
144
+ right: 5px;
145
+ top: 0;
146
+ text-align: center;
147
+ color: $--input-icon-color;
148
+ transition: all .3s;
149
+ pointer-events: none;
150
+ }
151
+
152
+ @include e(suffix-inner) {
153
+ pointer-events: all;
154
+ }
155
+
156
+ @include e(prefix) {
157
+ position: absolute;
158
+ height: 100%;
159
+ left: 5px;
160
+ top: 0;
161
+ text-align: center;
162
+ color: $--input-icon-color;
163
+ transition: all .3s;
164
+ }
165
+
166
+ @include e(icon) {
167
+ height: 100%;
168
+ width: 25px;
169
+ text-align: center;
170
+ transition: all .3s;
171
+ line-height: $--input-height;
172
+
173
+ &:after {
174
+ content: '';
175
+ height: 100%;
176
+ width: 0;
177
+ display: inline-block;
178
+ vertical-align: middle;
179
+ }
180
+ }
181
+
182
+ @include e(validateIcon) {
183
+ pointer-events: none;
184
+ }
185
+
186
+ @include when(active) {
187
+ .el-input__inner {
188
+ outline: none;
189
+ border-color: $--input-focus-border;
190
+ }
191
+ }
192
+
193
+ @include when(disabled) {
194
+ .el-input__inner {
195
+ background-color: $--input-disabled-fill;
196
+ border-color: $--input-disabled-border;
197
+ color: $--input-disabled-color;
198
+ cursor: not-allowed;
199
+
200
+ &::placeholder {
201
+ color: $--input-disabled-placeholder-color;
202
+ }
203
+ }
204
+
205
+ .el-input__icon {
206
+ cursor: not-allowed;
207
+ }
208
+ }
209
+
210
+ @include when(exceed) {
211
+ .el-input__inner {
212
+ border-color: $--color-danger;
213
+ }
214
+
215
+ .el-input__suffix {
216
+ .el-input__count {
217
+ color: $--color-danger;
218
+ }
219
+ }
220
+ }
221
+
222
+ @include m(suffix) {
223
+ .el-input__inner {
224
+ padding-right: 30px;
225
+ }
226
+ }
227
+
228
+ @include m(prefix) {
229
+ .el-input__inner {
230
+ padding-left: 30px;
231
+ }
232
+ }
233
+
234
+ @include m(medium) {
235
+ font-size: $--input-medium-font-size;
236
+
237
+ @include e(inner) {
238
+ height: $--input-medium-height;
239
+ line-height: $--input-medium-height;
240
+ }
241
+
242
+ .el-input__icon {
243
+ line-height: $--input-medium-height;
244
+ }
245
+ }
246
+ @include m(small) {
247
+ font-size: $--input-small-font-size;
248
+
249
+ @include e(inner) {
250
+ height: $--input-small-height;
251
+ line-height: $--input-small-height;
252
+ }
253
+
254
+ .el-input__icon {
255
+ line-height: $--input-small-height;
256
+ }
257
+ }
258
+ @include m(mini) {
259
+ font-size: $--input-mini-font-size;
260
+
261
+ @include e(inner) {
262
+ height: $--input-mini-height;
263
+ line-height: $--input-mini-height;
264
+ }
265
+
266
+ .el-input__icon {
267
+ line-height: $--input-mini-height;
268
+ }
269
+ }
270
+ }
271
+
272
+ @include b(input-group) {
273
+ line-height: normal;
274
+ display: inline-table;
275
+ width: 100%;
276
+ border-collapse: separate;
277
+ border-spacing:0;
278
+
279
+ > .el-input__inner {
280
+ vertical-align: middle;
281
+ display: table-cell;
282
+ }
283
+
284
+ @include e((append, prepend)) {
285
+ background-color: $--background-color-base;
286
+ color: $--color-info;
287
+ vertical-align: middle;
288
+ display: table-cell;
289
+ position: relative;
290
+ border: $--border-base;
291
+ border-radius: $--input-border-radius;
292
+ padding: 0 20px;
293
+ width: 1px;
294
+ white-space: nowrap;
295
+
296
+ &:focus {
297
+ outline: none;
298
+ }
299
+
300
+ .el-select,
301
+ .el-button {
302
+ display: inline-block;
303
+ margin: -10px -20px;
304
+ }
305
+
306
+ button.el-button,
307
+ div.el-select .el-input__inner,
308
+ div.el-select:hover .el-input__inner {
309
+ border-color: transparent;
310
+ background-color: transparent;
311
+ color: inherit;
312
+ border-top: 0;
313
+ border-bottom: 0;
314
+ }
315
+
316
+ .el-button,
317
+ .el-input {
318
+ font-size: inherit;
319
+ }
320
+ }
321
+
322
+ @include e(prepend) {
323
+ border-right: 0;
324
+ border-top-right-radius: 0;
325
+ border-bottom-right-radius: 0;
326
+ }
327
+
328
+ @include e(append) {
329
+ border-left: 0;
330
+ border-top-left-radius: 0;
331
+ border-bottom-left-radius: 0;
332
+ }
333
+
334
+ @include m(prepend) {
335
+ .el-input__inner {
336
+ border-top-left-radius: 0;
337
+ border-bottom-left-radius: 0;
338
+ }
339
+ .el-select .el-input.is-focus .el-input__inner {
340
+ border-color: transparent;
341
+ }
342
+ }
343
+
344
+ @include m(append) {
345
+ .el-input__inner {
346
+ border-top-right-radius: 0;
347
+ border-bottom-right-radius: 0;
348
+ }
349
+ .el-select .el-input.is-focus .el-input__inner {
350
+ border-color: transparent;
351
+ }
352
+ }
353
+ }
354
+
355
+ /** disalbe default clear on IE */
356
+ .el-input__inner::-ms-clear {
357
+ display: none;
358
+ width: 0;
359
+ height: 0;
360
+ }
@@ -0,0 +1,81 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ $typeMap: (
5
+ primary: $--link-primary-font-color,
6
+ danger: $--link-danger-font-color,
7
+ success: $--link-success-font-color,
8
+ warning: $--link-warning-font-color,
9
+ info: $--link-info-font-color);
10
+
11
+ @include b(link) {
12
+ display: inline-flex;
13
+ flex-direction: row;
14
+ align-items: center;
15
+ justify-content: center;
16
+ vertical-align: middle;
17
+ position: relative;
18
+ text-decoration: none;
19
+ outline: none;
20
+ cursor: pointer;
21
+ padding: 0;
22
+ font-size: $--link-font-size;
23
+ font-weight: $--link-font-weight;
24
+
25
+ @include when(underline) {
26
+ &:hover:after {
27
+ content: "";
28
+ position: absolute;
29
+ left: 0;
30
+ right: 0;
31
+ height: 0;
32
+ bottom: 0;
33
+ border-bottom: 1px solid $--link-default-active-color
34
+ }
35
+ }
36
+
37
+ @include when(disabled) {
38
+ cursor: not-allowed;
39
+ }
40
+
41
+ & [class*="el-icon-"] {
42
+ & + span {
43
+ margin-left: 5px;
44
+ }
45
+ }
46
+
47
+
48
+ &.el-link--default {
49
+ color: $--link-default-font-color;
50
+ &:hover {
51
+ color: $--link-default-active-color
52
+ }
53
+ &:after {
54
+ border-color: $--link-default-active-color
55
+ }
56
+ @include when(disabled) {
57
+ color: $--link-disabled-font-color
58
+ }
59
+ }
60
+
61
+ @each $type, $primaryColor in $typeMap {
62
+ &.el-link--#{$type} {
63
+ color: $primaryColor;
64
+ &:hover {
65
+ color: mix($primaryColor, $--color-white, 80%)
66
+ }
67
+ &:after {
68
+ border-color: $primaryColor
69
+ }
70
+ @include when(disabled) {
71
+ color: mix($primaryColor, $--color-white, 50%)
72
+ }
73
+ @include when(underline) {
74
+ &:hover:after {
75
+ border-color: $primaryColor
76
+ }
77
+ }
78
+ }
79
+ }
80
+
81
+ }
@@ -0,0 +1,96 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(loading-parent) {
5
+ @include m(relative) {
6
+ position: relative !important;
7
+ }
8
+
9
+ @include m(hidden) {
10
+ overflow: hidden !important;
11
+ }
12
+ }
13
+
14
+ @include b(loading-mask) {
15
+ position: absolute;
16
+ z-index: 2000;
17
+ background-color: rgba(255, 255, 255, .9);
18
+ margin: 0;
19
+ top: 0;
20
+ right: 0;
21
+ bottom: 0;
22
+ left: 0;
23
+ transition: opacity 0.3s;
24
+
25
+ @include when(fullscreen) {
26
+ position: fixed;
27
+
28
+ .el-loading-spinner {
29
+ margin-top: #{- $--loading-fullscreen-spinner-size / 2};
30
+
31
+ .circular {
32
+ height: $--loading-fullscreen-spinner-size;
33
+ width: $--loading-fullscreen-spinner-size;
34
+ }
35
+ }
36
+ }
37
+ }
38
+
39
+ @include b(loading-spinner) {
40
+ top: 50%;
41
+ margin-top: #{- $--loading-spinner-size / 2};
42
+ width: 100%;
43
+ text-align: center;
44
+ position: absolute;
45
+
46
+ .el-loading-text {
47
+ color: $--color-primary;
48
+ margin: 3px 0;
49
+ font-size: 14px;
50
+ }
51
+
52
+ .circular {
53
+ height: $--loading-spinner-size;
54
+ width: $--loading-spinner-size;
55
+ animation: loading-rotate 2s linear infinite;
56
+ }
57
+
58
+ .path {
59
+ animation: loading-dash 1.5s ease-in-out infinite;
60
+ stroke-dasharray: 90, 150;
61
+ stroke-dashoffset: 0;
62
+ stroke-width: 2;
63
+ stroke: $--color-primary;
64
+ stroke-linecap: round;
65
+ }
66
+
67
+ i {
68
+ color: $--color-primary;
69
+ }
70
+ }
71
+
72
+ .el-loading-fade-enter,
73
+ .el-loading-fade-leave-active {
74
+ opacity: 0;
75
+ }
76
+
77
+ @keyframes loading-rotate {
78
+ 100% {
79
+ transform: rotate(360deg);
80
+ }
81
+ }
82
+
83
+ @keyframes loading-dash {
84
+ 0% {
85
+ stroke-dasharray: 1, 200;
86
+ stroke-dashoffset: 0;
87
+ }
88
+ 50% {
89
+ stroke-dasharray: 90, 150;
90
+ stroke-dashoffset: -40px;
91
+ }
92
+ 100% {
93
+ stroke-dasharray: 90, 150;
94
+ stroke-dashoffset: -120px;
95
+ }
96
+ }
@@ -0,0 +1,12 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(main) {
5
+ // IE11 supports the <main> element partially https://caniuse.com/#search=main
6
+ display: block;
7
+ flex: 1;
8
+ flex-basis: auto;
9
+ overflow: auto;
10
+ box-sizing: border-box;
11
+ padding: $--main-padding;
12
+ }