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
@@ -36,7 +36,7 @@ import { useI18n } from '@/locales/helpers.ts';
import type { ColorValue, ColorInfo } from '@/core/color.ts';
import { arrayContainsFieldValue } from '@/lib/common.ts';
import { getColorsInRows } from '@/lib/color.ts';
import { scrollToSelectedItem } from '@/lib/ui/mobile.js';
import { scrollToSelectedItem } from '@/lib/ui/mobile.ts';
const props = defineProps<{
modelValue: ColorValue;
@@ -64,7 +64,7 @@ import {
getTimeValues,
getCombinedDateAndTimeValues
} from '@/lib/datetime.ts';
import { createInlinePicker } from '@/lib/ui/mobile.js';
import { createInlinePicker } from '@/lib/ui/mobile.ts';
export default {
props: [
+1 -1
View File
@@ -36,7 +36,7 @@ import { useI18n } from '@/locales/helpers.ts';
import type { IconInfo, IconInfoWithId } from '@/core/icon.ts';
import { arrayContainsFieldValue } from '@/lib/common.ts';
import { getIconsInRows } from '@/lib/icon.ts';
import { scrollToSelectedItem } from '@/lib/ui/mobile.js';
import { scrollToSelectedItem } from '@/lib/ui/mobile.ts';
const props = defineProps<{
modelValue: string;
@@ -32,7 +32,7 @@
</template>
<script>
import { scrollToSelectedItem } from '@/lib/ui/mobile.js';
import { scrollToSelectedItem } from '@/lib/ui/mobile.ts';
export default {
props: [
+1 -1
View File
@@ -69,7 +69,7 @@
import { type Ref, ref, computed } from 'vue';
import { useI18n } from '@/locales/helper.js';
import { useI18nUIComponents } from '@/lib/ui/mobile.js';
import { useI18nUIComponents } from '@/lib/ui/mobile.ts';
import { useUserStore } from '@/stores/user.ts';
import { ALL_CURRENCIES } from '@/consts/currency.ts';
@@ -70,7 +70,7 @@ import { useUserStore } from '@/stores/user.ts';
import { ScheduledTemplateFrequencyType } from '@/core/template.ts';
import { sortNumbersArray } from '@/lib/common.ts';
import { scrollToSelectedItem } from '@/lib/ui/mobile.js';
import { scrollToSelectedItem } from '@/lib/ui/mobile.ts';
export default {
props: [
@@ -80,7 +80,7 @@ import { mapStores } from 'pinia';
import { useTransactionTagsStore } from '@/stores/transactionTag.js';
import { copyArrayTo } from '@/lib/common.ts';
import { scrollToSelectedItem } from '@/lib/ui/mobile.js';
import { scrollToSelectedItem } from '@/lib/ui/mobile.ts';
export default {
props: [
@@ -42,7 +42,7 @@
<script>
import { isArray } from '@/lib/common.ts';
import { scrollToSelectedItem } from '@/lib/ui/mobile.js';
import { scrollToSelectedItem } from '@/lib/ui/mobile.ts';
export default {
props: [
@@ -66,7 +66,7 @@ import {
getItemByKeyValue,
getPrimaryValueBySecondaryValue
} from '@/lib/common.ts';
import { scrollToSelectedItem } from '@/lib/ui/mobile.js';
import { scrollToSelectedItem } from '@/lib/ui/mobile.ts';
export default {
props: [