mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Refactor #3965 - Fixes for ProgressBar
This commit is contained in:
parent
641f6a0e11
commit
05f2958c74
2 changed files with 7 additions and 6 deletions
|
@ -114,15 +114,16 @@ const styles = `
|
|||
`;
|
||||
|
||||
const classes = {
|
||||
root: ({ props, instance }) => [
|
||||
root: ({ instance }) => [
|
||||
'p-progressbar p-component',
|
||||
{
|
||||
'p-progressbar-determinate': instance.determinate,
|
||||
'p-progressbar-indeterminate': instance.indeterminate
|
||||
}
|
||||
],
|
||||
value: ({ instance }) => (instance.determinate ? 'p-progressbar-value p-progressbar-value-animate' : 'p-progressbar-indeterminate-container'),
|
||||
label: ({ instance }) => (instance.determinate ? 'p-progressbar-label' : 'p-progressbar-value p-progressbar-value-animate')
|
||||
container: 'p-progressbar-indeterminate-container',
|
||||
value: 'p-progressbar-value p-progressbar-value-animate',
|
||||
label: 'p-progressbar-label'
|
||||
};
|
||||
|
||||
const { load: loadStyle } = useStyle(styles, { id: 'primevue_progressbar_style', manual: true });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue