index.vue 1.01 KB
<!--
 * @Date: 2026-01-31 12:49:11
 * @LastEditors: hookehuyr hookehuyr@gmail.com
 * @LastEditTime: 2026-01-31 12:50:32
 * @FilePath: /manulife-weapp/src/components/PlanPopup/index.vue
 * @Description: 文件描述
-->
<template>
  <nut-popup :visible="visible" position="bottom" round :style="{ height: '90%' }"
    @update:visible="emit('update:visible', $event)" :close-on-click-overlay="true">
    <div class="h-full flex flex-col bg-white overflow-hidden rounded-t-2xl">
      <slot></slot>
    </div>
  </nut-popup>
</template>

<script setup>
/**
 * @description 录入计划书弹窗容器组件
 * @param {boolean} visible - 控制弹窗显示隐藏
 * @emits update:visible - 更新 visible 状态
 */
import { defineProps, defineEmits } from 'vue';

const props = defineProps({
  visible: {
    type: Boolean,
    default: false,
  },
});

const emit = defineEmits(['update:visible']);
</script>

<style lang="less" scoped>
:deep(.nut-popup) {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
</style>