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.
- package/lib/alert.js +5 -5
- package/lib/index.js +1 -1
- package/lib/input.js +2 -0
- package/lib/iov-design.common.js +16 -16
- package/lib/select.js +8 -10
- package/lib/theme-chalk/alert.css +1 -1
- package/lib/theme-chalk/autocomplete.css +1 -1
- package/lib/theme-chalk/cascader-panel.css +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/date-picker.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/input-number.css +1 -1
- package/lib/theme-chalk/input.css +1 -1
- package/lib/theme-chalk/link.css +1 -1
- package/lib/theme-chalk/message-box.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/radio.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/slider.css +1 -1
- package/lib/theme-chalk/time-picker.css +1 -1
- package/lib/theme-chalk/transfer.css +1 -1
- package/package.json +3 -1
- package/packages/alert/src/main.vue +5 -5
- package/packages/input/src/input.vue +1 -0
- package/packages/select/src/select.vue +8 -8
- package/packages/theme-chalk/src/alert.scss +35 -31
- package/packages/theme-chalk/src/common/var.scss +5 -12
- package/packages/theme-chalk/src/input.scss +1 -1
- package/packages/theme-chalk/src/link.scss +0 -5
- package/packages/theme-chalk/src/radio.scss +9 -8
- package/src/index.js +1 -1
|
@@ -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 !== '', '
|
|
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': '
|
|
25
|
-
'warning': '
|
|
26
|
-
'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] || '
|
|
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
|
|
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 ||
|
|
687
|
-
|
|
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:
|
|
911
|
-
small:
|
|
912
|
-
mini:
|
|
910
|
+
medium: 32,
|
|
911
|
+
small: 30,
|
|
912
|
+
mini: 26
|
|
913
913
|
};
|
|
914
|
-
const input = reference.$el
|
|
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-
|
|
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: $--
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
.el-
|
|
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: $--
|
|
56
|
-
|
|
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-
|
|
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: $--
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
.el-
|
|
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: $--
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
.el-
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
284
|
-
|
|
285
|
-
$--alert-
|
|
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
|
-
|
|
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
|
|
@@ -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-
|
|
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-
|
|
101
|
-
border-color: $--color-
|
|
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
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
127
|
+
// &:after {
|
|
128
|
+
// opacity: .25;
|
|
129
|
+
// }
|
|
129
130
|
.el-radio__label {
|
|
130
|
-
color: $--color-
|
|
131
|
+
color: $--color-primary-6;
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
}
|