Fix ticket required order id
This commit is contained in:
@@ -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),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user