migrate mobile ui utils to typescript

This commit is contained in:
MaysWind
2025-01-11 00:53:22 +08:00
parent 8da3d2aa35
commit b2e36a24fd
25 changed files with 88 additions and 65 deletions
-10
View File
@@ -1,10 +0,0 @@
import { autoChangeTextareaSize } from '@/lib/ui/mobile.js';
export default {
mounted(el) {
autoChangeTextareaSize(el);
},
updated(el) {
autoChangeTextareaSize(el);
}
}
+10
View File
@@ -0,0 +1,10 @@
import { autoChangeTextareaSize } from '@/lib/ui/mobile.ts';
export default {
mounted(el: HTMLElement): void {
autoChangeTextareaSize(el);
},
updated(el: HTMLElement): void {
autoChangeTextareaSize(el);
}
}