Update reaction-picker.vue

This commit is contained in:
syuilo 2020-09-06 18:43:24 +09:00
parent d79a1a4e0e
commit 7f01aad576
1 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<XModal :source="source" ref="popup" @closed="() => { $emit('closed'); destroyDom(); }" v-hotkey.global="keymap"> <XModal :source="source" ref="popup" @closed="destroy" v-hotkey.global="keymap">
<div class="rdfaahpb"> <div class="rdfaahpb">
<div class="buttons" ref="buttons" :class="{ showFocus }"> <div class="buttons" ref="buttons" :class="{ showFocus }">
<button class="_button" v-for="(reaction, i) in rs" :key="reaction" @click="react(reaction)" :tabindex="i + 1" :title="reaction" v-particle><x-reaction-icon :reaction="reaction"/></button> <button class="_button" v-for="(reaction, i) in rs" :key="reaction" @click="react(reaction)" :tabindex="i + 1" :title="reaction" v-particle><x-reaction-icon :reaction="reaction"/></button>
@ -23,6 +23,13 @@ export default defineComponent({
}, },
props: { props: {
destroy: {
required: true
},
emit: {
required: true
},
source: { source: {
required: true required: true
}, },