将 Material-2.0.0-b2 升级到 b3
Upgrading Material-2.0.0-b2 to b3
自从我将我的 material 更新到 beta3 后,我注意到了重大变化。
我的样式表是由另一位设计师使用深度导入编写的,例如:
@import '~@angular/material/core/style/variables';
@import '~@angular/material/toolbar/toolbar';
@include toolbar-responsive-height($mat-toolbar-height-desktop);
产生类似 Undefined Variable
或 File to import not found or unreadable
的错误
如何为 material beta3 解决这个问题?
深度导入不再适用于 beta3,因此您必须将其替换为
@import '~@angular/material/theming';
另请注意,beta3 现在依赖于 Angular 4,因此请务必检查更新日志的 "Breaking Changes" 部分
https://github.com/angular/material2/blob/master/CHANGELOG.md
自从我将我的 material 更新到 beta3 后,我注意到了重大变化。 我的样式表是由另一位设计师使用深度导入编写的,例如:
@import '~@angular/material/core/style/variables';
@import '~@angular/material/toolbar/toolbar';
@include toolbar-responsive-height($mat-toolbar-height-desktop);
产生类似 Undefined Variable
或 File to import not found or unreadable
如何为 material beta3 解决这个问题?
深度导入不再适用于 beta3,因此您必须将其替换为
@import '~@angular/material/theming';
另请注意,beta3 现在依赖于 Angular 4,因此请务必检查更新日志的 "Breaking Changes" 部分
https://github.com/angular/material2/blob/master/CHANGELOG.md