chore(components): clean and import required components

This commit is contained in:
Benjamin Canac
2021-11-17 15:46:18 +01:00
parent 2fa73605b8
commit 0d4295a1c4
19 changed files with 109 additions and 53 deletions

View File

@@ -41,12 +41,15 @@
<script>
import get from 'lodash/get'
import Icon from '../elements/icon'
import Icon from '../elements/Icon'
export default {
components: { Icon },
components: {
Icon
},
props: {
value: {
modelValue: {
type: [String, Number, Object],
default: ''
},
@@ -106,6 +109,7 @@ export default {
default: null
}
},
emits: ['update:modelValue'],
computed: {
sizeClass () {
return {
@@ -177,7 +181,7 @@ export default {
return normalizedOptions
},
normalizedValue () {
const foundOption = this.normalizedOptionsWithPlaceholder.find(option => option.value === this.value)
const foundOption = this.normalizedOptionsWithPlaceholder.find(option => option.value === this.modelValue)
if (!foundOption) {
return null
}
@@ -207,7 +211,7 @@ export default {
}
},
updateValue (value) {
this.$emit('input', value)
this.$emit('update:modelValue', value)
}
}
}