0

我正在使用 primeNG 自动完成并添加了 inputStyleClass="form-control" ..问题是图标转到下一行..见下图

在此处输入图像描述

它应该在盒子旁边对齐,我该怎么做?

HTML

   <div class="form-group col-xs-3 col-md-3"
                                      [ngClass]="{
                                     'has-error':(ersaForm.get('gatewayRole').touched || ersaForm.get('gatewayRole').dirty ) &&
                                     !ersaForm.get('gatewayRole').valid
                                     }">
                                    <label for="gatewayRoleId" class="control-label">Gateway Role</label>
                                    <p-autoComplete  [suggestions]="iRole"  formControlName="Role"    inputStyleClass="form-control" id="RoleId" placeholder="Role (required)" (completeMethod)="searchRole($event)" [style]="{'width':'85%'}" [inputStyle]="{'width':'85%'}" field="name" dataKey="id" [dropdown]="true"></p-autoComplete>

                                </div>
4

1 回答 1

0

只需将其添加到我的自动完成中:

formControlName="phone" [style]="{'width': '100%','display': 'inline-flex','height':'34px'}"

  <p-autoComplete  [suggestions]="iRole"  formControlName="Role"    [spellcheck]="true" inputStyleClass="form-control"  id="RoleId" placeholder="Role (required)" (completeMethod)="searchRole($event)"  [style]="{'width': '100%','display': 'inline-flex','height':'34px'}"  field="name" dataKey="id" [dropdown]="true"></p-autoComplete>
于 2018-09-13T19:58:44.710 回答