2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: ({ instance, props }) => [
|
|
|
|
'p-checkbox p-component',
|
|
|
|
{
|
|
|
|
'p-checkbox-checked': props.modelValue === true,
|
|
|
|
'p-checkbox-disabled': props.disabled,
|
|
|
|
'p-checkbox-focused': instance.focused
|
|
|
|
}
|
|
|
|
],
|
|
|
|
checkbox: ({ instance, props }) => [
|
|
|
|
'p-checkbox-box',
|
|
|
|
{
|
|
|
|
'p-highlight': props.modelValue != null,
|
|
|
|
'p-disabled': props.disabled,
|
|
|
|
'p-focus': instance.focused
|
|
|
|
}
|
|
|
|
],
|
|
|
|
checkIcon: 'p-checkbox-icon',
|
|
|
|
uncheckIcon: 'p-checkbox-icon',
|
|
|
|
nullableIcon: 'p-checkbox-icon'
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'tristatecheckbox',
|
2023-10-04 09:20:15 +00:00
|
|
|
classes
|
2023-10-02 10:46:09 +00:00
|
|
|
});
|