Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要一个像下面这样的按钮。
当我使用 PrimeNG 拆分按钮时,这就是我得到的
如何将其更改为第一张图片中的按钮?我想在表格中使用它
也许你可以使用 PrimeNG 菜单来做到这一点:
<button type="button" pButton pRipple icon="pi pi-plus" (click)="menu.toggle($event)"></button> <p-menu #menu [popup]="true" [model]="items"></p-menu>
见stackblitz