(vue)el-switch转换按钮active-value怎么绑定number的值
属性前加冒号
<el-table-column property="status" label="启用/禁用" width="150">
<template slot-scope="scope">
<el-switch
v-model="scope.row.status"
:active-value="1"
:inactive-value="0"
@change="changeAutograph(scope.row)"
></el-switch>
</template>
</el-table-column>
解决参考:https://www.jb51.net/article/265681.htm