Files
mixtape/zero.Web.UI/App/editor/fields/text.vue
T

28 lines
600 B
Vue
Raw Normal View History

2020-04-30 14:21:43 +02:00
<template>
2021-04-23 14:06:30 +02:00
<input :value="value" @input="$emit('input', $event.target.value)" type="text" class="ui-input" v-placeholder="{ placeholder, model: entity }" :maxlength="maxLength" :disabled="disabled" />
2020-04-30 14:21:43 +02:00
</template>
<script>
export default {
props: {
2020-04-30 15:35:09 +02:00
value: {
type: String,
default: null
},
2020-10-18 23:47:59 +02:00
maxLength: {
type: Number,
default: null
},
2020-11-17 15:44:04 +01:00
disabled: {
type: Boolean,
default: false
},
2020-10-18 23:47:59 +02:00
placeholder: {
2021-04-23 14:06:30 +02:00
type: [String, Function],
2020-10-18 23:47:59 +02:00
default: null
2021-04-23 14:06:30 +02:00
},
entity: Object
2020-04-30 14:21:43 +02:00
}
}
</script>