wxml中的attribute是否能支持换行?

发布于 6 年前作者 yang7610418 次浏览最后编辑 6 年前来自 ask
在开发过程中会使用prettier对wxml格式化,但是由于wxml中的attribute不支持换行,在一些比较长的表达式中需要手动加prettier-ignore

希望可以这样写也不报错:

class="grid fw {{ x.month === month ? '' : 'notCurrent' }} {{ x.date === today ? 'today' : '' }} {{
   x.date == beSelectDate ? 'choice' : ''
}}"
0 回复
暂无回复