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

@@ -15,7 +15,7 @@
ref="input"
v-focus="autofocus"
:name="name"
:value="value"
:value="modelValue"
:type="type"
:required="required"
:placeholder="placeholder"
@@ -44,15 +44,18 @@
<script>
import Focus from '../../directives/focus'
import Icon from '../elements/icon'
import Icon from '../elements/Icon'
export default {
components: { Icon },
components: {
Icon
},
directives: {
focus: Focus
},
props: {
value: {
modelValue: {
type: [String, Number],
default: ''
},
@@ -135,6 +138,7 @@ export default {
default: false
}
},
emits: ['update:modelValue', 'focus', 'blur'],
computed: {
sizeClass () {
return ({
@@ -246,7 +250,7 @@ export default {
},
methods: {
updateValue (value) {
this.$emit('input', value)
this.$emit('update:modelValue', value)
}
}
}