|
@@ -0,0 +1,66 @@
|
|
|
+<template>
|
|
|
+ <el-dialog
|
|
|
+ :modal="modal"
|
|
|
+ :title="title"
|
|
|
+ :visible.sync="visible"
|
|
|
+ :fullscreen="fullscreen"
|
|
|
+ :key="reload"
|
|
|
+ :before-close="handleCancel"
|
|
|
+ :modal-append-to-body="false"
|
|
|
+ :width="width"
|
|
|
+ :show-close="false"
|
|
|
+ :destroy-on-close="destroy"
|
|
|
+ >
|
|
|
+ <!-- 表格主体部分 -->
|
|
|
+ <slot></slot>
|
|
|
+ </el-dialog>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ props: {
|
|
|
+ visible: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false,
|
|
|
+ },
|
|
|
+ title: {
|
|
|
+ type: String,
|
|
|
+ default: "",
|
|
|
+ },
|
|
|
+ reload: {
|
|
|
+ type: Number,
|
|
|
+ default: 0,
|
|
|
+ },
|
|
|
+ width: {
|
|
|
+ type: String,
|
|
|
+ default: "500px",
|
|
|
+ },
|
|
|
+ fullscreen: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false,
|
|
|
+ },
|
|
|
+ modal: {
|
|
|
+ type: Boolean,
|
|
|
+ default: true,
|
|
|
+ },
|
|
|
+ destroy: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ // 确定的回调
|
|
|
+ handleConfirm() {
|
|
|
+ this.$emit("confirm", false);
|
|
|
+ },
|
|
|
+ // 取消的回调
|
|
|
+ handleCancel() {
|
|
|
+ this.$emit("cancel", false);
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style></style>
|