怎么实现图中的效果,在表格当中实现选择的效果,有哪位做过啊.elementui里面的el-table是否可以实现呢
1条回答 默认 最新
关注 这个用div就可以做,非要用el-table 就只能这样
<template> <div> <el-table :data="tableData" :show-header="false"> <el-table-column> <template slot-scope="scope"> <el-input v-model="scope.row.column1"></el-input> </template> </el-table-column> <el-table-column> <template slot-scope="scope"> <el-input v-model="scope.row.column2"></el-input> </template> </el-table-column> <el-table-column> <template slot-scope="scope"> <el-input v-model="scope.row.column3"></el-input> </template> </el-table-column> </el-table> </div> </template> <script> export default { data() { return { tableData: [ { column1: '', column2: '', column3: '' }, { column1: '', column2: '', column3: '' }, { column1: '', column2: '', column3: '' }, ], }; }, }; </script>
解决 无用评论 打赏 举报
悬赏问题
- ¥20 Wpf Datarid单元格闪烁效果的实现
- ¥15 图像分割、图像边缘提取
- ¥15 sqlserver执行存储过程报错
- ¥100 nuxt、uniapp、ruoyi-vue 相关发布问题
- ¥15 浮窗和全屏应用同时存在,全屏应用输入法无法弹出
- ¥100 matlab2009 32位一直初始化
- ¥15 Expected type 'str | PathLike[str]…… bytes' instead
- ¥15 三极管电路求解,已知电阻电压和三级关放大倍数
- ¥15 ADS时域 连续相位观察方法
- ¥15 Opencv配置出错