angular / angular/components

feat(Dialog): animate.leave

未关闭
#32,486 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
area: cdk/dialog feature P3
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

### Feature Description

When you use the if control flow or ViewContainerRef.createComponnt in Angular, animate.enter and animate.leave work. However, animate.leave support is not provided in components such as Dialog and Overlay. I think the reason is that the overlay is directly destroyed.

### Use Case

Use case: https://stackblitz.com/edit/stackblitz-starters-trwgh2rt?file=package.json

贡献指南

打开贡献指南

调研方向

首先跟踪 overlay 被销毁时涉及的 Dialog 和 Overlay 入口点,然后使用链接的 StackBlitz 用例复现该行为。将 if 控制流和 ViewContainerRef.createComponent 情况与 Dialog 和 Overlay 进行比较,并确认在销毁之前支持 animate.leave,同时不破坏现有行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。