start alias field

This commit is contained in:
2020-10-10 15:22:51 +02:00
parent 8c6968f19d
commit 3dbf007e2a
7 changed files with 220 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
<template>
<ui-alias :value="value" :name="entity.name" @input="$emit('input', $event)" :max-length="maxLength" :disabled="disabled" />
</template>
<script>
export default {
props: {
value: {
type: String,
default: null
},
entity: {
type: Object,
required: true
},
config: Object,
disabled: {
type: Boolean,
default: false
}
},
computed: {
maxLength()
{
return this.config.maxLength > 0 ? this.config.maxLength : null;
}
}
}
</script>