格式:<:style="{'属性名':三元表达式}">
<el-button :style="{'color':status === true ? '#FF5757':'#757575'}">按钮</el-button>

 

<div id="containes" style="width:100%; height:100%" :class="[cursor ? 'cursorCrosshair' : 'cursorPointer']" />

.cursorCrosshair {
  cursor : crosshair !important;
}
.cursorPointer {
  cursor : pointer !important;
}
 
Logo

前往低代码交流专区

更多推荐