chore: adjust popupSharedProps

This commit is contained in:
chenjiahan
2020-08-24 10:27:55 +08:00
parent 28f2fe340c
commit 00395f0146
4 changed files with 21 additions and 34 deletions
+16 -17
View File
@@ -26,18 +26,21 @@ const context = {
export const popupSharedProps = {
// whether to show popup
show: Boolean,
// whether to show overlay
overlay: Boolean,
// z-index
zIndex: [Number, String],
// transition duration
duration: [Number, String],
// teleport
teleport: [String, Object],
// overlay custom style
overlayStyle: Object,
// overlay custom class name
overlayClass: String,
// teleport
teleport: [String, Object],
// whether to close popup when click overlay
closeOnClickOverlay: Boolean,
// z-index
zIndex: [Number, String],
// whether to show overlay
overlay: {
type: Boolean,
default: true,
},
// prevent body scroll
lockScroll: {
type: Boolean,
@@ -48,6 +51,11 @@ export const popupSharedProps = {
type: Boolean,
default: true,
},
// whether to close popup when click overlay
closeOnClickOverlay: {
type: Boolean,
default: true,
},
};
export default createComponent({
@@ -58,7 +66,6 @@ export default createComponent({
props: {
...popupSharedProps,
round: Boolean,
duration: [Number, String],
closeable: Boolean,
transition: String,
safeAreaInsetBottom: Boolean,
@@ -74,14 +81,6 @@ export default createComponent({
type: String,
default: 'center',
},
overlay: {
type: Boolean,
default: true,
},
closeOnClickOverlay: {
type: Boolean,
default: true,
},
},
emits: [