vue.js中内联样式style三元表达式

xiaoxiao2021-03-01  27

<ul :style="{'height':toggleMenu[index] ? 0 : `${item.subMenus.length*45}px`}"></ul>

 

【1】当需要过渡的属性初始值为 auto 时,不会进行过渡。

转载请注明原文地址: https://www.6miu.com/read-4199948.html

最新回复(0)