PixelAI-mobile/pages/pc_web/index/components/recordDrawer.vue
2025-02-19 15:51:04 +08:00

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>