Update DynamicDialog d.ts files
parent
eadbafaf28
commit
43e238c73b
|
@ -1,4 +1,4 @@
|
|||
import { Plugin, VNode } from 'vue';
|
||||
import { Plugin } from 'vue';
|
||||
import { DynamicDialogOptions, DynamicDialogInstance } from '../dynamicdialogoptions';
|
||||
|
||||
declare const plugin: Plugin;
|
||||
|
@ -7,11 +7,11 @@ export default plugin;
|
|||
export interface DialogServiceMethods {
|
||||
/**
|
||||
* Displays the dialog using the dynamic dialog object options.
|
||||
* @param {VNode} content - Dynamic component for content template
|
||||
* @param {*} content - Dynamic component for content template
|
||||
* @param {DynamicDialogOptions} options - DynamicDialog Object
|
||||
* @return {@link DynamicDialogInstance}
|
||||
*/
|
||||
open: (content: VNode, options?: DynamicDialogOptions) => DynamicDialogInstance;
|
||||
open: (content: any, options?: DynamicDialogOptions) => DynamicDialogInstance;
|
||||
}
|
||||
|
||||
declare module 'vue/types/vue' {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { VNode } from 'vue';
|
||||
import { DialogProps } from '../dialog';
|
||||
|
||||
export type DynamicDialogCloseType = 'config-close' | 'dialog-close' | undefined;
|
||||
|
@ -7,11 +6,11 @@ export interface DynamicDialogTemplates {
|
|||
/**
|
||||
* Custom header template.
|
||||
*/
|
||||
header: () => VNode[];
|
||||
header?: any;
|
||||
/**
|
||||
* Custom footer template.
|
||||
*/
|
||||
footer: () => VNode[];
|
||||
footer?: any;
|
||||
}
|
||||
|
||||
export interface DynamicDialogCloseOptions {
|
||||
|
@ -45,7 +44,7 @@ export interface DynamicDialogOptions {
|
|||
* Closes the dialog.
|
||||
* @see DynamicDialogCloseOptions
|
||||
*/
|
||||
onClose?: (options?: DynamicDialogCloseOptions) => void;
|
||||
onClose?(options?: DynamicDialogCloseOptions): void;
|
||||
/**
|
||||
* Optional
|
||||
*/
|
||||
|
@ -56,7 +55,7 @@ export interface DynamicDialogInstance {
|
|||
/**
|
||||
* Dynamic component for content template
|
||||
*/
|
||||
content: VNode | undefined;
|
||||
content: any;
|
||||
/**
|
||||
* Instance options
|
||||
* @see DynamicDialogOptions
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import { VNode } from 'vue';
|
||||
import { DynamicDialogOptions, DynamicDialogInstance } from '../dynamicdialogoptions';
|
||||
|
||||
export declare function useDialog(): {
|
||||
open: (content: VNode, options?: DynamicDialogOptions) => DynamicDialogInstance;
|
||||
open: (content: any, options?: DynamicDialogOptions) => DynamicDialogInstance;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue