cy-element-ui 1.0.44 → 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 (207) 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/src/common/var.scss +16 -16
  87. package/packages/theme-cy/gulpfile.js +14 -1
  88. package/src/index.js +1 -1
  89. package/lib/theme-chalk/README.md +0 -33
  90. package/lib/theme-chalk/gulpfile.js +0 -40
  91. package/lib/theme-chalk/package.json +0 -35
  92. package/lib/theme-chalk/src/alert.scss +0 -147
  93. package/lib/theme-chalk/src/aside.scss +0 -7
  94. package/lib/theme-chalk/src/autocomplete.scss +0 -80
  95. package/lib/theme-chalk/src/avatar.scss +0 -51
  96. package/lib/theme-chalk/src/backtop.scss +0 -22
  97. package/lib/theme-chalk/src/badge.scss +0 -57
  98. package/lib/theme-chalk/src/base.scss +0 -2
  99. package/lib/theme-chalk/src/breadcrumb.scss +0 -55
  100. package/lib/theme-chalk/src/button.scss +0 -262
  101. package/lib/theme-chalk/src/calendar.scss +0 -79
  102. package/lib/theme-chalk/src/card.scss +0 -32
  103. package/lib/theme-chalk/src/carousel-item.scss +0 -50
  104. package/lib/theme-chalk/src/carousel.scss +0 -161
  105. package/lib/theme-chalk/src/cascader-panel.scss +0 -120
  106. package/lib/theme-chalk/src/cascader.scss +0 -182
  107. package/lib/theme-chalk/src/checkbox.scss +0 -359
  108. package/lib/theme-chalk/src/col.scss +0 -156
  109. package/lib/theme-chalk/src/collapse.scss +0 -63
  110. package/lib/theme-chalk/src/color-picker.scss +0 -384
  111. package/lib/theme-chalk/src/common/popup.scss +0 -42
  112. package/lib/theme-chalk/src/common/transition.scss +0 -99
  113. package/lib/theme-chalk/src/common/var.scss +0 -1028
  114. package/lib/theme-chalk/src/container.scss +0 -14
  115. package/lib/theme-chalk/src/date-picker/date-picker.scss +0 -97
  116. package/lib/theme-chalk/src/date-picker/date-range-picker.scss +0 -101
  117. package/lib/theme-chalk/src/date-picker/date-table.scss +0 -151
  118. package/lib/theme-chalk/src/date-picker/month-table.scss +0 -82
  119. package/lib/theme-chalk/src/date-picker/picker-panel.scss +0 -117
  120. package/lib/theme-chalk/src/date-picker/picker.scss +0 -197
  121. package/lib/theme-chalk/src/date-picker/time-picker.scss +0 -85
  122. package/lib/theme-chalk/src/date-picker/time-range-picker.scss +0 -31
  123. package/lib/theme-chalk/src/date-picker/time-spinner.scss +0 -110
  124. package/lib/theme-chalk/src/date-picker/year-table.scss +0 -51
  125. package/lib/theme-chalk/src/date-picker.scss +0 -12
  126. package/lib/theme-chalk/src/descriptions-item.scss +0 -42
  127. package/lib/theme-chalk/src/descriptions.scss +0 -111
  128. package/lib/theme-chalk/src/dialog.scss +0 -123
  129. package/lib/theme-chalk/src/display.scss +0 -12
  130. package/lib/theme-chalk/src/divider.scss +0 -47
  131. package/lib/theme-chalk/src/drawer.scss +0 -219
  132. package/lib/theme-chalk/src/dropdown.scss +0 -182
  133. package/lib/theme-chalk/src/empty.scss +0 -45
  134. package/lib/theme-chalk/src/footer.scss +0 -8
  135. package/lib/theme-chalk/src/form.scss +0 -167
  136. package/lib/theme-chalk/src/header.scss +0 -8
  137. package/lib/theme-chalk/src/icon.scss +0 -1167
  138. package/lib/theme-chalk/src/image.scss +0 -179
  139. package/lib/theme-chalk/src/index.scss +0 -90
  140. package/lib/theme-chalk/src/input-number.scss +0 -180
  141. package/lib/theme-chalk/src/input.scss +0 -360
  142. package/lib/theme-chalk/src/link.scss +0 -81
  143. package/lib/theme-chalk/src/loading.scss +0 -96
  144. package/lib/theme-chalk/src/main.scss +0 -12
  145. package/lib/theme-chalk/src/menu.scss +0 -289
  146. package/lib/theme-chalk/src/message-box.scss +0 -226
  147. package/lib/theme-chalk/src/message.scss +0 -120
  148. package/lib/theme-chalk/src/mixins/_button.scss +0 -81
  149. package/lib/theme-chalk/src/mixins/config.scss +0 -4
  150. package/lib/theme-chalk/src/mixins/function.scss +0 -44
  151. package/lib/theme-chalk/src/mixins/mixins.scss +0 -190
  152. package/lib/theme-chalk/src/mixins/utils.scss +0 -39
  153. package/lib/theme-chalk/src/notification.scss +0 -99
  154. package/lib/theme-chalk/src/option-group.scss +0 -42
  155. package/lib/theme-chalk/src/option.scss +0 -36
  156. package/lib/theme-chalk/src/page-header.scss +0 -41
  157. package/lib/theme-chalk/src/pagination.scss +0 -295
  158. package/lib/theme-chalk/src/popconfirm.scss +0 -16
  159. package/lib/theme-chalk/src/popover.scss +0 -40
  160. package/lib/theme-chalk/src/popper.scss +0 -101
  161. package/lib/theme-chalk/src/progress.scss +0 -141
  162. package/lib/theme-chalk/src/radio-button.scss +0 -113
  163. package/lib/theme-chalk/src/radio-group.scss +0 -9
  164. package/lib/theme-chalk/src/radio.scss +0 -199
  165. package/lib/theme-chalk/src/rate.scss +0 -49
  166. package/lib/theme-chalk/src/reset.scss +0 -79
  167. package/lib/theme-chalk/src/result.scss +0 -61
  168. package/lib/theme-chalk/src/row.scss +0 -43
  169. package/lib/theme-chalk/src/scrollbar.scss +0 -72
  170. package/lib/theme-chalk/src/select-dropdown.scss +0 -62
  171. package/lib/theme-chalk/src/select.scss +0 -152
  172. package/lib/theme-chalk/src/skeleton-item.scss +0 -84
  173. package/lib/theme-chalk/src/skeleton.scss +0 -40
  174. package/lib/theme-chalk/src/slider.scss +0 -250
  175. package/lib/theme-chalk/src/spinner.scss +0 -44
  176. package/lib/theme-chalk/src/statistic.scss +0 -38
  177. package/lib/theme-chalk/src/step.scss +0 -317
  178. package/lib/theme-chalk/src/steps.scss +0 -20
  179. package/lib/theme-chalk/src/switch.scss +0 -116
  180. package/lib/theme-chalk/src/table-column.scss +0 -97
  181. package/lib/theme-chalk/src/table.scss +0 -564
  182. package/lib/theme-chalk/src/tabs.scss +0 -602
  183. package/lib/theme-chalk/src/tag.scss +0 -163
  184. package/lib/theme-chalk/src/time-picker.scss +0 -8
  185. package/lib/theme-chalk/src/time-select.scss +0 -37
  186. package/lib/theme-chalk/src/timeline-item.scss +0 -86
  187. package/lib/theme-chalk/src/timeline.scss +0 -14
  188. package/lib/theme-chalk/src/tooltip.scss +0 -141
  189. package/lib/theme-chalk/src/transfer.scss +0 -227
  190. package/lib/theme-chalk/src/tree.scss +0 -123
  191. package/lib/theme-chalk/src/upload.scss +0 -603
  192. /package/lib/theme-chalk/{src/breadcrumb-item.scss → breadcrumb-item.css} +0 -0
  193. /package/lib/theme-chalk/{src/button-group.scss → button-group.css} +0 -0
  194. /package/lib/theme-chalk/{src/checkbox-button.scss → checkbox-button.css} +0 -0
  195. /package/lib/theme-chalk/{src/checkbox-group.scss → checkbox-group.css} +0 -0
  196. /package/lib/theme-chalk/{src/collapse-item.scss → collapse-item.css} +0 -0
  197. /package/lib/theme-chalk/{src/dropdown-item.scss → dropdown-item.css} +0 -0
  198. /package/lib/theme-chalk/{src/dropdown-menu.scss → dropdown-menu.css} +0 -0
  199. /package/lib/theme-chalk/{src/fonts → fonts}/element-icons.ttf +0 -0
  200. /package/lib/theme-chalk/{src/fonts → fonts}/element-icons.woff +0 -0
  201. /package/lib/theme-chalk/{src/form-item.scss → form-item.css} +0 -0
  202. /package/lib/theme-chalk/{src/infinite-scroll.scss → infinite-scroll.css} +0 -0
  203. /package/lib/theme-chalk/{src/infiniteScroll.scss → infiniteScroll.css} +0 -0
  204. /package/lib/theme-chalk/{src/menu-item-group.scss → menu-item-group.css} +0 -0
  205. /package/lib/theme-chalk/{src/menu-item.scss → menu-item.css} +0 -0
  206. /package/lib/theme-chalk/{src/submenu.scss → submenu.css} +0 -0
  207. /package/lib/theme-chalk/{src/tab-pane.scss → tab-pane.css} +0 -0
