2023-05-25 14:09:22 +00:00
|
|
|
<script>
|
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
2023-10-02 10:46:09 +00:00
|
|
|
import SelectButtonStyle from 'primevue/selectbutton/style';
|
2023-05-25 14:09:22 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'BaseSelectButton',
|
|
|
|
extends: BaseComponent,
|
|
|
|
props: {
|
|
|
|
modelValue: null,
|
|
|
|
options: Array,
|
|
|
|
optionLabel: null,
|
|
|
|
optionValue: null,
|
|
|
|
optionDisabled: null,
|
|
|
|
multiple: Boolean,
|
|
|
|
unselectable: {
|
|
|
|
type: Boolean,
|
2023-10-17 06:32:11 +00:00
|
|
|
default: true
|
2023-05-25 14:09:22 +00:00
|
|
|
},
|
2023-10-09 09:36:37 +00:00
|
|
|
allowEmpty: {
|
|
|
|
type: Boolean,
|
|
|
|
default: true
|
|
|
|
},
|
2024-01-30 11:27:56 +00:00
|
|
|
invalid: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
2023-05-25 14:09:22 +00:00
|
|
|
disabled: Boolean,
|
|
|
|
dataKey: null,
|
2023-11-24 12:15:40 +00:00
|
|
|
ariaLabelledby: {
|
2023-05-25 14:09:22 +00:00
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
}
|
|
|
|
},
|
2023-10-02 10:46:09 +00:00
|
|
|
style: SelectButtonStyle,
|
2023-05-30 12:28:04 +00:00
|
|
|
provide() {
|
|
|
|
return {
|
2024-04-25 01:26:06 +00:00
|
|
|
$pcSelectButton: this,
|
2023-05-30 12:28:04 +00:00
|
|
|
$parentInstance: this
|
|
|
|
};
|
2023-05-25 14:09:22 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|