feat(ShareSheet): add popup props

This commit is contained in:
chenjiahan
2020-04-09 13:09:32 +08:00
committed by neverland
parent 1d07aa88ba
commit e2a7fc7c95
3 changed files with 36 additions and 0 deletions
+20
View File
@@ -17,14 +17,27 @@ export default createComponent({
title: String,
cancelText: String,
description: String,
getContainer: [String, Function],
options: {
type: Array,
default: () => [],
},
overlay: {
type: Boolean,
default: true,
},
closeOnPopstate: {
type: Boolean,
default: true,
},
safeAreaInsetBottom: {
type: Boolean,
default: true,
},
closeOnClickOverlay: {
type: Boolean,
default: true,
},
},
methods: {
@@ -111,6 +124,13 @@ export default createComponent({
class={bem()}
value={this.value}
position="bottom"
overlay={this.overlay}
duration={this.duration}
lazyRender={this.lazyRender}
lockScroll={this.lockScroll}
getContainer={this.getContainer}
closeOnPopstate={this.closeOnPopstate}
closeOnClickOverlay={this.closeOnClickOverlay}
safeAreaInsetBottom={this.safeAreaInsetBottom}
onInput={this.toggle}
>