primevue-mirror/components/lib/selectbutton/BaseSelectButton.vue

43 lines
937 B
Vue
Raw Normal View History

2023-05-25 14:09:22 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
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,
default: true
2023-05-25 14:09:22 +00:00
},
allowEmpty: {
type: Boolean,
default: true
},
invalid: {
type: Boolean,
default: false
},
2023-05-25 14:09:22 +00:00
disabled: Boolean,
dataKey: null,
ariaLabelledby: {
2023-05-25 14:09:22 +00:00
type: String,
default: null
}
},
style: SelectButtonStyle,
provide() {
return {
$pcSelectButton: this,
$parentInstance: this
};
2023-05-25 14:09:22 +00:00
}
};
</script>