mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-22 16:05:12 +00:00
refactor
This commit is contained in:
parent
1f6a41cea7
commit
7c2d2676f7
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ import MkReactionIcon from '@/components/MkReactionIcon.vue';
|
|||
import * as os from '@/os';
|
||||
import { useTooltip } from '@/scripts/use-tooltip';
|
||||
import { $i } from '@/account';
|
||||
import MkPlusOneEffect from '@/components/MkPlusOneEffect.vue';
|
||||
import MkReactionEffect from '@/components/MkReactionEffect.vue';
|
||||
|
||||
const props = defineProps<{
|
||||
reaction: string;
|
||||
|
@ -61,7 +61,7 @@ const anime = () => {
|
|||
const rect = buttonEl.value.getBoundingClientRect();
|
||||
const x = rect.left + 16;
|
||||
const y = rect.top + (buttonEl.value.offsetHeight / 2);
|
||||
os.popup(MkPlusOneEffect, { reaction: props.reaction, x, y }, {}, 'end');
|
||||
os.popup(MkReactionEffect, { reaction: props.reaction, x, y }, {}, 'end');
|
||||
};
|
||||
|
||||
watch(() => props.count, (newCount, oldCount) => {
|
||||
|
|
Loading…
Reference in a new issue