mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Refactor #5426 - For SelectButton
This commit is contained in:
parent
5250943440
commit
d6f209ad08
1 changed files with 3 additions and 3 deletions
|
@ -2,20 +2,20 @@ import BaseStyle from 'primevue/base/style';
|
|||
|
||||
const classes = {
|
||||
root: ({ props }) => [
|
||||
'p-selectbutton p-button-group p-component',
|
||||
'p-selectbutton p-component',
|
||||
{
|
||||
'p-disabled': props.disabled,
|
||||
'p-invalid': props.invalid
|
||||
}
|
||||
],
|
||||
button: ({ instance, option }) => [
|
||||
'p-button p-component',
|
||||
'p-selectbutton-button',
|
||||
{
|
||||
'p-highlight': instance.isSelected(option),
|
||||
'p-disabled': instance.isOptionDisabled(option)
|
||||
}
|
||||
],
|
||||
label: 'p-button-label'
|
||||
label: 'p-selectbutton-label'
|
||||
};
|
||||
|
||||
export default BaseStyle.extend({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue