Lint Select form field
This commit is contained in:
parent
35c817d1c2
commit
9954ba1ee4
|
@ -85,8 +85,8 @@ export default {
|
||||||
return Array.isArray(this.options)
|
return Array.isArray(this.options)
|
||||||
? this.options
|
? this.options
|
||||||
: map(this.options, (value, key) => {
|
: map(this.options, (value, key) => {
|
||||||
return {name: value, id: key};
|
return { name: value, id: key };
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -103,15 +103,6 @@ export default {
|
||||||
trigger(v) {
|
trigger(v) {
|
||||||
this.$emit('update:modelValue', /^[0-9]+$/.test(v.target.value) ? parseInt(v.target.value) : v.target.value ? v.target.value : null);
|
this.$emit('update:modelValue', /^[0-9]+$/.test(v.target.value) ? parseInt(v.target.value) : v.target.value ? v.target.value : null);
|
||||||
},
|
},
|
||||||
clear() {
|
|
||||||
this.$emit('update:modelValue', null);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scope>
|
|
||||||
.inset-bg {
|
|
||||||
background: linear-gradient(to bottom, hsl(247.5, 66.7%, 97.6%) 0%, hsl(247.5, 66.7%, 97.6%) 41%, hsl(0deg 0% 100%) 41%, hsl(180deg 0% 100%) 100%);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
Loading…
Reference in New Issue