問題描述現(xiàn)在有三個按鈕,當我點擊一個的時候,另外兩個的disabled要變?yōu)椴豢捎?,按鈕是下面這些<button nz-button nzType="primary" [disabled]="!validateForm.valid " (click)="getBtnType(1)">保存&關(guān)閉</button>
<button nz-button nzType="primary" [disabled]="!validateForm.valid " (click)="getBtnType(2)">保存&繼續(xù)</button>
<button nz-button (click)="resetForm($event)">重置</button>寫的有點暈了...
Angular6 表單驗證點擊一個按鈕后其它兩個按鈕變更為不可點擊
函數(shù)式編程
2018-11-13 22:11:17