mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 15:37:33 +08:00
code refactor
This commit is contained in:
@@ -43,9 +43,9 @@ const emit = defineEmits<{
|
||||
(e: 'info:copied'): void
|
||||
}>();
|
||||
|
||||
const iconCopyToClipboard: Ref<HTMLElement> = useTemplateRef('copyToClipboardIcon');
|
||||
const iconCopyToClipboard: Ref<unknown> = useTemplateRef('copyToClipboardIcon');
|
||||
|
||||
let clipboardHolder: ClipboardHolder = null;
|
||||
let clipboardHolder: ClipboardHolder | null = null;
|
||||
|
||||
function makeCopyToClipboardClickable() {
|
||||
if (clipboardHolder) {
|
||||
|
||||
@@ -13,7 +13,7 @@ const { style, getAccountIcon, getCategoryIcon } = useItemIcon(props);
|
||||
|
||||
const f7IconValue = computed<string>(() => {
|
||||
if (props.iconType === 'fixed-f7') {
|
||||
return props.iconId;
|
||||
return props.iconId.toString();
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
@@ -25,7 +25,7 @@ const icon = computed<string>(() => {
|
||||
} else if (props.iconType === 'category') {
|
||||
return getCategoryIcon(props.iconId);
|
||||
} else if (props.iconType === 'fixed') {
|
||||
return props.iconId;
|
||||
return props.iconId.toString();
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user