Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mlmoravek committed Jul 8, 2024
1 parent 47ec8c8 commit 6c59ab6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/oruga/src/components/dropdown/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ const props = withDefaults(defineProps<DropdownProps<T, IsMultiple>>(), {
teleport: () => getOption("dropdown.teleport", false),
});
type ModelValue = typeof props.modelValue;
const emits = defineEmits<{
/**
* modelValue prop two-way binding
Expand Down Expand Up @@ -103,8 +105,6 @@ const emits = defineEmits<{
(e: "scroll-end"): void;
}>();
type ModelValue = typeof props.modelValue;
/** The selected item value */
// const vmodel = defineModel<ModelValue>({ default: undefined });
const vmodel = useVModel<ModelValue>();
Expand Down
2 changes: 1 addition & 1 deletion packages/oruga/src/components/input/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ defineOptions({
});
const props = withDefaults(defineProps<InputProps<IsNumber>>(), {
override: undefined,
modelValue: undefined,
// number: false,
override: undefined,
type: "text",
size: getOption("input.size"),
variant: getOption("input.variant"),
Expand Down

0 comments on commit 6c59ab6

Please sign in to comment.