This commit is contained in:
wchino
2026-06-13 17:38:25 +08:00
parent e7e938f261
commit 7b33d9f9fa
190 changed files with 23222 additions and 4336 deletions

View File

@@ -7,19 +7,24 @@ const props = defineProps<{
id: string;
selectionCode?: string;
selectionName: string;
selectionDisplayName?: string;
odds: string;
}[];
isSelected: (id: string) => boolean;
compact?: boolean;
locked?: boolean;
lineValue?: string | number | null;
}>();
const emit = defineEmits<{ pick: [id: string] }>();
const { t } = useI18n();
function label(sel: (typeof props.selections)[number]) {
if (sel.selectionDisplayName?.trim()) return sel.selectionDisplayName;
if (sel.selectionCode) {
return resolveSelectionLabel(t, sel.selectionCode, sel.selectionName);
return resolveSelectionLabel(t, sel.selectionCode, sel.selectionName, {
lineValue: props.lineValue,
});
}
return sel.selectionName;
}