43 lines
746 B
Vue
43 lines
746 B
Vue
<template>
|
|
<u-popup :value="showDialog" mode="right" @close="$emit('close')">
|
|
<view class="drawer-view">
|
|
<component ref="drawerRef" @toast="showToast" :is="refType" />
|
|
</view>
|
|
</u-popup>
|
|
</template>
|
|
|
|
<script>
|
|
import Share from './drawerComponents/share.vue';
|
|
import Create from './drawerComponents/create.vue';
|
|
import Recharge from './drawerComponents/recharge.vue';
|
|
export default {
|
|
components:{ Share, Create, Recharge },
|
|
props: {
|
|
refType: {
|
|
type: String,
|
|
default: 'share'
|
|
},
|
|
showDialog: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
},
|
|
data(){
|
|
return{
|
|
|
|
}
|
|
},
|
|
methods:{
|
|
// 提示弹窗
|
|
showToast(content){
|
|
this.$emit('toast',content);
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.drawer-view{
|
|
|
|
}
|
|
</style> |