将Material-2.0.0-b2升级到b3

时间:2017-05-10 22:01:07

标签: angular angular-material2

由于我将材料更新为beta3,因此我注意到了重大变化。 我的样式表是由另一位设计师的深度导入编写的,例如:

@import '~@angular/material/core/style/variables';
@import '~@angular/material/toolbar/toolbar';
@include toolbar-responsive-height($mat-toolbar-height-desktop);

产生错误,例如Undefined VariableFile to import not found or unreadable

如何解决材料beta3的问题?

1 个答案:

答案 0 :(得分:2)

深度导入不再适用于beta3,因此您必须使用

替换它们

@import '~@angular/material/theming';

另请注意,beta3现在依赖于Angular 4,因此请务必查看更改日志的“重大更改”部分

https://github.com/angular/material2/blob/master/CHANGELOG.md

相关问题