@@ -1,602 +0,0 @@
1
- @import "mixins/mixins";
2
- @import "common/var";
3
-
4
- @include b(tabs) {
5
- @include e(header) {
6
- padding: 0;
7
- position: relative;
8
- margin: 0 0 15px;
9
- }
10
- @include e(active-bar) {
11
- position: absolute;
12
- bottom: 0;
13
- left: 0;
14
- height: 2px;
15
- background-color: $--color-primary;
16
- z-index: 1;
17
- transition: transform .3s cubic-bezier(.645,.045,.355,1);
18
- list-style: none;
19
- }
20
- @include e(new-tab) {
21
- float: right;
22
- border: 1px solid #d3dce6;
23
- height: 18px;
24
- width: 18px;
25
- line-height: 18px;
26
- margin: 12px 0 9px 10px;
27
- border-radius: 3px;
28
- text-align: center;
29
- font-size: 12px;
30
- color: #d3dce6;
31
- cursor: pointer;
32
- transition: all .15s;
33
-
34
- .el-icon-plus {
35
- transform: scale(0.8, 0.8);
36
- }
37
-
38
- &:hover {
39
- color: $--color-primary;
40
- }
41
- }
42
- @include e(nav-wrap) {
43
- overflow: hidden;
44
- margin-bottom: -1px;
45
- position: relative;
46
-
47
- &::after {
48
- content: "";
49
- position: absolute;
50
- left: 0;
51
- bottom: 0;
52
- width: 100%;
53
- height: 2px;
54
- background-color: $--border-color-light;
55
- z-index: $--index-normal;
56
- }
57
-
58
- @include when(scrollable) {
59
- padding: 0 20px;
60
- box-sizing: border-box;
61
- }
62
- }
63
- @include e(nav-scroll) {
64
- overflow: hidden;
65
- }
66
- @include e((nav-next, nav-prev)) {
67
- position: absolute;
68
- cursor: pointer;
69
- line-height: 44px;
70
- font-size: 12px;
71
- color: $--color-text-secondary;
72
- }
73
- @include e(nav-next) {
74
- right: 0;
75
- }
76
- @include e(nav-prev) {
77
- left: 0;
78
- }
79
- @include e(nav) {
80
- white-space: nowrap;
81
- position: relative;
82
- transition: transform .3s;
83
- float: left;
84
- z-index: #{$--index-normal + 1};
85
-
86
- @include when(stretch) {
87
- min-width: 100%;
88
- display: flex;
89
- & > * {
90
- flex: 1;
91
- text-align: center;
92
- }
93
- }
94
- }
95
- @include e(item) {
96
- padding: 0 20px;
97
- height: 40px;
98
- box-sizing: border-box;
99
- line-height: 40px;
100
- display: inline-block;
101
- list-style: none;
102
- font-size: 14px;
103
- font-weight: 500;
104
- color: $--color-text-primary;
105
- position: relative;
106
-
107
- &:focus, &:focus:active {
108
- outline: none;
109
- }
110
-
111
- &:focus.is-active.is-focus:not(:active) {
112
- box-shadow: 0 0 2px 2px $--color-primary inset;
113
- border-radius: 3px;
114
- }
115
-
116
- & .el-icon-close {
117
- border-radius: 50%;
118
- text-align: center;
119
- transition: all .3s cubic-bezier(.645,.045,.355,1);
120
- margin-left: 5px;
121
- &:before {
122
- transform: scale(.9);
123
- display: inline-block;
124
- }
125
-
126
- &:hover {
127
- background-color: $--color-text-placeholder;
128
- color: $--color-white;
129
- }
130
- }
131
-
132
- @include when(active) {
133
- color: $--color-primary;
134
- }
135
-
136
- &:hover {
137
- color: $--color-primary;
138
- cursor: pointer;
139
- }
140
-
141
- @include when(disabled) {
142
- color: $--disabled-color-base;
143
- cursor: default;
144
- }
145
- }
146
- @include e(content) {
147
- overflow: hidden;
148
- position: relative;
149
- }
150
- @include m(card) {
151
- > .el-tabs__header {
152
- border-bottom: 1px solid $--border-color-light;
153
- }
154
- > .el-tabs__header .el-tabs__nav-wrap::after {
155
- content: none;
156
- }
157
- > .el-tabs__header .el-tabs__nav {
158
- border: 1px solid $--border-color-light;
159
- border-bottom: none;
160
- border-radius: 4px 4px 0 0;
161
- box-sizing: border-box;
162
- }
163
- > .el-tabs__header .el-tabs__active-bar {
164
- display: none;
165
- }
166
- > .el-tabs__header .el-tabs__item .el-icon-close {
167
- position: relative;
168
- font-size: 12px;
169
- width: 0;
170
- height: 14px;
171
- vertical-align: middle;
172
- line-height: 15px;
173
- overflow: hidden;
174
- top: -1px;
175
- right: -2px;
176
- transform-origin: 100% 50%;
177
- }
178
- > .el-tabs__header .el-tabs__item {
179
- border-bottom: 1px solid transparent;
180
- border-left: 1px solid $--border-color-light;
181
- transition: color .3s cubic-bezier(.645,.045,.355,1), padding .3s cubic-bezier(.645,.045,.355,1);
182
- &:first-child {
183
- border-left: none;
184
- }
185
- &.is-closable {
186
- &:hover {
187
- padding-left: 13px;
188
- padding-right: 13px;
189
-
190
- & .el-icon-close {
191
- width: 14px;
192
- }
193
- }
194
- }
195
- &.is-active {
196
- border-bottom-color: $--color-white;
197
-
198
- &.is-closable {
199
- padding-left: 20px;
200
- padding-right: 20px;
201
-
202
- .el-icon-close {
203
- width: 14px;
204
- }
205
- }
206
- }
207
- }
208
- }
209
- @include m(border-card) {
210
- background: $--color-white;
211
- border: 1px solid $--border-color-base;
212
- box-shadow: 0 2px 4px 0 rgba(0,0,0,0.12), 0 0 6px 0 rgba(0,0,0,0.04);
213
-
214
- > .el-tabs__content {
215
- padding: 15px;
216
- }
217
- > .el-tabs__header {
218
- background-color: $--background-color-base;
219
- border-bottom: 1px solid $--border-color-light;
220
- margin: 0;
221
- }
222
- > .el-tabs__header .el-tabs__nav-wrap::after {
223
- content: none;
224
- }
225
- > .el-tabs__header .el-tabs__item {
226
- transition: all .3s cubic-bezier(.645,.045,.355,1);
227
- border: 1px solid transparent;
228
- margin-top: -1px;
229
- color: $--color-text-secondary;
230
-
231
- &:first-child {
232
- margin-left: -1px;
233
- }
234
-
235
- & + .el-tabs__item {
236
- margin-left: -1px;
237
- }
238
-
239
- &.is-active {
240
- color: $--color-primary;
241
- background-color: $--color-white;
242
- border-right-color: $--border-color-base;
243
- border-left-color: $--border-color-base;
244
- }
245
- &:not(.is-disabled):hover {
246
- color: $--color-primary;
247
- }
248
- &.is-disabled {
249
- color: $--disabled-color-base;
250
- }
251
- }
252
-
253
- > .el-tabs__header .is-scrollable .el-tabs__item:first-child {
254
- margin-left: 0;
255
- }
256
- }
257
- @include m((top, bottom)) {
258
- .el-tabs__item.is-top:nth-child(2),
259
- .el-tabs__item.is-bottom:nth-child(2) {
260
- padding-left: 0;
261
- }
262
- .el-tabs__item.is-top:last-child,
263
- .el-tabs__item.is-bottom:last-child {
264
- padding-right: 0;
265
- }
266
-
267
- &.el-tabs--border-card, &.el-tabs--card,
268
- .el-tabs--left, .el-tabs--right {
269
- > .el-tabs__header {
270
- .el-tabs__item:nth-child(2) {
271
- padding-left: 20px;
272
- }
273
- .el-tabs__item:last-child {
274
- padding-right: 20px;
275
- }
276
- }
277
- }
278
- }
279
- @include m(bottom) {
280
- .el-tabs__header.is-bottom {
281
- margin-bottom: 0;
282
- margin-top: 10px;
283
- }
284
- &.el-tabs--border-card {
285
- .el-tabs__header.is-bottom {
286
- border-bottom: 0;
287
- border-top: 1px solid $--border-color-base;
288
- }
289
- .el-tabs__nav-wrap.is-bottom {
290
- margin-top: -1px;
291
- margin-bottom: 0;
292
- }
293
- .el-tabs__item.is-bottom:not(.is-active) {
294
- border: 1px solid transparent;
295
- }
296
- .el-tabs__item.is-bottom {
297
- margin: 0 -1px -1px -1px;
298
- }
299
- }
300
- }
301
- @include m((left, right)) {
302
- overflow: hidden;
303
-
304
- .el-tabs__header.is-left,
305
- .el-tabs__header.is-right,
306
- .el-tabs__nav-wrap.is-left,
307
- .el-tabs__nav-wrap.is-right,
308
- .el-tabs__nav-scroll {
309
- height: 100%;
310
- }
311
-
312
- .el-tabs__active-bar.is-left,
313
- .el-tabs__active-bar.is-right {
314
- top: 0;
315
- bottom: auto;
316
- width: 2px;
317
- height: auto;
318
- }
319
-
320
- .el-tabs__nav-wrap.is-left,
321
- .el-tabs__nav-wrap.is-right {
322
- margin-bottom: 0;
323
-
324
- > .el-tabs__nav-prev,
325
- > .el-tabs__nav-next {
326
- height: 30px;
327
- line-height: 30px;
328
- width: 100%;
329
- text-align: center;
330
- cursor: pointer;
331
-
332
- i {
333
- transform: rotateZ(90deg);
334
- }
335
- }
336
- > .el-tabs__nav-prev {
337
- left: auto;
338
- top: 0;
339
- }
340
- > .el-tabs__nav-next {
341
- right: auto;
342
- bottom: 0;
343
- }
344
-
345
- &.is-scrollable {
346
- padding: 30px 0;
347
- }
348
-
349
- &::after {
350
- height: 100%;
351
- width: 2px;
352
- bottom: auto;
353
- top: 0;
354
- }
355
- }
356
-
357
- .el-tabs__nav.is-left,
358
- .el-tabs__nav.is-right {
359
- float: none;
360
- }
361
- .el-tabs__item.is-left,
362
- .el-tabs__item.is-right {
363
- display: block;
364
- }
365
- }
366
- @include m(left) {
367
- .el-tabs__header.is-left {
368
- float: left;
369
- margin-bottom: 0;
370
- margin-right: 10px;
371
- }
372
- .el-tabs__nav-wrap.is-left {
373
- margin-right: -1px;
374
- &::after {
375
- left: auto;
376
- right: 0;
377
- }
378
- }
379
- .el-tabs__active-bar.is-left {
380
- right: 0;
381
- left: auto;
382
- }
383
- .el-tabs__item.is-left {
384
- text-align: right;
385
- }
386
-
387
- &.el-tabs--card {
388
- .el-tabs__active-bar.is-left {
389
- display: none;
390
- }
391
- .el-tabs__item.is-left {
392
- border-left: none;
393
- border-right: 1px solid $--border-color-light;
394
- border-bottom: none;
395
- border-top: 1px solid $--border-color-light;
396
- text-align: left;
397
- }
398
- .el-tabs__item.is-left:first-child {
399
- border-right: 1px solid $--border-color-light;
400
- border-top: none;
401
- }
402
- .el-tabs__item.is-left.is-active {
403
- border: 1px solid $--border-color-light;
404
- border-right-color: #fff;
405
- border-left: none;
406
- border-bottom: none;
407
-
408
- &:first-child {
409
- border-top: none;
410
- }
411
- &:last-child {
412
- border-bottom: none;
413
- }
414
- }
415
-
416
- .el-tabs__nav {
417
- border-radius: 4px 0 0 4px;
418
- border-bottom: 1px solid $--border-color-light;
419
- border-right: none;
420
- }
421
-
422
- .el-tabs__new-tab {
423
- float: none;
424
- }
425
- }
426
-
427
- &.el-tabs--border-card {
428
- .el-tabs__header.is-left {
429
- border-right: 1px solid #dfe4ed;
430
- }
431
- .el-tabs__item.is-left {
432
- border: 1px solid transparent;
433
- margin: -1px 0 -1px -1px;
434
-
435
- &.is-active {
436
- border-color: transparent;
437
- border-top-color: rgb(209, 219, 229);
438
- border-bottom-color: rgb(209, 219, 229);
439
- }
440
- }
441
- }
442
- }
443
- @include m(right) {
444
- .el-tabs__header.is-right {
445
- float: right;
446
- margin-bottom: 0;
447
- margin-left: 10px;
448
- }
449
-
450
- .el-tabs__nav-wrap.is-right {
451
- margin-left: -1px;
452
- &::after {
453
- left: 0;
454
- right: auto;
455
- }
456
- }
457
-
458
- .el-tabs__active-bar.is-right {
459
- left: 0;
460
- }
461
-
462
- &.el-tabs--card {
463
- .el-tabs__active-bar.is-right {
464
- display: none;
465
- }
466
- .el-tabs__item.is-right {
467
- border-bottom: none;
468
- border-top: 1px solid $--border-color-light;
469
- }
470
- .el-tabs__item.is-right:first-child {
471
- border-left: 1px solid $--border-color-light;
472
- border-top: none;
473
- }
474
- .el-tabs__item.is-right.is-active {
475
- border: 1px solid $--border-color-light;
476
- border-left-color: #fff;
477
- border-right: none;
478
- border-bottom: none;
479
-
480
- &:first-child {
481
- border-top: none;
482
- }
483
- &:last-child {
484
- border-bottom: none;
485
- }
486
- }
487
-
488
- .el-tabs__nav {
489
- border-radius: 0 4px 4px 0;
490
- border-bottom: 1px solid $--border-color-light;
491
- border-left: none;
492
- }
493
- }
494
- &.el-tabs--border-card {
495
- .el-tabs__header.is-right {
496
- border-left: 1px solid #dfe4ed;
497
- }
498
- .el-tabs__item.is-right {
499
- border: 1px solid transparent;
500
- margin: -1px -1px -1px 0;
501
-
502
- &.is-active {
503
- border-color: transparent;
504
- border-top-color: rgb(209, 219, 229);
505
- border-bottom-color: rgb(209, 219, 229);
506
- }
507
- }
508
- }
509
- }
510
- }
511
-
512
- .slideInRight-transition,
513
- .slideInLeft-transition {
514
- display: inline-block;
515
- }
516
- .slideInRight-enter {
517
- animation: slideInRight-enter .3s;
518
- }
519
- .slideInRight-leave {
520
- position: absolute;
521
- left: 0;
522
- right: 0;
523
- animation: slideInRight-leave .3s;
524
- }
525
- .slideInLeft-enter {
526
- animation: slideInLeft-enter .3s;
527
- }
528
- .slideInLeft-leave {
529
- position: absolute;
530
- left: 0;
531
- right: 0;
532
- animation: slideInLeft-leave .3s;
533
- }
534
-
535
- @keyframes slideInRight-enter {
536
- 0% {
537
- opacity: 0;
538
- -webkit-transform-origin: 0 0;
539
- transform-origin: 0 0;
540
- -webkit-transform: translateX(100%);
541
- transform: translateX(100%)
542
- }
543
-
544
- to {
545
- opacity: 1;
546
- -webkit-transform-origin: 0 0;
547
- transform-origin: 0 0;
548
- -webkit-transform: translateX(0);
549
- transform: translateX(0)
550
- }
551
- }
552
- @keyframes slideInRight-leave {
553
- 0% {
554
- -webkit-transform-origin: 0 0;
555
- transform-origin: 0 0;
556
- -webkit-transform: translateX(0);
557
- transform: translateX(0);
558
- opacity: 1
559
- }
560
-
561
- 100% {
562
- -webkit-transform-origin: 0 0;
563
- transform-origin: 0 0;
564
- -webkit-transform: translateX(100%);
565
- transform: translateX(100%);
566
- opacity: 0
567
- }
568
- }
569
- @keyframes slideInLeft-enter {
570
- 0% {
571
- opacity: 0;
572
- -webkit-transform-origin: 0 0;
573
- transform-origin: 0 0;
574
- -webkit-transform: translateX(-100%);
575
- transform: translateX(-100%)
576
- }
577
-
578
- to {
579
- opacity: 1;
580
- -webkit-transform-origin: 0 0;
581
- transform-origin: 0 0;
582
- -webkit-transform: translateX(0);
583
- transform: translateX(0)
584
- }
585
- }
586
- @keyframes slideInLeft-leave {
587
- 0% {
588
- -webkit-transform-origin: 0 0;
589
- transform-origin: 0 0;
590
- -webkit-transform: translateX(0);
591
- transform: translateX(0);
592
- opacity: 1
593
- }
594
-
595
- 100% {
596
- -webkit-transform-origin: 0 0;
597
- transform-origin: 0 0;
598
- -webkit-transform: translateX(-100%);
599
- transform: translateX(-100%);
600
- opacity: 0
601
- }
602
- }