<template>
  <uv-popup ref="popup" mode="center" bgColor="none" class="popupCenter" style="width: 300rpx; ">
    <view>
      <slot></slot>
    </view>
  </uv-popup>
</template>

<script>
export default {
  name: 'CustomPopup',
  methods: {
    open() {
      this.$refs.popup.open();
    },
    close() {
      this.$refs.popup.close();
    }
  }
}
</script>

<style scoped>
/* 可以在这里添加样式 */
.popupCenter
{
  background-color: #fff; 
  width: 600rpx;

 
}
</style>