UNPKG

@whitesev/pops

Version:

弹窗库

91 lines (88 loc) 1.8 kB
import type { PopsConfirmDetails } from "./indexType"; export const PopsConfirmConfig = (): DeepRequired<PopsConfirmDetails> => { return { title: { text: "默认标题", position: "left", html: false, style: "", }, content: { text: "默认内容", html: false, style: "", }, btn: { merge: false, mergeReverse: false, reverse: false, position: "flex-end", ok: { enable: true, size: void 0 as any, icon: void 0 as any, rightIcon: false, iconIsLoading: false, text: "确定", type: "primary", callback(detail: any) { detail.close(); }, }, cancel: { enable: true, size: void 0 as any, icon: void 0 as any, rightIcon: false, iconIsLoading: false, text: "关闭", type: "default", callback(detail: any) { detail.close(); }, }, other: { enable: false, size: void 0 as any, icon: void 0 as any, rightIcon: false, iconIsLoading: false, text: "其它按钮", type: "default", callback(detail: any) { detail.close(); }, }, close: { enable: true, callback(detail: any) { detail.close(); }, }, }, useShadowRoot: true, class: "", only: false, width: "350px", height: "200px", position: "center", animation: "pops-anim-fadein-zoom", zIndex: 10000, mask: { enable: false, clickEvent: { toClose: false, toHide: false, }, clickCallBack: null, }, drag: false, dragLimit: true, dragExtraDistance: 3, dragMoveCallBack() {}, dragEndCallBack() {}, forbiddenScroll: false, style: null, beforeAppendToPageCallBack() {}, } as DeepRequired<PopsConfirmDetails>; };