Angular 使用 fxLayoutWrap 的 Flex-Layout 网格换行符
Angular Flex-Layout Grid Line Break with fxLayoutWrap
我曾经能够使用 fxLayoutWrap 在 angular 弹性布局中创建带换行符的网格。
好像不行了。无论我在 fxFlex 中输入什么数字,div 都不会转到下一行。我看到了示例 ,但我无法让它在我这边工作。
<div fxLayout="row" fxLayout.xs="column" fxLayoutWrap="wrap">
<div
fxFlex.gt-xs="50%"
[fxFlex.gt-md]="regularDistribution"
*ngFor="let country of countries">{{ country }}
</div>
</div>
我降级了 "@angular/flex-layout": "2.0.0-beta.10-4905443",
在 package.json 中,它又开始工作了...
我曾经能够使用 fxLayoutWrap 在 angular 弹性布局中创建带换行符的网格。
好像不行了。无论我在 fxFlex 中输入什么数字,div 都不会转到下一行。我看到了示例
<div fxLayout="row" fxLayout.xs="column" fxLayoutWrap="wrap">
<div
fxFlex.gt-xs="50%"
[fxFlex.gt-md]="regularDistribution"
*ngFor="let country of countries">{{ country }}
</div>
</div>
我降级了 "@angular/flex-layout": "2.0.0-beta.10-4905443", 在 package.json 中,它又开始工作了...