@whitesev/pops
Version:
弹窗库
30 lines (27 loc) • 567 B
text/typescript
import type { PopsLoadingDetails } from "./indexType";
export const PopsLoadingConfig = (): DeepRequired<PopsLoadingDetails> => {
return {
parent: document.body,
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,
style: null,
addIndexCSS: true,
};
};