mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 14:34:13 +08:00
40 lines
790 B
Vue
40 lines
790 B
Vue
<template>
|
|
<q-card class="q-dialog-plugin">
|
|
<q-card-section>
|
|
<div class="text-h5" align="center" v-text="options.title"></div>
|
|
</q-card-section>
|
|
<q-card-section class="q-gutter-lg">
|
|
<div v-for="(label, index) in options.labels" :key="index">
|
|
<q-btn
|
|
class="full-width"
|
|
color="primary"
|
|
:label="label"
|
|
@click="clickOK(label, index)"
|
|
/>
|
|
</div>
|
|
</q-card-section>
|
|
</q-card>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
results: this.values,
|
|
};
|
|
},
|
|
props: {
|
|
options: Object,
|
|
},
|
|
methods: {
|
|
hide() {
|
|
this.$emit("hide");
|
|
},
|
|
clickOK(label, index) {
|
|
this.$emit("clickOK", { id: index, text: label });
|
|
this.hide();
|
|
},
|
|
},
|
|
};
|
|
</script>
|