Fixed #1836 - For ProgressBar

pull/1846/head
mertsincan 2021-12-01 17:09:21 +03:00
parent af2749c868
commit 4c61ce4dbc
1 changed files with 43 additions and 8 deletions

View File

@ -1,16 +1,51 @@
import { VNode } from 'vue'; import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
interface ProgressBarProps { type ProgressBarModeType = 'determinate' | 'indeterminate';
value?: number;
mode?: string; export interface ProgressBarProps {
showValue?: boolean; /**
* Current value of the progress.
*/
value?: number | undefined;
/**
* Defines the mode of the progress
* @see ProgressBarModeType
* Default value is 'determinate'.
*/
mode?: ProgressBarModeType;
/**
* Whether to display the progress bar value.
* Default value is true.
*/
showValue?: boolean | undefined;
} }
declare class ProgressBar { export interface ProgressBarSlots {
$props: ProgressBarProps; /**
$slots: { * Custom content slot.
'': VNode[]; */
default: () => VNode[];
}
export declare type ProgressBarEmits = {
}
declare class ProgressBar extends ClassComponent<ProgressBarProps, ProgressBarSlots, ProgressBarEmits> { }
declare module '@vue/runtime-core' {
interface GlobalComponents {
ProgressBar: GlobalComponentConstructor<ProgressBar>
} }
} }
/**
*
* ProgressBar is a process status indicator.
*
* Demos:
*
* - [ProgressBar](https://www.primefaces.org/primevue/showcase/#/progressbar)
*
*/
export default ProgressBar; export default ProgressBar;