iov-design 2.15.21 → 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/index.js +1 -1
- package/lib/input.js +2 -0
- package/lib/iov-design.common.js +11 -11
- package/lib/select.js +8 -10
- 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/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 +1 -1
- package/packages/input/src/input.vue +1 -0
- package/packages/select/src/select.vue +8 -8
- package/packages/theme-chalk/src/input.scss +1 -1
- package/packages/theme-chalk/src/radio.scss +9 -8
- package/src/index.js +1 -1
|
@@ -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) {
|
|
@@ -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
|
}
|