ProgressBar remove indeterminate container
parent
56317fb9d7
commit
2c55d0a0c0
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -125,7 +125,6 @@ const classes = {
|
|||
'p-progressbar-indeterminate': instance.indeterminate
|
||||
}
|
||||
],
|
||||
indeterminateContainer: 'p-progressbar-indeterminate-container',
|
||||
value: 'p-progressbar-value',
|
||||
label: 'p-progressbar-label'
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue