Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 896 Bytes

README.md

File metadata and controls

53 lines (34 loc) · 896 Bytes

vue-awesome-textarea

🐱Auto resize textarea component for Vue2.x

Support

  • Vue2.x
  • Vue3.x
  • Typescript

Install

npm install vue-awesome-textarea --save

// or

yarn add vue-awesome-textarea

Usage

// main.js

import VueAwesomeTextarea from 'vue-awesome-textarea'

Vue.use(VueAwesomeTextarea)

// xxx.vue

<template>
  <vue-awesome-textarea />
</template>

Option Props

  • autoResize (Boolean, default: false)
    Auto resize the textarea, autoResize is effective after set v-model of textarea
  • minHeight (Number)
    Textarea's minHeight, minHeight is effective after set autoResize: true
  • maxHeight (Number)
    Textarea's maxHeight, maxHeight is effective after set autoResize: true

Events

  • getRows (Params: row)
    Emmited when autoResize is true and textarea rows has been changed

LICENSE

MIT