Skip to content

Commit 9c5c0df

Browse files
feat(Textarea): expose autoResize method (#6120)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
1 parent 6aba2ea commit 9c5c0df

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

docs/content/docs/2.components/textarea.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ When accessing the component via a template ref, you can use the following:
261261
| Name | Type |
262262
| ---- | ---- |
263263
| `textareaRef`{lang="ts-type"} | `Ref<HTMLTextAreaElement \| null>`{lang="ts-type"} |
264+
| `autoResize`{lang="ts-type"} | `() => void`{lang="ts-type"} |
264265

265266
## Theme
266267

src/runtime/components/Textarea.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ onMounted(() => {
206206
})
207207
208208
defineExpose({
209-
textareaRef
209+
textareaRef,
210+
autoResize
210211
})
211212
</script>
212213

0 commit comments

Comments
 (0)