🐱Auto resize textarea component for Vue2.x
- Vue2.x
- Vue3.x
- Typescript
npm install vue-awesome-textarea --save
// or
yarn add vue-awesome-textarea
// main.js
import VueAwesomeTextarea from 'vue-awesome-textarea'
Vue.use(VueAwesomeTextarea)
// xxx.vue
<template>
<vue-awesome-textarea />
</template>
autoResize(Boolean, default:false)
Auto resize the textarea, autoResize is effective after set v-model of textareaminHeight(Number)
Textarea's minHeight, minHeight is effective after setautoResize: truemaxHeight(Number)
Textarea's maxHeight, maxHeight is effective after setautoResize: true
getRows(Params: row)
Emmited whenautoResizeis true and textarea rows has been changed
MIT