first commit
This commit is contained in:
36
node_modules/vant/es/popup/shared.mjs
generated
vendored
Normal file
36
node_modules/vant/es/popup/shared.mjs
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
||||
};
|
||||
Reference in New Issue
Block a user