From 3b2f00b9ebea24b98c60f9e31e7b81f659edf47e Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 1 Dec 2021 17:21:52 +0300 Subject: [PATCH] Fixed #1836 - For SplitterPanel --- .../splitterpanel/SplitterPanel.d.ts | 41 +++++++++++++++---- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/src/components/splitterpanel/SplitterPanel.d.ts b/src/components/splitterpanel/SplitterPanel.d.ts index 24fae75ff..86f913053 100644 --- a/src/components/splitterpanel/SplitterPanel.d.ts +++ b/src/components/splitterpanel/SplitterPanel.d.ts @@ -1,15 +1,42 @@ import { VNode } from 'vue'; +import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; -interface SplitterPanelProps { - size?: number; - minSize?: number; +export interface SplitterPanelProps { + /** + * Size of the element relative to 100%. + */ + size?: number | undefined; + /** + * Minimum size of the element relative to 100%. + */ + minSize?: number | undefined; } -declare class SplitterPanel { - $props: SplitterPanelProps; - $slots: { - '': VNode[]; +export interface SplitterPanelSlots { + /** + * Custom content template. + */ + default: () => VNode[]; +} + +export declare type SplitterPanelEmits = { +} + +declare class SplitterPanel extends ClassComponent { } + +declare module '@vue/runtime-core' { + interface GlobalComponents { + SplitterPanel: GlobalComponentConstructor } } +/** + * + * SplitterPanel is a helper component for Splitter component. + * + * Demos: + * + * - [SplitterPanel](https://www.primefaces.org/primevue/showcase/#/splitter) + * + */ export default SplitterPanel;