Commit b2520e58 by 前端

弹框

1 parent 818f9de9
...@@ -33,6 +33,10 @@ export default { ...@@ -33,6 +33,10 @@ export default {
return {}; return {};
}, },
props: { props: {
isAutoClose: {
type: Boolean,
default: true,
},
position: { position: {
type: String, type: String,
default: "center", default: "center",
...@@ -74,7 +78,7 @@ export default { ...@@ -74,7 +78,7 @@ export default {
this.$emit("cancel"); this.$emit("cancel");
}, },
confirm() { confirm() {
this.$refs.tips.close(); if (this.isAutoClose) this.$refs.tips.close();
this.$emit("confirm"); this.$emit("confirm");
}, },
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!