【问题标题】:Using p-steps component from PrimeNG in small resolutions在小分辨率下使用 PrimeNG 的 p-steps 组件
【发布时间】:2021-06-02 18:18:45
【问题描述】:

我正在尝试从PrimeNG 缩小p-steps 组件,以防止小屏幕分辨率溢出。这是我当前的代码:

    <div class="d-flex card mb-4">
       <p-steps [model]="items" [(activeIndex)]="currentWizardCard" [readonly]="false"></p-steps>
    </div>

这在大屏幕上看起来不错:Link to image

但是当降低屏幕分辨率时,步骤溢出:Link to image

我想知道是否有办法包装步骤或以不会导致溢出的方式显示它们。

【问题讨论】:

    标签: html angular primeng


    【解决方案1】:

    如果您使用超过 4 个步骤,p-steps 组件在小屏幕分辨率下效果不佳。 对于我的项目,我使用了来自Angular Material Component 的垂直步进器

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-05
      • 1970-01-01
      • 2022-12-11
      • 1970-01-01
      • 2011-06-16
      • 1970-01-01
      相关资源
      最近更新 更多