添加 closeWaitBtn

This commit is contained in:
fofolee
2022-04-22 23:16:10 +08:00
parent 81147b02eb
commit 0f9f003c0a
4 changed files with 34 additions and 12 deletions

View File

@@ -4,6 +4,7 @@
seamless
position="right"
@hide="onDialogHide"
style="z-index: 9999"
>
<q-card>
<q-btn color="primary" :label="label" @click="onOKClick" v-close-popup />
@@ -16,8 +17,10 @@ export default {
props: {
label: String,
},
mounted(){
console.log(this);
mounted() {
quickcommand.closeWaitBtn = () => {
this.$refs?.dialog?.hide();
};
},
emits: ["ok", "hide"],
methods: {