>当我尝试使用此代码时
$column-width: (
first: 210px
second: 200px
third: 100px
)
@each $column, $width in $column-width
.col-#{$column}
width: $width
我遇到了错误
Message:
_sassgrid.sass
Error: unclosed parenthesis
on line 1 of _sass/grid.sass
>> $column-width: ( {
---------------^
我该如何解决它?
SASS 不支持映射的多行语法。
目前的解决方案
$column-width: (first: 210px, second: 200px, third: 100px)