<el-table
:header-cell-style="{ background: '#0c2c5d' }"
stripe
v-loading="tableConfig.tableLoading"
:data="tableConfig.tableData"
style="width: 100%"
:height="tableConfig.istableHeight ? tableConfig.istableHeight : tableConfig.tHeight"
@row-click="$rowClick"
@selection-change="$handleSelectionChange"
@row-dblclick="$doubleClick"
@current-change="$handleCurrentChange"
:highlight-current-row = "tableConfig.highlight"
ref="multipleTable" >
<el-table-column width="65" v-if="tableConfig.rowSelection ==='radio' ">
<template slot-scope="scope">
<el-radio v-model="templateSelection" :label&#
ele 自定义table 的checkbox改成radio,radio点击会掉两次接口
最新推荐文章于 2023-12-28 13:14:33 发布
本文主要探讨如何在Vue ElementUI的表格组件中将默认的复选框(Checkbox)替换为单选框(Radio),并详细解析在实现过程中遇到的单选框点击导致接口被调用两次的问题,提供解决方案。
摘要由CSDN通过智能技术生成