f8f608fc by liangyifan

按钮显隐

1 parent ac10c1b2
......@@ -13,7 +13,7 @@
<div class="ls-mask-content" ref='contentRef' :style="{'height': contentHeight + 'px'}">
<component :is="editItem" ref='childRef' @loading='loadingFn' :formData='formData' />
</div>
<div class="ls-mask-footer">
<div class="ls-mask-footer" v-if='btnShow'>
<el-button type="primary" @click="onConfirm">{{confirmText}}</el-button>
<el-button @click="onCancel">{{cancelText}}</el-button>
</div>
......@@ -26,6 +26,7 @@ export default {
name: 'index',
data () {
return {
btnShow:false,
title: '提示',
cancelText: '取消',
confirmText: '确认',
......