Refactor #5426 - For SelectButton
parent
5250943440
commit
d6f209ad08
|
@ -2,20 +2,20 @@ import BaseStyle from 'primevue/base/style';
|
||||||
|
|
||||||
const classes = {
|
const classes = {
|
||||||
root: ({ props }) => [
|
root: ({ props }) => [
|
||||||
'p-selectbutton p-button-group p-component',
|
'p-selectbutton p-component',
|
||||||
{
|
{
|
||||||
'p-disabled': props.disabled,
|
'p-disabled': props.disabled,
|
||||||
'p-invalid': props.invalid
|
'p-invalid': props.invalid
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
button: ({ instance, option }) => [
|
button: ({ instance, option }) => [
|
||||||
'p-button p-component',
|
'p-selectbutton-button',
|
||||||
{
|
{
|
||||||
'p-highlight': instance.isSelected(option),
|
'p-highlight': instance.isSelected(option),
|
||||||
'p-disabled': instance.isOptionDisabled(option)
|
'p-disabled': instance.isOptionDisabled(option)
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
label: 'p-button-label'
|
label: 'p-selectbutton-label'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default BaseStyle.extend({
|
export default BaseStyle.extend({
|
||||||
|
|
Loading…
Reference in New Issue