angular - 如何将角度动画附加到角度水平步进器cdk中的步骤之间的过渡?
问题描述
我正在使用cdk
步进器来构建新的步进器,但我找不到为步骤之间的过渡附加角度动画的方法。有人可以帮助我吗?
我已经通过用 替换变量来尝试这个解决方案,但它没有按预期工作。current
stepper.selectedIndex
<app-custom-stepper #stepper>
<cdk-step [@stepTransition]="stepper.selectedIndex === 0 ? 'current' : 'previous'
">
<p>This is any content of "Step 1"</p>
</cdk-step>
<cdk-step [@stepTransition]="stepper.selectedIndex === 1 ? 'current'
: stepper.selectedIndex > 1
? 'previous'
: 'next'
">
<p>This is any content of "Step 2"</p>
</cdk-step>
</app-custom-stepper>
解决方案
推荐阅读
- c# - 当嵌套对象的属性发生变化时如何调用方法?
- reactjs - Integrate React with Freemarker templates
- firebase - How to test a Flutter application using Firebase?
- node.js - Trying to create a new device groups on firebase to send messages
- python - 将数组输入到方程中,在 Python 中获取数组输出
- wso2 - WSO2-IS 5.11.0 - 用户名应该是电子邮件地址
- java - Gradle systemProperty in custom task not setting Spring Profile
- kotlin - 如何使用命令行或 local.properties 配置从 Gradle 输出中抑制 Kotlin 警告?
- pytorch - 如何使用 Pytorch LinAlg 求解器?
- powershell - Powershell脚本从一行字符串中复制选定的子字符串