<el-switch active-text="启用" :active-value=1 active-color="#2fa1f1" inactive-text="停用" :inactive-value=0 inactive-color="#9c9c9c" v-model="scope.row.tradingVolumeStatus" @change="handleStatusChange(scope.row)"/> <!--当tradingVolumeStatus=1时switch开启,当tradingVolumeStatus=0时switch...
在使⽤element-ui的el-switch中,因为要⽤v-for循环,⼀直没有成功,后来仔细查看⽂档,发现可以这样写 <el-switch v-for="(item, key) in list" v-model="item.is" :key="key" :active-value="1" :inactive-value="0" active-text="确定" inactive-text="取消"></el-switch> 任务要求...
><el-buttontype="primary"@click="updateCashStatusConfirm($index)">确定调整</el-button ><template#reference><el-switch:active-value="row.wager == 1 || row.wager == 3"style="--el-switch-on-color: #1fd0a3"class="ml-2":before-change="saleBeforeChange"/></template></el-popover>2022...
}// 删除看板/文件夹constdeleteBillboard= (data: IGetBillboardListTreeItem) => {emit('delete', data) }// 选择看板consthandleSwitchBillboard= (data: IGetBillboardListTreeItem) => {if(data.type==='dir')returnif(data.id=== props.billboardId)returnemit('switch', data) }// #endregion...