iov-design 2.15.20 → 2.15.22

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.
@@ -13,7 +13,7 @@
13
13
  </span>
14
14
  <p class="el-alert__description" v-if="$slots.default && !description"><slot></slot></p>
15
15
  <p class="el-alert__description" v-if="description && !$slots.default">{{ description }}</p>
16
- <i class="el-alert__closebtn" :class="{ 'is-customed': closeText !== '', 'el-icon-close': closeText === '' }" v-show="closable" @click="close()">{{closeText}}</i>
16
+ <i class="el-alert__closebtn" :class="{ 'is-customed': closeText !== '', 'iov-icon-close': closeText === '' }" v-show="closable" @click="close()">{{closeText}}</i>
17
17
  </div>
18
18
  </div>
19
19
  </transition>
@@ -21,9 +21,9 @@
21
21
 
22
22
  <script type="text/babel">
23
23
  const TYPE_CLASSES_MAP = {
24
- 'success': 'el-icon-success',
25
- 'warning': 'el-icon-warning',
26
- 'error': 'el-icon-error'
24
+ 'success': 'iov-icon-fill-success',
25
+ 'warning': 'iov-icon-fill-warning',
26
+ 'error': 'iov-icon-fill-fail'
27
27
  };
28
28
  export default {
29
29
  name: 'ElAlert',
@@ -79,7 +79,7 @@
79
79
  },
80
80
 
81
81
  iconClass() {
82
- return TYPE_CLASSES_MAP[this.type] || 'el-icon-info';
82
+ return TYPE_CLASSES_MAP[this.type] || 'iov-icon-fill-explain';
83
83
  },
84
84
 
85
85
  isBigIcon() {
@@ -22,6 +22,7 @@
22
22
  <slot name="prepend"></slot>
23
23
  </div>
24
24
  <div class="el-input-group__inner" :class="{
25
+ 'is-disabled': inputDisabled,
25
26
  'el-input-group--prefix': $slots.prefixLabel,
26
27
  'el-input-group--suffix': $slots.suffixLabel,
27
28
  'is-focus': ($slots.suffixLabel || $slots.prefixLabel) && focused
@@ -677,14 +677,14 @@
677
677
  // 兼容input组件多加了一层el-input-group__inner
678
678
  Array.from(inputChildNodes).find(child => {
679
679
  if (child && child.classList && child.classList.contains('el-input-group__inner')) {
680
- inputChildNodes = child.childNodes;
680
+ inputChildNodes = child;
681
681
  }
682
682
  });
683
- let input = [].filter.call(inputChildNodes, item => item.tagName === 'INPUT')[0];
683
+ // let input = [].filter.call(inputChildNodes, item => item.tagName === 'INPUT')[0];
684
684
  const tags = this.$refs.tags;
685
685
  const tagsHeight = tags ? Math.round(tags.getBoundingClientRect().height) : 0;
686
- const sizeInMap = this.initialInputHeight || 40;
687
- input.style.height = this.selected.length === 0
686
+ const sizeInMap = this.initialInputHeight || 36;
687
+ inputChildNodes.style.height = this.selected.length === 0
688
688
  ? sizeInMap + 'px'
689
689
  : Math.max(
690
690
  tags ? (tagsHeight + (tagsHeight > sizeInMap ? 6 : 0)) : 0,
@@ -907,11 +907,11 @@
907
907
  const reference = this.$refs.reference;
908
908
  if (reference && reference.$el) {
909
909
  const sizeMap = {
910
- medium: 36,
911
- small: 32,
912
- mini: 28
910
+ medium: 32,
911
+ small: 30,
912
+ mini: 26
913
913
  };
914
- const input = reference.$el.querySelector('input');
914
+ const input = reference.$el;
915
915
  this.initialInputHeight = input.getBoundingClientRect().height || sizeMap[this.selectSize];
916
916
  }
917
917
  if (this.remote && this.multiple) {
@@ -17,7 +17,10 @@
17
17
 
18
18
  @include when(light) {
19
19
  .el-alert__closebtn {
20
- color: $--color-text-placeholder;
20
+ color: $--color-fill-4;
21
+ &:hover {
22
+ color: $--color-fill-6;
23
+ }
21
24
  }
22
25
  }
23
26
 
@@ -36,74 +39,74 @@
36
39
 
37
40
  @include m(success) {
38
41
  &.is-light {
39
- background-color: $--alert-success-color;
40
- color: $--color-success;
41
-
42
- .el-alert__description {
43
- color: $--color-success;
42
+ background-color: $--color-success-1;
43
+ border: 1px solid $--color-success-2;
44
+ color: $--color-text-6;
45
+ .el-alert__icon {
46
+ color: $--color-success-6;
44
47
  }
45
48
  }
46
49
 
47
50
  &.is-dark {
48
- background-color: $--color-success;
51
+ background-color: $--color-success-6;
49
52
  color: $--color-white;
50
53
  }
51
54
  }
52
55
 
53
56
  @include m(info) {
54
57
  &.is-light {
55
- background-color: $--alert-info-color;
56
- color: $--color-info;
58
+ background-color: $--color-primary-1;
59
+ border: 1px solid $--color-primary-2;
60
+ color: $--color-text-6;
61
+ .el-alert__icon {
62
+ color: $--color-primary-6;
63
+ }
57
64
  }
58
65
 
59
66
  &.is-dark {
60
- background-color: $--color-info;
67
+ background-color: $--color-primary-6;
61
68
  color: $--color-white;
62
69
  }
63
-
64
- .el-alert__description {
65
- color: $--color-info;
66
- }
67
70
  }
68
71
 
69
72
  @include m(warning) {
70
73
  &.is-light {
71
- background-color: $--alert-warning-color;
72
- color: $--color-warning;
73
-
74
- .el-alert__description {
75
- color: $--color-warning;
74
+ background-color: $--color-warning-1;
75
+ border: 1px solid $--color-warning-2;
76
+ color: $--color-text-6;
77
+ .el-alert__icon {
78
+ color: $--color-warning-6;
76
79
  }
77
80
  }
78
81
 
79
82
  &.is-dark {
80
- background-color: $--color-warning;
83
+ background-color: $--color-warning-6;
81
84
  color: $--color-white;
82
85
  }
83
86
  }
84
87
 
85
88
  @include m(error) {
86
89
  &.is-light {
87
- background-color: $--alert-danger-color;
88
- color: $--color-danger;
89
-
90
- .el-alert__description {
91
- color: $--color-danger;
90
+ background-color: $--color-danger-1;
91
+ border: 1px solid $--color-danger-2;
92
+ color: $--color-text-6;
93
+ .el-alert__icon {
94
+ color: $--color-danger-6;
92
95
  }
93
96
  }
94
97
 
95
98
  &.is-dark {
96
- background-color: $--color-danger;
99
+ background-color: $--color-danger-6;
97
100
  color: $--color-white;
98
101
  }
99
102
  }
100
103
 
101
104
  @include e(content) {
102
105
  display: table-cell;
103
- padding: 0 8px;
104
106
  }
105
107
 
106
108
  @include e(icon) {
109
+ margin-right: 8px;
107
110
  font-size: $--alert-icon-size;
108
111
  width: $--alert-icon-size;
109
112
  @include when(big) {
@@ -114,15 +117,16 @@
114
117
 
115
118
  @include e(title) {
116
119
  font-size: $--alert-title-font-size;
117
- line-height: 18px;
118
120
  @include when(bold) {
119
- font-weight: bold;
121
+ font-weight: 500;
120
122
  }
121
123
  }
122
124
 
123
125
  & .el-alert__description {
124
126
  font-size: $--alert-description-font-size;
125
127
  margin: 5px 0 0 0;
128
+ color: $--color-text-6;
129
+ font-weight: 400;
126
130
  }
127
131
 
128
132
  @include e(closebtn) {
@@ -130,13 +134,13 @@
130
134
  opacity: 1;
131
135
  position: absolute;
132
136
  top: 12px;
133
- right: 15px;
137
+ right: 12px;
134
138
  cursor: pointer;
135
139
 
136
140
  @include when(customed) {
137
141
  font-style: normal;
138
142
  font-size: $--alert-close-customed-font-size;
139
- top: 9px;
143
+ top: 11px;
140
144
  }
141
145
  }
142
146
  }
@@ -280,26 +280,19 @@ $--select-dropdown-border: solid 0.5px $--color-line-2 !default;
280
280
 
281
281
  /* Alert
282
282
  -------------------------- */
283
- $--alert-padding: 8px 16px !default;
284
- /// borderRadius||Border|2
285
- $--alert-border-radius: $--border-radius-base !default;
286
- /// fontSize||Font|1
287
- $--alert-title-font-size: 13px !default;
288
- /// fontSize||Font|1
283
+ $--alert-padding: 11px 12px !default;
284
+ $--alert-border-radius: 4px !default;
285
+ $--alert-title-font-size: 12px !default;
289
286
  $--alert-description-font-size: 12px !default;
290
- /// fontSize||Font|1
291
- $--alert-close-font-size: 12px !default;
292
- /// fontSize||Font|1
293
- $--alert-close-customed-font-size: 13px !default;
287
+ $--alert-close-font-size: 14px !default;
288
+ $--alert-close-customed-font-size: 12px !default;
294
289
 
295
290
  $--alert-success-color: $--color-success-lighter !default;
296
291
  $--alert-info-color: $--color-info-lighter !default;
297
292
  $--alert-warning-color: $--color-warning-lighter !default;
298
293
  $--alert-danger-color: $--color-danger-lighter !default;
299
294
 
300
- /// height||Other|4
301
295
  $--alert-icon-size: 16px !default;
302
- /// height||Other|4
303
296
  $--alert-icon-large-size: 28px !default;
304
297
 
305
298
  /* MessageBox
@@ -241,7 +241,7 @@
241
241
  }
242
242
  .el-input__prefix,
243
243
  .el-input__suffix,
244
- // .el-input-group__prefix-label,
244
+ .el-input-group__prefix-label,
245
245
  .el-input-group__suffix-label {
246
246
  background-color: $--input-disabled-fill;
247
247
  }
@@ -14,11 +14,6 @@ $typeMap: (
14
14
  );
15
15
 
16
16
  @include b(link) {
17
- display: inline-flex;
18
- flex-direction: row;
19
- align-items: center;
20
- justify-content: center;
21
- vertical-align: middle;
22
17
  position: relative;
23
18
  text-decoration: none;
24
19
  outline: none;
@@ -64,12 +64,13 @@
64
64
  box-sizing: border-box;
65
65
  transition: border-color ease .3s;
66
66
  overflow: hidden;
67
+ background: #fff;
67
68
  .el-radio__input {
68
69
  float: left;
69
70
  font-size: 0;
70
71
  &.is-checked {
71
72
  & + .el-radio__label {
72
- color: $--color-text-6;
73
+ color: $--color-primary-6;
73
74
  }
74
75
  }
75
76
  }
@@ -97,8 +98,8 @@
97
98
 
98
99
 
99
100
  &.is-disabled {
100
- background: $--color-fill-1;
101
- border-color: $--color-line-2;
101
+ background: $--color-primary-1;
102
+ border-color: $--color-primary-2;
102
103
  .el-radio__label {
103
104
  color: $--color-text-3;
104
105
  }
@@ -121,13 +122,13 @@
121
122
  right: -1px;
122
123
  }
123
124
  &.is-disabled {
125
+ border-color: $--color-primary-6;
124
126
  background: $--color-primary-1;
125
- border-color: $--color-primary-2;
126
- &:after {
127
- opacity: .25;
128
- }
127
+ // &:after {
128
+ // opacity: .25;
129
+ // }
129
130
  .el-radio__label {
130
- color: $--color-text-3;
131
+ color: $--color-primary-6;
131
132
  }
132
133
  }
133
134
  }
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.20',
215
+ version: '2.15.22',
216
216
  locale: locale.use,
217
217
  i18n: locale.i18n,
218
218
  install,