如何将输入添加到列中?我在下面有一个我想做的事情的参考
How can I add put inputs into a column? I have a ref down below of what I am trying to do
<mat-form-field appearance="standard">
<mat-label>Name *</mat-label>
<input matInput [(ngModel)]="currentUser.username">
</mat-form-field>
<mat-form-field appearance="standard">
<mat-label>Email *</mat-label>
<input matInput [(ngModel)]="currentUser.email">
</mat-form-field>
<mat-form-field appearance="standard">
<mat-label>Steamhex *</mat-label>
<input matInput [(ngModel)]="currentUser.steamhex">
</mat-form-field>
picture of what I am trying to do with my project thank u in advance:
如果我没理解错的话。
mat-form-field(s) 的父元素的样式为:
display: flex;
flex-direction: column;
希望如此
<mat-form-field appearance="standard">
<mat-label>Name *</mat-label>
<input matInput [(ngModel)]="currentUser.username">
</mat-form-field>
<mat-form-field appearance="standard">
<mat-label>Email *</mat-label>
<input matInput [(ngModel)]="currentUser.email">
</mat-form-field>
<mat-form-field appearance="standard">
<mat-label>Steamhex *</mat-label>
<input matInput [(ngModel)]="currentUser.steamhex">
</mat-form-field>
picture of what I am trying to do with my project thank u in advance:
如果我没理解错的话。
mat-form-field(s) 的父元素的样式为:
display: flex;
flex-direction: column;
希望如此