migrate to typescript

This commit is contained in:
MaysWind
2024-12-29 14:24:37 +08:00
parent b638a73e4d
commit 2560a70e5e
171 changed files with 3402 additions and 2557 deletions
@@ -41,8 +41,8 @@
</template>
<script>
import { isArray } from '@/lib/common.js';
import { scrollToSelectedItem } from '@/lib/ui.mobile.js';
import { isArray } from '@/lib/common.ts';
import { scrollToSelectedItem } from '@/lib/ui/mobile.js';
export default {
props: [
@@ -85,7 +85,7 @@ export default {
if (isArray(this.items)) {
count = this.items.length;
} else {
for (let field in this.items) {
for (const field in this.items) {
if (!Object.prototype.hasOwnProperty.call(this.items, field)) {
continue;
}