Files
mixtape/zero.Backoffice.UI/app/editor/fields/text.vue
T

28 lines
616 B
Vue
Raw Normal View History

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