【发布时间】:2021-10-14 16:12:13
【问题描述】:
我在每一步都使用带有 formGroup 的 mat-stepper。我在然后一步填写表格,然后单击下一步,即使表格是有效的,以前也没有完成(它可以编辑并选择 mat-step-icon-selected)
据我了解,这是默认行为:步骤已完成且有效 -> 已完成。我说的对吗?
我的情况有什么问题?
【问题讨论】:
-
因此在更陡峭的调用线性模式下,是否应检查先前步骤的有效性。 material.angular.io/components/stepper/api#MatHorizontalStepper
-
即使在线性模式下 step 也不会
t become done and icon doesnt get mat-step-icon-done (它验证了,我可以t move to the next step before current is invalid, but thats all
标签: angular mat-stepper