37 lines
		
	
	
		
			910 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			910 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import { truthProp, unknownProp, numericProp } from "../utils/index.mjs";
 | 
						|
const popupSharedProps = {
 | 
						|
  // whether to show popup
 | 
						|
  show: Boolean,
 | 
						|
  // z-index
 | 
						|
  zIndex: numericProp,
 | 
						|
  // whether to show overlay
 | 
						|
  overlay: truthProp,
 | 
						|
  // transition duration
 | 
						|
  duration: numericProp,
 | 
						|
  // teleport
 | 
						|
  teleport: [String, Object],
 | 
						|
  // prevent body scroll
 | 
						|
  lockScroll: truthProp,
 | 
						|
  // whether to lazy render
 | 
						|
  lazyRender: truthProp,
 | 
						|
  // callback function before close
 | 
						|
  beforeClose: Function,
 | 
						|
  // overlay props
 | 
						|
  overlayProps: Object,
 | 
						|
  // overlay custom style
 | 
						|
  overlayStyle: Object,
 | 
						|
  // overlay custom class name
 | 
						|
  overlayClass: unknownProp,
 | 
						|
  // Initial rendering animation
 | 
						|
  transitionAppear: Boolean,
 | 
						|
  // whether to close popup when overlay is clicked
 | 
						|
  closeOnClickOverlay: truthProp
 | 
						|
};
 | 
						|
const popupSharedPropKeys = Object.keys(
 | 
						|
  popupSharedProps
 | 
						|
);
 | 
						|
export {
 | 
						|
  popupSharedPropKeys,
 | 
						|
  popupSharedProps
 | 
						|
};
 |