Commit f73e1342d20b07cff3a9b7f4a03b4a296e25711c
1 parent
e8c5e648
Exists in
master
and in
1 other branch
Scheme组件支持隐藏查看按钮
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
packages/scheme/index.vue
| ... | ... | @@ -98,7 +98,7 @@ |
| 98 | 98 | <div class="eagle-scheme__table-operation" slot-scope="slotScope"> |
| 99 | 99 | <!-- 表格操作栏插槽 - 前置插槽 --> |
| 100 | 100 | <slot v-if="$scopedSlots['table-operation-btn'] || $slots['table-operation-btn']" name="table-operation-btn"></slot> |
| 101 | - <el-button class="eagle-scheme__table-btn" type="text" icon="el-icon-view" title="查看" @click="handleView(slotScope)"></el-button> | |
| 101 | + <el-button v-if="option.showViewBtn !== false" class="eagle-scheme__table-btn" type="text" icon="el-icon-view" title="查看" @click="handleView(slotScope)"></el-button> | |
| 102 | 102 | <el-button class="eagle-scheme__table-btn" type="text" icon="el-icon-edit" title="编辑" @click="handleEdit(slotScope)"></el-button> |
| 103 | 103 | <eagle-confirm class="eagle-scheme__table-btn" title="是否删除?" @confirm="handleDelete('one', slotScope)"> |
| 104 | 104 | <el-button type="text" icon="el-icon-delete" title="删除"></el-button> | ... | ... |