楼盘表添加层户按钮
Showing
1 changed file
with
16 additions
and
4 deletions
1 | <template> | 1 | <template> |
2 | <div class="addCh"> | 2 | <div class="addCh"> |
3 | <el-table class="addChTable" :data="tableData" style="width: 100%" border> | 3 | <el-table class="addChTable" :data="tableData" style="width: 100%" border> |
4 | <el-table-column prop="cz" width="40" align="center"> | 4 | <el-table-column prop="cz" width="60" align="center"> |
5 | <template slot-scope="scope"> | 5 | <template slot-scope="scope"> |
6 | <span class="cp" @click="handleRowClick(scope.row, scope.$index)">{{ | 6 | <span class="cp" @click="handleRowClick(scope.row, scope.$index)"> |
7 | scope.row.cz | 7 | <i class="iconfont iconicon-test1" style="color:#FA6400;font-size:30px" @click="deleteYtInfo(index)" v-if="scope.row.cz == '+'"></i> |
8 | }}</span> | 8 | <i class="iconfont iconicon-test" style="color:#FA6400;font-size:30px" @click="deleteYtInfo(index)" v-if="scope.row.cz == '-'"></i> |
9 | </span> | ||
9 | </template> | 10 | </template> |
10 | </el-table-column> | 11 | </el-table-column> |
11 | <el-table-column prop="zrzmc" label="自然幢" align="center"> | 12 | <el-table-column prop="zrzmc" label="自然幢" align="center"> |
... | @@ -200,6 +201,17 @@ export default { | ... | @@ -200,6 +201,17 @@ export default { |
200 | } | 201 | } |
201 | .cp { | 202 | .cp { |
202 | cursor: pointer; | 203 | cursor: pointer; |
204 | position: relative; | ||
205 | top: 4px; | ||
206 | } | ||
207 | .el-table .cell{ | ||
208 | line-height: 34px; | ||
209 | } | ||
210 | .el-table .cell, .el-table--border td:first-child .cell, .el-table--border th:first-child .cell{ | ||
211 | padding-left: 5px; | ||
212 | } | ||
213 | .el-table td, .el-table th{ | ||
214 | padding: 4px 0; | ||
203 | } | 215 | } |
204 | } | 216 | } |
205 | </style> | 217 | </style> | ... | ... |
-
Please register or sign in to post a comment