Files
mixtape/zero.Backoffice.UI/app/editor/fields/text.vue
T
2021-12-09 10:51:10 +01:00

28 lines
616 B
Vue

<template>
<input :model-value="modelValue" @input="$emit('input', $event.target.value)" type="text" class="ui-input" v-placeholder="{ placeholder, model: entity }" :maxlength="maxLength" :disabled="disabled" />
</template>
<script>
export default {
props: {
modelValue: {
type: String,
default: null
},
maxLength: {
type: Number,
default: null
},
disabled: {
type: Boolean,
default: false
},
placeholder: {
type: [String, Function],
default: null
},
entity: Object
}
}
</script>