2020-06-29 15:36:02 +02:00
|
|
|
<template>
|
2020-10-20 13:27:17 +02:00
|
|
|
<ui-check-list :value="value" @input="$emit('input', $event)"
|
|
|
|
|
:reverse="reverse"
|
|
|
|
|
:items="items"
|
|
|
|
|
:limit="limit"
|
|
|
|
|
:label-key="labelKey"
|
|
|
|
|
:id-key="idKey"
|
|
|
|
|
:disabled="disabled" />
|
2020-06-29 15:36:02 +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-20 13:27:17 +02:00
|
|
|
items: {
|
|
|
|
|
type: [Array, Function, Promise],
|
|
|
|
|
required: true
|
|
|
|
|
},
|
|
|
|
|
limit: {
|
|
|
|
|
type: Number,
|
|
|
|
|
default: 100
|
|
|
|
|
},
|
|
|
|
|
reverse: Boolean,
|
|
|
|
|
labelKey: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: 'value'
|
|
|
|
|
},
|
|
|
|
|
idKey: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: 'key'
|
|
|
|
|
}
|
2020-06-29 15:36:02 +02:00
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|