1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-24 04:34:13 +02:00
This commit is contained in:
syuilo
2020-09-05 13:04:59 +09:00
parent da5f38f55d
commit 138c9868e8
5 changed files with 39 additions and 22 deletions

View File

@@ -10,6 +10,9 @@
</mk-input>
<mk-button @click="showDialog()">Show</mk-button>
</div>
<div class="_content">
<span>Result: {{ dialogResult }}</span>
</div>
</div>
</div>
</template>
@@ -35,15 +38,16 @@ export default defineComponent({
data() {
return {
dialogTitle: 'Title',
dialogResult: null,
faExclamationTriangle
}
},
methods: {
showDialog() {
this.$root.showDialog({
async showDialog() {
this.dialogResult = await this.$store.dispatch('showDialog', {
title: this.dialogTitle,
})
});
}
}
});