Browse Source

feat:[模板管理][暂存]

ouqian
luojie 1 month ago
parent
commit
6c426a3cda
1 changed files with 19 additions and 0 deletions
  1. +19
    -0
      src/components/Template/CustomTable.vue

+ 19
- 0
src/components/Template/CustomTable.vue View File

@ -6,6 +6,11 @@
<div v-if="showSort" class="custom-table-cell header-cell sort-cell"> <div v-if="showSort" class="custom-table-cell header-cell sort-cell">
序号 序号
</div> </div>
<div class = "custom-table-cell header-cell c-cell">
<div class="checkbox-item">
<el-checkbox></el-checkbox>
</div>
</div>
<div v-for="(col, index) in columns" :key="index" class="custom-table-cell header-cell" <div v-for="(col, index) in columns" :key="index" class="custom-table-cell header-cell"
:style="getCellWidth(col)"> :style="getCellWidth(col)">
<div class="header-cell-content"> <div class="header-cell-content">
@ -40,6 +45,11 @@
<div v-if="showSort" class="custom-table-cell body-cell sort-cell"> <div v-if="showSort" class="custom-table-cell body-cell sort-cell">
{{ rowIndex + 1 }} {{ rowIndex + 1 }}
</div> </div>
<div class = "custom-table-cell body-cell c-cell">
<div class="checkbox-item">
<el-checkbox></el-checkbox>
</div>
</div>
<div v-for="(col, colIndex) in columns" :key="colIndex" class="custom-table-cell body-cell" <div v-for="(col, colIndex) in columns" :key="colIndex" class="custom-table-cell body-cell"
:style="getCellWidth(col)"> :style="getCellWidth(col)">
<div class="inner-table-cell"> <div class="inner-table-cell">
@ -1165,4 +1175,13 @@ export default {
border-radius: 4px; border-radius: 4px;
border: 1px solid #ff5d5d; border: 1px solid #ff5d5d;
} }
.checkbox-item{
/* width: 50px; */
display: flex;
align-items: center;
justify-content: center;
}
.c-cell{
width: 50px;
}
</style> </style>

Loading…
Cancel
Save