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:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user