如何更改 primeng 自动完成倍数的宽度?

How to change the width of a primeng autocomplete multiple?

我是 Angular 的新手,我正在尝试更改 primeng 自动完成组件的宽度以填充 table 的列,我已经尝试使用

style="width: 100%"

但这行不通;我也尝试在 html 上进行设置,但没有任何变化

[style]="{'width':'100%'}" [inputStyle]="{'width':'100%'}" class="p-autocomplete"

现状:

我没能做到的:

primeng 版本:9.0.0

link 代码:https://stackblitz.com/edit/primeng-tablebasic-demo-p9egw5?file=src/app/app.component.html

我的英语很差,但你可以测试一下

<td class="p-fluid">
            <!-- <input type="text" style="width: 100%" /> -->
            <p-autoComplete [(ngModel)]="texts" [suggestions]="results" (completeMethod)="search($event)"
                [multiple]="true">
            </p-autoComplete>
</td>

希望对您有所帮助。

您使用哪个浏览器?从 Chrome 开始,它看起来符合预期 enter image description here

对我来说就是这样,字体:https://github.com/primefaces/primeng/issues/1552

 <td>
    <div class="ui-fluid">
        <p-autoComplete 
           styleClass="wid100"
           [(ngModel)]="texts" 
           [suggestions]="results"
           (completeMethod)="search($event)" 
           [multiple]="true">
        </p-autoComplete>
    </div>
 </td>