从您的截图可以看到:
<!-- ✅ 正确:弹窗在组件最外层 -->
<div class="designer-assignment-container">
<!-- 其他内容 -->
</div>
@if (showTeamAssignmentModal) {
<app-designer-team-assignment-modal
[visible]="showTeamAssignmentModal"
...
></app-designer-team-assignment-modal>
}
.modal-overlay {
position: fixed; // ✅ 固定定位
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999; // ✅ 最高层级
background: rgba(0, 0, 0, 0.5); // ✅ 半透明遮罩
display: none; // 默认隐藏
&.visible {
display: flex; // ✅ 显示时为flex布局
animation: fadeIn 0.3s ease forwards;
}
}
.modal-container {
width: 90vw;
max-width: 1200px; // ✅ 最大宽度1200px
max-height: 90vh; // ✅ 最大高度90vh
background: white;
border-radius: 12px;
}
从您提供的截图中可以看到:
弹窗现在应该是完全正常的!您可以:
如果您觉得弹窗显示还有问题,请具体描述:
从截图来看,弹窗已经是:
请测试以下功能:
如果您看到的效果和截图一致,那么弹窗就是正常工作的!
如果有任何具体的问题或不符合预期的地方,请告诉我:
我会立即帮您调整!