iov-design 2.15.55 → 2.15.56

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.
@@ -1,8 +1,8 @@
1
1
  @font-face {
2
2
  font-family: 'iovfont'; /* Project id 4466910 */
3
- src: url('//at.alicdn.com/t/c/font_4466910_8y5kjsv7pqg.woff2?t=1750820266142') format('woff2'),
4
- url('//at.alicdn.com/t/c/font_4466910_8y5kjsv7pqg.woff?t=1750820266142') format('woff'),
5
- url('//at.alicdn.com/t/c/font_4466910_8y5kjsv7pqg.ttf?t=1750820266142') format('truetype');
3
+ src: url('//at.alicdn.com/t/c/font_4466910_qnw5e0xxy7.woff2?t=1753354243540') format('woff2'),
4
+ url('//at.alicdn.com/t/c/font_4466910_qnw5e0xxy7.woff?t=1753354243540') format('woff'),
5
+ url('//at.alicdn.com/t/c/font_4466910_qnw5e0xxy7.ttf?t=1753354243540') format('truetype');
6
6
  }
7
7
 
8
8
  [class^="iov-icon-"], [class*=" iov-icon-"] {
@@ -36,6 +36,39 @@
36
36
  }
37
37
  }
38
38
 
39
+ .iov-icon-bottle:before {
40
+ content: "\e6fe";
41
+ }
42
+
43
+ .iov-icon-line-github:before {
44
+ content: "\e6f8";
45
+ }
46
+
47
+
48
+ .iov-icon-sun:before {
49
+ content: "\e6f9";
50
+ }
51
+
52
+ .iov-icon-panel:before {
53
+ content: "\e6fa";
54
+ }
55
+
56
+ .iov-icon-cube:before {
57
+ content: "\e6fb";
58
+ }
59
+
60
+ .iov-icon-github:before {
61
+ content: "\e6fc";
62
+ }
63
+
64
+ .iov-icon-menu-fold-right:before {
65
+ content: "\e6fd";
66
+ }
67
+
68
+ .iov-icon-cdkey:before {
69
+ content: "\e6f7";
70
+ }
71
+
39
72
  .iov-icon-circle-minus:before {
40
73
  content: "\e6f6";
41
74
  }
@@ -632,7 +665,7 @@
632
665
  content: "\e66a";
633
666
  }
634
667
 
