angular-子组件属性顺序

有bug前
<app-letter [(processDetail)]="workflowInfo" [(taskId)]="processId" [(workflowTemplateId)]="workflowTemplateId" [(activityCode)]="activityCode"></app-letter>
更改后
<app-letter [(taskId)]="processId" [(workflowTemplateId)]="workflowTemplateId" [(activityCode)]="activityCode" [(processDetail)]="workflowInfo"></app-letter>
 
属性顺序不一样会导致input更新的顺序不一样,可能会触发bug
posted @ 2020-12-07 15:31  litiyi  阅读(121)  评论(0编辑  收藏  举报