642b2203 by 任超

style:弹框组件修改完成

1 parent b62b0fdf
......@@ -15,7 +15,7 @@
</div>
<div slot="footer" class="dialog_footer" ref="dialogFooter" v-if="isButton">
<div class="dialog_button">
<el-button @click="closeDialog(false)" v-if="isReset">取消</el-button>
<el-button @click="closeDialog" v-if="isReset">取消</el-button>
<el-button type="primary" plain @click="submitForm" v-if="isSave" :loading="saveloding">
{{ saveButton }}</el-button>
</div>
......@@ -34,10 +34,6 @@ export default {
type: Boolean,
default: true,
},
multiple: {
type: Boolean,
default: true,
},
width: {
type: String,
default: '70%',
......@@ -93,23 +89,13 @@ export default {
submitForm () {
this.key++
this.$emit('input', false)
if (!this.multiple) {
this.$parent.submitForm()
} else {
this.$emit('submitForm');
}
},
closeDialog () {
this.key++
this.$emit('input', false)
if (!this.multiple) {
if (this.$parent.closeDialog) {
this.$parent.closeDialog()
}
} else {
this.$emit('closeDialog');
}
}
},
}
</script>
......