635
- .iov-icon-menu-fold:before {
668
+ .iov-icon-menu-fold-left:before {
636
669
  content: "\e66b";
637
670
  }
638
671
 
@@ -5,41 +5,167 @@
5
5
  display: inline-flex;
6
6
  align-items: center;
7
7
  position: relative;
8
- font-size: $--switch-font-size;
9
- line-height: $--switch-height;
10
- height: $--switch-height;
8
+ line-height: 18px;
9
+ height: 18px;
11
10
  vertical-align: middle;
11
+ @include m(rect) {
12
+ .el-switch__core {
13
+ border-radius: 2px;
14
+ &:after {
15
+ border-radius: 1px;
16
+ }
17
+ }
18
+ }
19
+ @include m(medium) {
20
+ height: 16px;
21
+ line-height: 16px;
22
+ &.el-switch--rect {
23
+ .el-switch__core:after {
24
+ width: 12px;
25
+ height: 12px;
26
+ top: 2px;
27
+ left: 2px;
28
+ }
29
+ }
30
+ .el-switch__core {
31
+ width: 28px;
32
+ height: 16px;
33
+ &:after {
34
+ top: 1px;
35
+ left: 1px;
36
+ }
37
+ }
38
+ .el-switch__label {
39
+ i {
40
+ font-size: 8px;
41
+ }
42
+ }
43
+ .el-switch__label--left-icon {
44
+ margin-right: -12px;
45
+ }
46
+ .el-switch__label--right-icon {
47
+ margin-left: -12px;
48
+ }
49
+ .el-switch__label--left-text {
50
+ margin-right: -12px;
51
+ }
52
+ .el-switch__label--right-text {
53
+ margin-left: -12px;
54
+ }
55
+ }
56
+ @include m(small) {
57
+ height: 14px;
58
+ line-height: 14px;
59
+ &.el-switch--rect {
60
+ .el-switch__core:after {
61
+ width: 10px;
62
+ height: 10px;
63
+ top: 2px;
64
+ left: 2px;
65
+ }
66
+ }
67
+ .el-switch__core {
68
+ width: 24px;
69
+ height: 14px;
70
+ &:after {
71
+ width: 12px;
72
+ height: 12px;
73
+ top: 1px;
74
+ left: 1px;
75
+ }
76
+ }
77
+ .el-switch__label {
78
+ i {
79
+ font-size: 6px;
80
+ }
81
+ span {
82
+ font-size: 8px;
83
+ }
84
+ }
85
+ .el-switch__label--left-icon {
86
+ margin-right: -10px;
87
+ }
88
+ .el-switch__label--right-icon {
89
+ margin-left: -10px;
90
+ }
91
+ .el-switch__label--left-text {
92
+ margin-right: -11px;
93
+ }
94
+ .el-switch__label--right-text {
95
+ margin-left: -11px;
96
+ }
97
+ }
98
+ @include m(mini) {
99
+ height: 10px;
100
+ line-height: 10px;
101
+ .el-switch__core {
102
+ width: 18px;
103
+ height: 10px;
104
+ &:after {
105
+ width: 8px;
106
+ height: 8px;
107
+ top: 1px;
108
+ left: 1px;
109
+ }
110
+ }
111
+ .el-switch__label {
112
+ i {
113
+ font-size: 6px;
114
+ }
115
+ span {
116
+ font-size: 6px;
117
+ }
118
+ }
119
+ .el-switch__label--left-icon {
120
+ margin-right: -8px;
121
+ }
122
+ .el-switch__label--right-icon {
123
+ margin-left: -8px;
124
+ }
125
+ .el-switch__label--left-text {
126
+ margin-right: -8px;
127
+ }
128
+ .el-switch__label--right-text {
129
+ margin-left: -8px;
130
+ }
131
+ }
12
132
  @include when(disabled) {
13
- & .el-switch__core,
14
- & .el-switch__label {
133
+ .el-switch__core,
134
+ .el-switch__label {
15
135
  cursor: not-allowed;
16
136
  }
17
137
  }
18
138
 
19
139
  @include e(label) {
20
140
  transition: .2s;
21
- height: $--switch-height;
22
- display: inline-block;
23
- font-size: $--switch-font-size;
24
- font-weight: 500;
141
+ // height: 18px;
142
+ // display: inline-block;
143
+ // font-size: 13px;
144
+ // font-weight: 500;
145
+ // vertical-align: middle;
146
+ display: flex;
147
+ align-items: center;
25
148
  cursor: pointer;
26
- vertical-align: middle;
27
- color: $--color-text-primary;
28
-
29
- @include when(active) {
30
- color: $--color-primary;
149
+ z-index: 1;
150
+ color: #fff;
151
+ i {
152
+ font-size: 10px;
31
153
  }
32
-
33
- @include m(left) {
34
- margin-right: 10px;
154
+ span {
155
+ font-size: 9px;
156
+ font-weight: 500;
157
+ }
158
+ @include m(left-icon) {
159
+ margin-right: -14px;
160
+ }
161
+ @include m(right-icon) {
162
+ margin-left: -14px;
35
163
  }
36
- @include m(right) {
37
- margin-left: 10px;
164
+ @include m(left-text) {
165
+ margin-right: -14px;
38
166
  }
39
- & * {
40
- line-height: 1;
41
- font-size: $--switch-font-size;
42
- display: inline-block;
167
+ @include m(right-text) {
168
+ margin-left: -14px;
43
169
  }
44
170
  }
45
171
 
@@ -55,43 +181,88 @@
55
181
  margin: 0;
56
182
  display: inline-block;
57
183
  position: relative;
58
- width: $--switch-width;
59
- height: $--switch-height;
60
- border: 1px solid $--switch-off-color;
184
+ width: 32px;
185
+ height: 18px;
61
186
  outline: none;
62
- border-radius: $--switch-core-border-radius;
187
+ border-radius: 10px;
63
188
  box-sizing: border-box;
64
- background: $--switch-off-color;
189
+ background: $--color-fill-4;
65
190
  cursor: pointer;
66
191
  transition: border-color .3s, background-color .3s;
67
192
  vertical-align: middle;
68
193
 
194
+ &:hover {
195
+ background: $--color-fill-5;
196
+ }
197
+
69
198
  &:after {
70
- content: "";
199
+ content: '';
71
200
  position: absolute;
72
- top: 1px;
73
- left: 1px;
74
- border-radius: $--border-radius-circle;
201
+ top: 2px;
202
+ left: 2px;
203
+ border-radius: 100%;
75
204
  transition: all .3s;
76
- width: $--switch-button-size;
77
- height: $--switch-button-size;
78
- background-color: $--color-white;
205
+ width: 14px;
206
+ height: 14px;
207
+ background: #fff;
79
208
  }
80
209
  }
81
210
 
82
211
  @include when(checked) {
212
+ &:hover {
213
+ .el-switch__core {
214
+ background: $--color-primary-5;
215
+ }
216
+ }
83
217
  .el-switch__core {
84
- border-color: $--switch-on-color;
85
- background-color: $--switch-on-color;
218
+ background: $--color-primary-6;
86
219
  &::after {
87
220
  left: 100%;
88
- margin-left: -$--switch-button-size - 1px;
221
+ margin-left: -16px;
222
+ }
223
+ }
224
+ &.el-switch--medium {
225
+ &.el-switch--rect {
226
+ .el-switch__core:after {
227
+ margin-left: -14px;
228
+ }
229
+ }
230
+ .el-switch__core {
231
+ &:after {
232
+ margin-left: -15px;
233
+ }
234
+ }
235
+ }
236
+ &.el-switch--small {
237
+ &.el-switch--rect {
238
+ .el-switch__core:after {
239
+ margin-left: -12px;
240
+ }
241
+ }
242
+ .el-switch__core {
243
+ &:after {
244
+ margin-left: -13px;
245
+ }
246
+ }
247
+ }
248
+ &.el-switch--mini {
249
+ .el-switch__core {
250
+ &:after {
251
+ margin-left: -9px;
252
+ }
89
253
  }
90
254
  }
91
255
  }
92
256
 
93
257
  @include when(disabled) {
94
- opacity: 0.6;
258
+ .el-switch__core {
259
+ background: $--color-fill-3;
260
+ }
261
+ &.is-checked {
262
+ .el-switch__core {
263
+ background: $--color-primary-3;
264
+ }
265
+ }
95
266
  }
96
267
 
97
268
  @include m(wide) {
@@ -40,7 +40,7 @@
40
40
  // 跨页选择
41
41
  @include e(cross-page-selection) {
42
42
  .iov-icon-arrow-down {
43
- color: $--color-fill-6;
43
+ color: $--color-fill-4;
44
44
  cursor: pointer;
45
45
  transition: all ease .2s;
46
46
  &.show-selection-dropdown {
@@ -176,26 +176,69 @@
176
176
  }
177
177
  }
178
178
  @include m(card) {
179
+ &.el-tabs--card-primary {
180
+ .el-tabs__item {
181
+ &.is-active {
182
+ position: relative;
183
+ color: $--color-primary-6;
184
+ border-top-color: transparent;
185
+ &:before {
186
+ content: '';
187
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAABIBAMAAAANAGjIAAAAKlBMVEUAAAA/Vv8/V/8/V/8/V/8/V/8/V/9BWf89Vf9AVf8qVf8/Vv8+Wf8/V//3fmOTAAAADXRSTlMAkm3589XUKyoMBr1CxUdJxQAAAD9JREFUKM9jYGAoDLkLBAwMC4EkiMG1F8pgvAtl1N5N6mQAAVkjBggIPgBlODFAQQKMoQBjNMAYExhGwSjADwC0VhuDywNOfgAAAABJRU5ErkJggg==), url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAABIBAMAAAANAGjIAAAALVBMVEUAAAA/V/8/V/8/V/9AVv8+V/9AV/8+WP9BWf89Vf9AVf8qVf8/Vv8+Wf8/V/9Mw9oEAAAADnRSTlMA89XUlI9waysqDAa9QkOQHV4AAAA/SURBVCjPY3gHBEIRDAxABgh4wxhvNkAZ7xwYQGBl8rsXDBBQ+BTK4BVigAnBGMwwBhuMwQljcDGMglGAAwAASmoc2AEfAyMAAAAASUVORK5CYII=);
188
+ background-repeat: no-repeat, no-repeat;
189
+ background-position: 0, 100%;
190
+ background-size: 8px 100%, 8px 100%;
191
+ position: absolute;
192
+ top: 0;
193
+ left: -1px;
194
+ right: -1px;
195
+ height: 36px;
196
+ }
197
+ &:after {
198
+ content: '';
199
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAABIAQMAAADF4Oe4AAAABlBMVEUAAAA/V/9SqD98AAAAAXRSTlMAQObYZgAAAA9JREFUCNdj+P8fgYYRAACKogf5+x8cIAAAAABJRU5ErkJggg==);
200
+ background-repeat: repeat-x;
201
+ background-position: 0 0;
202
+ background-size: 8px 36px;
203
+ left: 6px;
204
+ right: 6px;
205
+ position: absolute;
206
+ top: 0;
207
+ height: 36px;
208
+ }
209
+ }
210
+ }
211
+ }
179
212
  .el-tabs__item {
180
213
  height: 36px;
181
214
  line-height: 36px;
215
+ font-size: 14px;
216
+ font-weight: 400;
217
+ color: $--color-text-3;
218
+ transition: all ease .25s;
219
+ &:hover {
220
+ background: $--color-line-1;
221
+ }
182
222
  }
183
223
  &.el-tabs--medium {
184
224
  .el-tabs__item {
185
225
  height: 32px;
186
226
  line-height: 32px;
227
+ font-size: 14px;
187
228
  }
188
229
  }
189
230
  &.el-tabs--small {
190
231
  .el-tabs__item {
191
232
  height: 30px;
192
233
  line-height: 30px;
234
+ font-size: 13px;
193
235
  }
194
236
  }
195
237
  &.el-tabs--mini {
196
238
  .el-tabs__item {
197
239
  height: 28px;
198
240
  line-height: 28px;
241
+ font-size: 13px;
199
242
  }
200
243
  }
201
244
  .el-tabs__header {
@@ -233,8 +276,10 @@
233
276
  }
234
277
  }
235
278
  &.is-active {
236
- border-bottom-color: $--color-white;
237
- background: $--color-white;
279
+ border-bottom-color: #fff;
280
+ background: #fff;
281
+ font-weight: 500;
282
+ color: $--color-text-7;
238
283
 
239
284
  &.is-closable {
240
285
  padding-left: 20px;
@@ -257,18 +302,32 @@
257
302
  padding: 0 14px;
258
303
  color: $--color-text-3;
259
304
  transition: all ease .2s;
305
+ border: 0.5px solid transparent;
260
306
  &:hover {
261
307
  background: $--color-white;
308
+ border: 0.5px solid $--color-line-2;
309
+ }
310
+ &.is-disabled {
311
+ &:hover {
312
+ background: none;
313
+ border-color: transparent;
314
+ }
262
315
  }
263
316
  }
264
317
  &.el-tabs--medium {
318
+ .el-tabs__header {
319
+ height: 32px;
320
+ }
265
321
  .el-tabs__item {
266
- height: 30px;
267
- line-height: 30px;
322
+ height: 28px;
323
+ line-height: 28px;
268
324
  font-size: 13px;
269
325
  }
270
326
  }
271
327
  &.el-tabs--small {
328
+ .el-tabs__header {
329
+ height: 30px;
330
+ }
272
331
  .el-tabs__item {
273
332
  height: 26px;
274
333
  line-height: 26px;
@@ -276,6 +335,9 @@
276
335
  }
277
336
  }
278
337
  &.el-tabs--mini {
338
+ .el-tabs__header {
339
+ height: 28px;
340
+ }
279
341
  .el-tabs__item {
280
342
  height: 24px;
281
343
  line-height: 24px;
@@ -284,6 +346,7 @@
284
346
  }
285
347
  .el-tabs__header {
286
348
  padding: 2px;
349
+ height: 34px;
287
350
  display: inline-block;
288
351
  background: $--color-fill-2;
289
352
  border-radius: 4px;
@@ -318,6 +381,7 @@
318
381
  &.is-active {
319
382
  background: $--color-white;
320
383
  color: $--color-primary-6;
384
+ border: 0.5px solid $--color-line-2;
321
385
 
322
386
  &.is-closable {
323
387
  padding-left: 20px;
@@ -218,7 +218,7 @@
218
218
  color: $--color-text-6;
219
219
  font-size: 14px;
220
220
  height: auto;
221
- line-height: 1;
221
+ line-height: normal;
222
222
  .el-tag__text {
223
223
  display: flex;
224
224
  align-items: center;
package/src/index.js CHANGED
@@ -212,7 +212,7 @@ if (typeof window !== 'undefined' && window.Vue) {
212
212
  }
213
213
 
214
214
  export default {
215
- version: '2.15.55',
215
+ version: '2.15.56',
216
216
  locale: locale.use,
217
217
  i18n: locale.i18n,
218
218
  install,