有没有办法在 SASS/SCSS 的 @function 中使用 @mixin?
Is there a way to use @mixin within a @function in SASS/SCSS?
有没有办法在 @include
的函数中使用 mixin?
我试过了 Error: This at-rule is not allowed here.
。
它只是一个检查参数类型的调试函数。
没有。 Sass 文档指出 @function
at-rule
...can only contain universal statements, as well as the @return at-rule which indicates the value to use as the result of the function call.
@include
规则不是通用语句。
有没有办法在 @include
的函数中使用 mixin?
我试过了 Error: This at-rule is not allowed here.
。
它只是一个检查参数类型的调试函数。
没有。 Sass 文档指出 @function
at-rule
...can only contain universal statements, as well as the @return at-rule which indicates the value to use as the result of the function call.
@include
规则不是通用语句。