From 4c61ce4dbc92c7a83bbb5f8238ba333266d9cdd0 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 1 Dec 2021 17:09:21 +0300 Subject: [PATCH] Fixed #1836 - For ProgressBar --- src/components/progressbar/ProgressBar.d.ts | 51 +++++++++++++++++---- 1 file changed, 43 insertions(+), 8 deletions(-) diff --git a/src/components/progressbar/ProgressBar.d.ts b/src/components/progressbar/ProgressBar.d.ts index eee7a2c6b..d5f2a34fc 100755 --- a/src/components/progressbar/ProgressBar.d.ts +++ b/src/components/progressbar/ProgressBar.d.ts @@ -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 { } + +declare module '@vue/runtime-core' { + interface GlobalComponents { + ProgressBar: GlobalComponentConstructor } } +/** + * + * ProgressBar is a process status indicator. + * + * Demos: + * + * - [ProgressBar](https://www.primefaces.org/primevue/showcase/#/progressbar) + * + */ export default ProgressBar;