mirror of
https://gitee.com/xuliangzhan_admin/vxe-table.git
synced 2026-01-21 05:27:57 +08:00
84 lines
1.7 KiB
TypeScript
84 lines
1.7 KiB
TypeScript
import Vue from 'vue';
|
|
import { VXETableModule } from './module';
|
|
|
|
/**
|
|
* 对话框
|
|
*/
|
|
export declare class Modal extends VXETableModule {
|
|
/**
|
|
* 表格的尺寸
|
|
* @default 'default'
|
|
* @type string
|
|
*/
|
|
size: 'medium' | 'small' | 'mini';
|
|
}
|
|
|
|
export interface XModalOptions {
|
|
id?: string,
|
|
type?: string,
|
|
status?: string,
|
|
top?: number | string,
|
|
title?: string,
|
|
duration?: number | string,
|
|
message: string,
|
|
lockView?: boolean,
|
|
lockScroll?: boolean,
|
|
mask?: boolean,
|
|
maskClosable?: boolean,
|
|
escClosable?: boolean,
|
|
resize: boolean,
|
|
width?: number | string,
|
|
height?: number | string,
|
|
zIndex?: number | string,
|
|
marginSize?: number | string,
|
|
animat?: boolean
|
|
}
|
|
|
|
export interface XModal {
|
|
/**
|
|
* @param options 参数
|
|
*/
|
|
(options: XModalOptions): Promise<string>;
|
|
/**
|
|
* Alert
|
|
* @param message 消息内容
|
|
* @param title 标题
|
|
* @param options 参数
|
|
*/
|
|
alert (message: string, title?: string, options?: XModalOptions): Promise<string>;
|
|
/**
|
|
* Alert
|
|
* @param options
|
|
*/
|
|
alert (options: XModalOptions): Promise<string>;
|
|
/**
|
|
* Confirm
|
|
* @param message 消息内容
|
|
* @param title 标题
|
|
* @param options 参数
|
|
*/
|
|
confirm (message: string, title?: string, options?: XModalOptions): Promise<string>;
|
|
/**
|
|
* Confirm
|
|
* @param options 参数
|
|
*/
|
|
confirm (options: XModalOptions): Promise<string>;
|
|
/**
|
|
* Modal
|
|
* @param message 消息内容
|
|
* @param title 标题
|
|
* @param options 参数
|
|
*/
|
|
message (message: string, title?: string, options?: XModalOptions): Promise<string>;
|
|
/**
|
|
* Modal
|
|
* @param options 参数
|
|
*/
|
|
message (options: XModalOptions): Promise<string>;
|
|
}
|
|
|
|
declare module 'vue/types/vue' {
|
|
interface Vue {
|
|
$XModal: XModal
|
|
}
|
|
} |