1.@click不光可以绑定方法,也可以就地修改data里的数据
代码示例代码如下:
2.@click绑定多个操作的时候用;隔开
代码示例代码如下:
<el-table>
<el-table-column fixed="right" label="操作" width="120"> <template slot-scope="scope"> <el-button @click="dialogFormVisible1 = true;row=scope.$index;onejilu=scope.row" type="text" size="small" >移除</el-button> </template> </el-table-column>
</el-table>
data() { return { dialogFormVisible1: false, row: "", onejilu: "", }; },