primevue-mirror/components/progressbar/ProgressBar.d.ts

51 lines
1.1 KiB
TypeScript
Raw Normal View History

2022-09-06 12:03:37 +00:00
import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
type ProgressBarModeType = 'determinate' | 'indeterminate' | undefined;
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;
}
export interface ProgressBarSlots {
/**
* Custom content slot.
*/
default: () => VNode[];
}
2022-09-14 11:26:01 +00:00
export declare type ProgressBarEmits = {};
2022-09-06 12:03:37 +00:00
2022-09-14 11:26:01 +00:00
declare class ProgressBar extends ClassComponent<ProgressBarProps, ProgressBarSlots, ProgressBarEmits> {}
2022-09-06 12:03:37 +00:00
declare module '@vue/runtime-core' {
interface GlobalComponents {
2022-09-14 11:26:01 +00:00
ProgressBar: GlobalComponentConstructor<ProgressBar>;
2022-09-06 12:03:37 +00:00
}
}
/**
*
* ProgressBar is a process status indicator.
*
* Demos:
*
2022-09-14 11:26:01 +00:00
* - [ProgressBar](https://www.primefaces.org/primevue/progressbar)
2022-09-06 12:03:37 +00:00
*
*/
export default ProgressBar;