mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 01:04:25 +08:00
code refactor
This commit is contained in:
@@ -26,7 +26,7 @@ const props = defineProps<{
|
|||||||
|
|
||||||
const { tt, getCurrentLanguageInfo } = useI18n();
|
const { tt, getCurrentLanguageInfo } = useI18n();
|
||||||
|
|
||||||
const mapContainer: Ref<HTMLElement | null> = useTemplateRef('mapContainer');
|
const mapContainer = useTemplateRef<HTMLElement>('mapContainer');
|
||||||
const mapInstance: Ref<MapInstance | null> = ref(createMapInstance());
|
const mapInstance: Ref<MapInstance | null> = ref(createMapInstance());
|
||||||
const initCenter: Ref<MapPosition> = ref({
|
const initCenter: Ref<MapPosition> = ref({
|
||||||
latitude: 0,
|
latitude: 0,
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ const emit = defineEmits<{
|
|||||||
}>();
|
}>();
|
||||||
|
|
||||||
const codes: Ref<PinCode[]> = ref([]);
|
const codes: Ref<PinCode[]> = ref([]);
|
||||||
const pinCodeInputs: Ref<HTMLInputElement[]> = useTemplateRef('pin-code-input');
|
const pinCodeInputs = useTemplateRef<HTMLInputElement[]>('pin-code-input');
|
||||||
|
|
||||||
const finalPinCode = computed<string>(() => {
|
const finalPinCode = computed<string>(() => {
|
||||||
let ret = '';
|
let ret = '';
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ const icons = {
|
|||||||
checked: mdiCheck
|
checked: mdiCheck
|
||||||
};
|
};
|
||||||
|
|
||||||
const dropdownMenu: Ref<HTMLElement | null> = useTemplateRef('dropdownMenu');
|
const dropdownMenu = useTemplateRef<HTMLElement>('dropdownMenu');
|
||||||
const itemPerRow: Ref<number> = ref(props.columnCount || 7);
|
const itemPerRow: Ref<number> = ref(props.columnCount || 7);
|
||||||
|
|
||||||
const allColorRows = computed<ColorInfo[][]>(() => {
|
const allColorRows = computed<ColorInfo[][]>(() => {
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ const icons = {
|
|||||||
checked: mdiCheck
|
checked: mdiCheck
|
||||||
};
|
};
|
||||||
|
|
||||||
const dropdownMenu: Ref<HTMLElement | null> = useTemplateRef('dropdownMenu');
|
const dropdownMenu = useTemplateRef<HTMLElement>('dropdownMenu');
|
||||||
const itemPerRow: Ref<number> = ref(props.columnCount || 7);
|
const itemPerRow: Ref<number> = ref(props.columnCount || 7);
|
||||||
|
|
||||||
const allIconRows = computed<IconInfoWithId[][]>(() => {
|
const allIconRows = computed<IconInfoWithId[][]>(() => {
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ const emit = defineEmits<{
|
|||||||
(e: 'info:copied'): void
|
(e: 'info:copied'): void
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const iconCopyToClipboard: Ref<unknown> = useTemplateRef('copyToClipboardIcon');
|
const iconCopyToClipboard = useTemplateRef('copyToClipboardIcon');
|
||||||
|
|
||||||
let clipboardHolder: ClipboardHolder | null = null;
|
let clipboardHolder: ClipboardHolder | null = null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user