赞
踩
- <template>
- <div>
- <el-table
- @selection-change="handleSelectionChange"
- row-key="id"
- :data="list"
- >
- <el-table-column label=" " :reserve-selection="true" type="selection"></el-table-column>
- ......
- </el-table>
- </div>
- </template>
- <script>
- export default {
- data() {
- list: [
- {id: 1, name: '001'},
- {id: 2, name: '002'}
- ],
- objList: []
- },
- methods:{
- handleSelectionChange(val) {
- this.objList = val;
- }
- }
- }
- </script>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。