效果图:
HTML部分:
<el-button @click="addRow">新增</el-button>
<el-table
:data="tableData"
border
@cell-dblclick="celledit"
style="width: 100%;">
<el-table-column type="index"></el-table-column>
<el-table-column
prop="date"
label="日期"
>
<template slot-scope="scope">
<el-date-picker v-if="scope.row.date.edit"
v-model="scope.row.date.value"
ref="date"
style="width: 100%"
size="mini"