2021-08-18 00:01:11 +02:00
|
|
|
<template>
|
|
|
|
<div class="w-full">
|
2021-08-19 18:31:03 +02:00
|
|
|
<p class="px-1 text-sm">{{ label }}</p>
|
2021-08-20 02:14:24 +02:00
|
|
|
<ui-text-input v-model="inputValue" :disabled="disabled" :type="type" class="w-full" />
|
2021-08-18 00:01:11 +02:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
value: [String, Number],
|
|
|
|
label: String,
|
2021-08-20 02:14:24 +02:00
|
|
|
type: {
|
|
|
|
type: String,
|
|
|
|
default: 'text'
|
|
|
|
},
|
2021-08-18 00:01:11 +02:00
|
|
|
disabled: Boolean
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {}
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
inputValue: {
|
|
|
|
get() {
|
|
|
|
return this.value
|
|
|
|
},
|
|
|
|
set(val) {
|
|
|
|
this.$emit('input', val)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {},
|
|
|
|
mounted() {}
|
|
|
|
}
|
|
|
|
</script>
|