@whitesev/pops
Version:
弹窗库,包含了alert、confirm、prompt、drawer、folder、loading、iframe、panel、tooltip、searchSuggestion、rightClickMenu组件
34 lines (32 loc) • 748 B
text/typescript
import type { PopsLoadingConfig } from "./types";
export const PopsLoadingDefaultConfig = (): DeepRequired<PopsLoadingConfig> => {
return {
$parent: document.body || document.documentElement,
content: {
text: "加载中...",
icon: "loading",
style: "",
},
useShadowRoot: true,
class: "",
only: false,
zIndex: 10000,
mask: {
enable: false,
clickEvent: {
toClose: false,
toHide: false,
},
clickCallBack: null,
},
animation: "pops-anim-fadein-zoom",
forbiddenScroll: false,
isAbsolute: false,
style: null,
lightStyle: null,
darkStyle: null,
addIndexCSS: true,
stopKeyDownEventPropagation: true,
emitter: null,
};
};