sk5212121 2023-06-03 18:44 采纳率: 10%
浏览 32

vue 怎么实现图中效果

怎么实现图中的效果,在表格当中实现选择的效果,有哪位做过啊.elementui里面的el-table是否可以实现呢

img

  • 写回答

1条回答 默认 最新

  • 冰点. 全栈领域优质创作者 2023-06-03 18:53
    关注

    这个用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>
    
    
    评论

报告相同问题?

问题事件

  • 创建了问题 6月3日

悬赏问题

  • ¥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配置出错