mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 22:51:25 +08:00
取消v-close-popup
This commit is contained in:
parent
b0e03950e7
commit
94ad624fb8
@ -9,7 +9,6 @@
|
|||||||
class="full-width"
|
class="full-width"
|
||||||
color="primary"
|
color="primary"
|
||||||
:label="label"
|
:label="label"
|
||||||
v-close-popup
|
|
||||||
@click="clickOK(label, index)"
|
@click="clickOK(label, index)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -28,8 +27,12 @@ export default {
|
|||||||
options: Object,
|
options: Object,
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
hide() {
|
||||||
|
this.$emit("hide");
|
||||||
|
},
|
||||||
clickOK(label, index) {
|
clickOK(label, index) {
|
||||||
this.$emit("clickOK", { id: index, text: label });
|
this.$emit("clickOK", { id: index, text: label });
|
||||||
|
this.hide();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -7,15 +7,8 @@
|
|||||||
{{ options.message }}
|
{{ options.message }}
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-card-section class="flex justify-end q-gutter-sm">
|
<q-card-section class="flex justify-end q-gutter-sm">
|
||||||
<q-btn flat label="取消" color="grey" v-close-popup />
|
<q-btn flat label="取消" color="grey" @click="hide" />
|
||||||
<q-btn
|
<q-btn flat autofocus label="确定" color="primary" @click="clickOK()" />
|
||||||
flat
|
|
||||||
autofocus
|
|
||||||
label="确定"
|
|
||||||
color="primary"
|
|
||||||
v-close-popup
|
|
||||||
@click="clickOK()"
|
|
||||||
/>
|
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
</template>
|
</template>
|
||||||
@ -23,8 +16,12 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
methods: {
|
methods: {
|
||||||
|
hide() {
|
||||||
|
this.$emit("hide");
|
||||||
|
},
|
||||||
clickOK() {
|
clickOK() {
|
||||||
this.$emit("clickOK", true);
|
this.$emit("clickOK", true);
|
||||||
|
this.hide();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
@ -11,14 +11,14 @@
|
|||||||
:label="label"
|
:label="label"
|
||||||
:hint="options.hints[index]"
|
:hint="options.hints[index]"
|
||||||
hide-hint
|
hide-hint
|
||||||
autofocus
|
:autofocus="index === 0"
|
||||||
@keyup.enter="clickOK"
|
@keyup.enter="clickOK"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-card-actions align="right">
|
<q-card-actions align="right">
|
||||||
<q-btn color="negative" label="取消" v-close-popup />
|
<q-btn color="negative" label="取消" @click="hide" />
|
||||||
<q-btn color="blue-9" label="确定" @click="clickOK" v-close-popup />
|
<q-btn color="blue-9" label="确定" @click="clickOK" />
|
||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
</q-card>
|
</q-card>
|
||||||
</template>
|
</template>
|
||||||
@ -34,8 +34,12 @@ export default {
|
|||||||
options: Object,
|
options: Object,
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
hide() {
|
||||||
|
this.$emit("hide");
|
||||||
|
},
|
||||||
clickOK() {
|
clickOK() {
|
||||||
this.$emit("clickOK", this.results);
|
this.$emit("clickOK", this.results);
|
||||||
|
this.hide();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -16,7 +16,14 @@
|
|||||||
<!-- waitButton 单独一个 -->
|
<!-- waitButton 单独一个 -->
|
||||||
<q-dialog seamless position="right" style="z-index: 9999" v-model="showWb">
|
<q-dialog seamless position="right" style="z-index: 9999" v-model="showWb">
|
||||||
<q-card>
|
<q-card>
|
||||||
<q-btn color="primary" :label="wbLabel" @click="wbEvent" v-close-popup />
|
<q-btn
|
||||||
|
color="primary"
|
||||||
|
:label="wbLabel"
|
||||||
|
@click="
|
||||||
|
showWb = false;
|
||||||
|
wbEvent();
|
||||||
|
"
|
||||||
|
/>
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
}"
|
}"
|
||||||
/>
|
/>
|
||||||
<div class="fixed-bottom-right q-pa-md q-gutter-sm">
|
<div class="fixed-bottom-right q-pa-md q-gutter-sm">
|
||||||
<q-btn round color="blue-grey" icon="arrow_back" v-close-popup />
|
<q-btn round color="blue-grey" icon="arrow_back" @click="hide" />
|
||||||
<q-btn round color="primary" icon="done" @click="clickOK" />
|
<q-btn round color="primary" icon="done" @click="clickOK" />
|
||||||
</div>
|
</div>
|
||||||
</q-card>
|
</q-card>
|
||||||
@ -36,8 +36,12 @@ export default {
|
|||||||
options: Object,
|
options: Object,
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
hide() {
|
||||||
|
this.$emit("hide");
|
||||||
|
},
|
||||||
clickOK() {
|
clickOK() {
|
||||||
this.$emit("clickOK", this.result);
|
this.$emit("clickOK", this.result);
|
||||||
|
this.hide();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user