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