1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-30 22:43:57 +02:00

refactor(frontend): カスタムディレクティブの型付け (#16659)

* refactor(frontend): カスタムディレクティブの型付け

* fix
This commit is contained in:
かっこかり
2025-10-19 11:36:00 +09:00
committed by GitHub
parent 44930342a8
commit d98bf012b5
13 changed files with 158 additions and 94 deletions

View File

@@ -6,8 +6,8 @@
import type { Directive } from 'vue';
import { prefer } from '@/preferences.js';
export default {
mounted(el: HTMLElement, binding, vn) {
export const clickAnimeDirective = {
mounted(el) {
if (!prefer.s.animation) return;
const target = el.children[0];
@@ -37,4 +37,4 @@ export default {
target.classList.add('_anime_bounce_standBy');
});
},
} as Directive;
} as Directive<HTMLElement>;