Skip to content

Commit

Permalink
feat: expose input ref
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlsndr committed Sep 12, 2023
1 parent 0bbf0e3 commit cf2ced2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Input/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function clear() {
}
defineExpose({
inputRef,
focus,
clear,
});
Expand All @@ -90,7 +91,7 @@ defineExpose({
<slot tag="div" name="prefix" />
</Component>
<input
ref="inputRef"
:ref="inputRef"
v-bind="$attrs"
v-model="inputFieldValue"
:disabled="disabled"
Expand Down

0 comments on commit cf2ced2

Please sign in to comment.