| | |
| | | * @Author: sakuya |
| | | * @Date: 2023年2月9日12:32:26 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-17 22:09:27 |
| | | * @LastEditTime: 2024-06-23 23:49:36 |
| | | --> |
| | | |
| | | <template> |
| | | <div class="sc-form-table" ref="scFormTable"> |
| | | <el-table :data="data" ref="table" border stripe> |
| | | <el-table :data="data" ref="table" border stripe @row-click="rowClick" highlight-current-row> |
| | | <el-table-column type="index" width="50" fixed="left"> |
| | | <template #header> |
| | | <el-button v-if="!hideAdd" type="primary" icon="el-icon-plus" size="small" circle |
| | |
| | | //根据index删除 |
| | | deleteRow(index) { |
| | | this.data.splice(index, 1) |
| | | }, |
| | | rowClick(row) { |
| | | this.$emit('row-click', row) |
| | | } |
| | | } |
| | | } |