Fixed #1836 - For ProgressBar
parent
af2749c868
commit
4c61ce4dbc
|
@ -1,16 +1,51 @@
|
|||
import { VNode } from 'vue';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
interface ProgressBarProps {
|
||||
value?: number;
|
||||
mode?: string;
|
||||
showValue?: boolean;
|
||||
type ProgressBarModeType = 'determinate' | 'indeterminate';
|
||||
|
||||
export interface ProgressBarProps {
|
||||
/**
|
||||
* 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 {
|
||||
$props: ProgressBarProps;
|
||||
$slots: {
|
||||
'': VNode[];
|
||||
export interface ProgressBarSlots {
|
||||
/**
|
||||
* Custom content slot.
|
||||
*/
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue