import { ButtonType, InputData, InputType, SkinType } from 'ngx-weui/core'; export declare class DialogConfig { /** * 对话框类型,默认:`default` * default:默认文本或HTML格式 * prompt:可输入对话框 */ type?: 'default' | 'prompt'; /** * 样式,默认:`auto` */ skin?: SkinType; /** * 标题 */ title?: string; /** * 内容(支持HTML) */ content?: string; /** * Input `type` 字段 */ input?: InputType; /** * Input `placeholder` 字段 */ inputPlaceholder?: string; /** * Input 初始化值 */ inputValue?: any; /** * Input `required` 字段,必填项校验失败时【确定】按钮为 `disabled` 状态,默认:`true` */ inputRequired?: boolean; /** * Input 正则判断校验。 * 如无指定,会根据 `input` 类型分别对:`email`、`url` 默认提供正则表达式 */ inputRegex?: RegExp; /** * 输入参数无效时提醒文本 */ inputError?: string; /** * 数据数组,如果input值为 `select` `radio` `checkbox` 时为必填项 */ inputOptions?: InputData[]; /** * HTML元素属性对象,例如 `min` `max` 等,对象键表示属性名,对象值表示属性值 */ inputAttributes?: any; /** * 取消,返回false,默认:`取消` */ cancel?: string; /** * 取消按钮类型,默认:`default` */ cancelType?: ButtonType; /** * 确认,返回true,默认:`确认` */ confirm?: string; /** * 确认按钮类型,默认:`primary` */ confirmType?: ButtonType; /** * 自定义按钮组,当此属性存在时 `cancel` & `confirm` 参数将失效 */ btns?: Array<{ text: string; type: ButtonType; value: boolean | any; [key: string]: any; }>; /** * 允许点击背景关闭,默认:`false` */ backdrop?: boolean; }