LESS class name string interpolation not working

前端 未结 1 1259
闹比i
闹比i 2020-12-22 10:41

I am currently translating my grid into LESS, but I can\'t seem to figure out string interpolation.

Here\'s helper class that is supposed to generate all my columns:

相关标签:
1条回答
  • 2020-12-22 10:50

    Escaped selector interpolation is deprecated in 1.4.x, use

    .col@{index} {
         width: @baseWidth * @index;
    }
    

    instead.

    0 讨论(0)
提交回复
热议问题