2020-06-23 12:23:23 +02:00
|
|
|
<template>
|
2020-10-18 23:47:59 +02:00
|
|
|
<ui-input-list :value="value" @input="$emit('input', $event)" :add-label="addLabel" :disabled="disabled"
|
|
|
|
|
:max-items="limit"
|
|
|
|
|
:inline="true" :max-length="maxItemLength" />
|
2020-06-23 12:23:23 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
props: {
|
|
|
|
|
value: {
|
|
|
|
|
type: Array,
|
|
|
|
|
default: () => []
|
|
|
|
|
},
|
2020-09-17 11:26:23 +02:00
|
|
|
disabled: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: false
|
|
|
|
|
},
|
2020-10-18 23:47:59 +02:00
|
|
|
limit: {
|
|
|
|
|
type: Number,
|
|
|
|
|
default: 10
|
|
|
|
|
},
|
|
|
|
|
maxItemLength: {
|
|
|
|
|
type: Number,
|
|
|
|
|
default: 10
|
|
|
|
|
},
|
|
|
|
|
addLabel: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: '@ui.add'
|
|
|
|
|
}
|
2020-06-23 12:23:23 +02:00
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|