|
@@ -1,5 +1,5 @@
|
|
|
-import { Popup } from 'vant'
|
|
|
-import { defineComponent } from 'vue'
|
|
|
+import { Popup, PopupPosition } from 'vant'
|
|
|
+import { defineComponent, PropType } from 'vue'
|
|
|
import qs from 'query-string'
|
|
|
|
|
|
export default defineComponent({
|
|
@@ -16,6 +16,10 @@ export default defineComponent({
|
|
|
modelValue: {
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
+ },
|
|
|
+ position: {
|
|
|
+ type: String as PropType<PopupPosition>,
|
|
|
+ default: 'bottom'
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
@@ -77,7 +81,7 @@ export default defineComponent({
|
|
|
ref="protocolPopup"
|
|
|
show={this.modelValue}
|
|
|
transitionAppear={true}
|
|
|
- position="bottom"
|
|
|
+ position={this.position}
|
|
|
style={{ height: this.height }}
|
|
|
onClosed={() => {
|
|
|
if (this.destroy) {
|