<el-table-column label="是否启用">
<template slot-scope="scope">
<el-switch v-model="scope.row.status"
active-color="#409eff"
inactive-color="#cccccc"
:active-value="1"
:inactive-value="0"></el-switch>
</template>
</el-table-column>
Element 中switch绑定值为0和1
猜你喜欢
转载自blog.csdn.net/qq2942713658/article/details/114803591
今日推荐
周排行