【问题标题】:Angular <mat-select> dropdown is not working along with nebular themeAngular <mat-select> 下拉菜单不能与星云主题一起使用
【发布时间】:2020-05-08 12:24:06
【问题描述】:

我正在尝试与星云组件一起实现(角度材质 UI) 但是当相同的组件/模块具有星云导入时不起作用。如果我删除 nebular 模块 mat-select 的导入。

使用 nebular 版本 4.1.1 和 angular material 版本 8.2.3

这是我的 stackblitz 解决方法,您可以清楚地看到选择下拉菜单不起作用。 https://stackblitz.com/edit/github-ngmzqm?file=src%2Fapp%2Fhome%2Fhome.component.html

【问题讨论】:

  • 同样,我想在星云组件中使用 mat-table?是否可以将 mat-table 与 nebular 一起使用?

标签: angular angular-material


【解决方案1】:

只要确保你的 app.component.html 中有这个。

<nb-layout>
    <nb-layout-column>
        <router-outlet></router-outlet>
    </nb-layout-column>
</nb-layout>

【讨论】:

    【解决方案2】:

    还有另一个论坛讨论这个..你可以看看here.. 他们谈到仅对一个组件使用 nb 主题,并避免它与其他组件中的材质 ui 发生冲突

    【讨论】:

      猜你喜欢
      • 2020-09-01
      • 2021-10-11
      • 2021-08-15
      • 1970-01-01
      • 2021-07-29
      • 2018-10-06
      • 2016-01-22
      • 2014-11-16
      • 1970-01-01
      相关资源
      最近更新 更多