element UI table 状态显示:禁用-启用 上架-下架

vue2.0+elementUI 解决表单上架下架状态的切换

https://blog.csdn.net/weixin_42507803/article/details/81910297

<el-table-column label="状态" prop="userState" width="100">
                <template scope="scope">
                    <div>
<!--                        {{ scope.row.userState | userState }}-->
                        {{scope.row.userState == 0 ? "启用" : scope.row.userState == 1 ? "禁用" : "解锁"}}
                    </div>
                </template>
            </el-table-column>