@everchron/ec-shards 3.4.4 → 3.4.6
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/dist/ec-shards.common.js +47 -28
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +47 -28
- package/dist/ec-shards.umd.js.map +1 -1
- package/dist/ec-shards.umd.min.js +1 -1
- package/dist/ec-shards.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/select/select.vue +15 -1
package/package.json
CHANGED
|
@@ -72,8 +72,21 @@ export default {
|
|
|
72
72
|
},
|
|
73
73
|
|
|
74
74
|
mounted: function () {
|
|
75
|
-
if (this.placeholder && this.placeholder !== '')
|
|
75
|
+
if (this.placeholder && this.placeholder !== '') {
|
|
76
76
|
this.hasPlaceholder = true
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
this.$nextTick(() => {
|
|
80
|
+
const select = this.$refs.select;
|
|
81
|
+
const option = Array.from(select.options).find((option) => option.value === this.value);
|
|
82
|
+
|
|
83
|
+
if (option) {
|
|
84
|
+
option.selected = true
|
|
85
|
+
if (this.value !== this.currentValue) {
|
|
86
|
+
this.currentValue = this.value
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
})
|
|
77
90
|
},
|
|
78
91
|
|
|
79
92
|
methods: {
|
|
@@ -152,6 +165,7 @@ export default {
|
|
|
152
165
|
background: transparent;
|
|
153
166
|
background-image: none;
|
|
154
167
|
-webkit-appearance: none;
|
|
168
|
+
appearance: none;
|
|
155
169
|
position: relative;
|
|
156
170
|
z-index: 1;
|
|
157
171
|
|