42 lines
902 B
Vue
42 lines
902 B
Vue
<script>
|
|
import BaseComponent from 'primevue/basecomponent';
|
|
import SelectButtonStyle from 'primevue/selectbutton/style';
|
|
|
|
export default {
|
|
name: 'BaseSelectButton',
|
|
extends: BaseComponent,
|
|
props: {
|
|
modelValue: null,
|
|
options: Array,
|
|
optionLabel: null,
|
|
optionValue: null,
|
|
optionDisabled: null,
|
|
multiple: Boolean,
|
|
unselectable: {
|
|
type: Boolean,
|
|
default: true
|
|
},
|
|
allowEmpty: {
|
|
type: Boolean,
|
|
default: true
|
|
},
|
|
invalid: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
disabled: Boolean,
|
|
dataKey: null,
|
|
ariaLabelledby: {
|
|
type: String,
|
|
default: null
|
|
}
|
|
},
|
|
style: SelectButtonStyle,
|
|
provide() {
|
|
return {
|
|
$parentInstance: this
|
|
};
|
|
}
|
|
};
|
|
</script>
|