index.vue
1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!--
* @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>