ivue-material-plus
Version:
A high quality UI components Library with Vue.js
272 lines (271 loc) • 5.16 kB
TypeScript
import { PropType } from 'vue';
import type { Position, Type } from './types/notice';
declare const _sfc_main: import("vue").DefineComponent<{
/**
* 内容
*
* @type {String}
*/
content: {
type: StringConstructor;
default: string;
};
/**
* 类型名称
*
* @type {String}
*/
type: {
type: PropType<Type>;
default: string;
};
/**
* 样式名称
*
* @type {String}
*/
className: {
type: StringConstructor;
};
/**
* 是否有关闭按钮
*
* @type {Boolean}
*/
closable: {
type: BooleanConstructor;
default: boolean;
};
/**
* render 渲染函数
*
* @type {Function}
*/
render: {
type: FunctionConstructor;
};
/**
* 关闭方法
*
* @type {Function}
*/
onClose: {
type: FunctionConstructor;
};
/**
* 组件名称
*
* @type {String}
*/
id: {
type: StringConstructor;
required: true;
};
/**
* 延迟关闭时间
*
* @type {Function}
*/
duration: {
type: NumberConstructor;
default: number;
};
/**
* 偏移位置
*
* @type {Number}
*/
offset: {
type: NumberConstructor;
default: number;
};
/**
* 自定义弹出位置
*
* @type {String}
*/
position: {
type: PropType<Position>;
validator(value: string): boolean;
default: string;
};
/**
* 当前index
*
* @type {Number}
*/
zIndex: {
type: NumberConstructor;
default: number;
};
/**
* 标题
*
* @type {String}
*/
title: {
type: StringConstructor;
};
/**
* 描述
*
* @type {String}
*/
desc: {
type: StringConstructor;
};
}, {
prefixCls: string;
data: {
haveDesc: boolean;
closeTimer: any;
visible: boolean;
iconTypes: Record<string, string>;
};
classes: import("vue").ComputedRef<(string | {
[x: string]: boolean;
})[]>;
baseClasses: import("vue").ComputedRef<string>;
contentClasses: import("vue").ComputedRef<{
[x: string]: any;
}>;
contentHaveIcon: import("vue").ComputedRef<{
[x: string]: boolean;
}>;
renderFunc: import("vue").ComputedRef<any>;
wrapperStyles: import("vue").ComputedRef<{
[x: string]: string | number;
'z-index': number;
}>;
haveDesc: import("vue").ComputedRef<string>;
handleClose: () => void;
clearCloseTimer: () => void;
handleMouseenter: () => void;
handleMouseleave: () => void;
horizontalClass: import("vue").ComputedRef<"left" | "right">;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "destroy"[], "destroy", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
/**
* 内容
*
* @type {String}
*/
content: {
type: StringConstructor;
default: string;
};
/**
* 类型名称
*
* @type {String}
*/
type: {
type: PropType<Type>;
default: string;
};
/**
* 样式名称
*
* @type {String}
*/
className: {
type: StringConstructor;
};
/**
* 是否有关闭按钮
*
* @type {Boolean}
*/
closable: {
type: BooleanConstructor;
default: boolean;
};
/**
* render 渲染函数
*
* @type {Function}
*/
render: {
type: FunctionConstructor;
};
/**
* 关闭方法
*
* @type {Function}
*/
onClose: {
type: FunctionConstructor;
};
/**
* 组件名称
*
* @type {String}
*/
id: {
type: StringConstructor;
required: true;
};
/**
* 延迟关闭时间
*
* @type {Function}
*/
duration: {
type: NumberConstructor;
default: number;
};
/**
* 偏移位置
*
* @type {Number}
*/
offset: {
type: NumberConstructor;
default: number;
};
/**
* 自定义弹出位置
*
* @type {String}
*/
position: {
type: PropType<Position>;
validator(value: string): boolean;
default: string;
};
/**
* 当前index
*
* @type {Number}
*/
zIndex: {
type: NumberConstructor;
default: number;
};
/**
* 标题
*
* @type {String}
*/
title: {
type: StringConstructor;
};
/**
* 描述
*
* @type {String}
*/
desc: {
type: StringConstructor;
};
}>> & {
onDestroy?: (...args: any[]) => any;
}, {
type: Type;
content: string;
zIndex: number;
position: Position;
duration: number;
offset: number;
closable: boolean;
}>;
export default _sfc_main;