我正在做一些 Jmeter 板,我需要使用p-calendar过滤一些东西。我想让这个组件看起来像另一个:
正如你所看到的,第一个问题是p-selectButton元素,它占用了太多的空间。我真的不需要它更小,我只是想让它适合在线。如果日历组件变宽并不重要,在我看来,我认为这比减少selectButton组件要好。
这是我的代码:
<p-calendar [view]='calendarView'>
<ng-template pTemplate='header'>
<p-selectButton [options]='timeViewOpions' [(ngModel)]='timeView' [multiple]='false' optionLabel='name'
optionValue='value' (onChange)='onTimeViewChange()'></p-selectButton>
</ng-template>
</p-calendar>
字符串
这将是宏伟的,如果你以某种方式帮助我,使它的功能。主要问题是显示的p-选择按钮,但如果你能帮助我的功能,这将是伟大的!非常感谢你
1条答案
按热度按时间fhity93d1#
解决方案是添加styleClass flex
字符串