ProgressBar remove indeterminate container

pull/5806/head
tugcekucukoglu 2024-05-27 09:29:14 +03:00
parent 56317fb9d7
commit 2c55d0a0c0
6 changed files with 1 additions and 33 deletions

View File

@ -45,10 +45,6 @@ export interface ProgressBarPassThroughOptions<T = any> {
* Used to pass attributes to the root's DOM element.
*/
root?: ProgressBarPassThroughOptionType<T>;
/**
* Used to pass attributes to the indeterminate container's DOM element.
*/
indeterminateContainer?: ProgressBarPassThroughOptionType<T>;
/**
* Used to pass attributes to the value's DOM element.
*/

View File

@ -30,10 +30,4 @@ describe('ProgressBar.vue', () => {
expect(wrapper.find('.p-progressbar-label').exists()).toBe(false);
});
it('should be indeterminated', async () => {
await wrapper.setProps({ mode: 'indeterminate' });
expect(wrapper.find('.p-progressbar-indeterminate-container').exists()).toBe(true);
});
});

View File

@ -5,9 +5,7 @@
<slot>{{ value + '%' }}</slot>
</div>
</div>
<div v-if="indeterminate" :class="cx('indeterminateContainer')" v-bind="ptm('indeterminateContainer')">
<div :class="cx('value')" v-bind="ptm('value')"></div>
</div>
<div v-else-if="indeterminate" :class="cx('value')" v-bind="ptm('value')"></div>
</div>
</template>

View File

@ -14,10 +14,6 @@ export enum ProgressBarClasses {
* Class name of the root element
*/
root = 'p-progressbar',
/**
* Class name of the indeterminate container element
*/
indeterminateContainer = 'p-progressbar-indeterminate-container',
/**
* Class name of the value element
*/

View File

@ -125,7 +125,6 @@ const classes = {
'p-progressbar-indeterminate': instance.indeterminate
}
],
indeterminateContainer: 'p-progressbar-indeterminate-container',
value: 'p-progressbar-value',
label: 'p-progressbar-label'
};

View File

@ -58165,14 +58165,6 @@
"default": "",
"description": "Used to pass attributes to the root's DOM element."
},
{
"name": "indeterminateContainer",
"optional": true,
"readonly": false,
"type": "ProgressBarPassThroughOptionType<T>",
"default": "",
"description": "Used to pass attributes to the indeterminate container's DOM element."
},
{
"name": "value",
"optional": true,
@ -58416,13 +58408,6 @@
"value": "\"p-progressbar\"",
"description": "Class name of the root element"
},
{
"name": "indeterminateContainer",
"optional": false,
"readonly": false,
"value": "\"p-progressbar-indeterminate-container\"",
"description": "Class name of the indeterminate container element"
},
{
"name": "value",
"optional": false,