Fix ticket required order id

This commit is contained in:
marzban-dev
2026-05-18 16:02:41 +03:30
parent 2ea4eefb7a
commit e97580b212
2 changed files with 16 additions and 6 deletions
+3 -3
View File
@@ -4,7 +4,7 @@
type Props = {
variant?: "solid" | "outlined";
disabled?: boolean;
modelValue: string;
modelValue: number | string | undefined;
error?: boolean;
options?: string[];
placeholder?: string;
@@ -13,7 +13,7 @@ type Props = {
};
type Emits = {
"update:modelValue": [value: string];
"update:modelValue": [value: number | string | undefined];
};
// props
@@ -34,7 +34,7 @@ const emit = defineEmits<Emits>();
// computed
const selectedValue = computed({
get: () => modelValue.value ?? undefined,
get: () => modelValue.value,
set: (value: string) => emit("update:modelValue", value),
});