按钮显隐
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -13,7 +13,7 @@ | ... | @@ -13,7 +13,7 @@ |
| 13 | <div class="ls-mask-content" ref='contentRef' :style="{'height': contentHeight + 'px'}"> | 13 | <div class="ls-mask-content" ref='contentRef' :style="{'height': contentHeight + 'px'}"> |
| 14 | <component :is="editItem" ref='childRef' @loading='loadingFn' :formData='formData' /> | 14 | <component :is="editItem" ref='childRef' @loading='loadingFn' :formData='formData' /> |
| 15 | </div> | 15 | </div> |
| 16 | <div class="ls-mask-footer"> | 16 | <div class="ls-mask-footer" v-if='btnShow'> |
| 17 | <el-button type="primary" @click="onConfirm">{{confirmText}}</el-button> | 17 | <el-button type="primary" @click="onConfirm">{{confirmText}}</el-button> |
| 18 | <el-button @click="onCancel">{{cancelText}}</el-button> | 18 | <el-button @click="onCancel">{{cancelText}}</el-button> |
| 19 | </div> | 19 | </div> |
| ... | @@ -26,6 +26,7 @@ export default { | ... | @@ -26,6 +26,7 @@ export default { |
| 26 | name: 'index', | 26 | name: 'index', |
| 27 | data () { | 27 | data () { |
| 28 | return { | 28 | return { |
| 29 | btnShow:false, | ||
| 29 | title: '提示', | 30 | title: '提示', |
| 30 | cancelText: '取消', | 31 | cancelText: '取消', |
| 31 | confirmText: '确认', | 32 | confirmText: '确认', | ... | ... |
-
Please register or sign in to post a comment