elment表格中插入输入框,控制输入框的显示与隐藏
直接上代码
<el-table
:key="TableIndex"
:data="tableData2"
border
stripe
:empty-text="emptytext"
current-row-key="index"
:height="450"
:header-cell-style="{color:'rgba(0,0,0,.8)',background:'#f9f9f9'}"
style="width: 100%; height: calc(100% - 40px);">
<el-table-column
min-width='120'
align="center"
:show-overflow-tooltip="true"
label="分配数量">
<template slot-scope="scope">
<el-input v-if="scope.row.flag" v-model="scope.row.fenpei_num" placeholder="请输入内容"></el-input>