@whitesev/pops
Version:
弹窗库,包含了alert、confirm、prompt、drawer、folder、loading、iframe、panel、tooltip、searchSuggestion、rightClickMenu组件
36 lines (34 loc) • 859 B
text/typescript
import type { PopsToolTipConfig } from "./types/index";
export const PopsTooltipDefaultConfig = (): DeepRequired<PopsToolTipConfig> => {
return {
useShadowRoot: true,
$target: null as any,
content: "默认文字",
isDiffContent: false,
position: "top",
className: "",
isFixed: false,
alwaysShow: false,
onShowEventName: "mouseenter touchstart",
onCloseEventName: "mouseleave touchend touchcancel",
zIndex: 10000,
only: false,
eventOption: {
once: false,
passive: false,
capture: true,
},
showBeforeCallBack() {},
showAfterCallBack() {},
closeBeforeCallBack() {},
closeAfterCallBack() {},
delayCloseTime: 100,
showArrow: true,
arrowDistance: 12.5,
otherDistance: 0,
style: "",
lightStyle: null,
darkStyle: null,
emitter: null,
};
};