vue-awesome-textarea

1.0.2 • Public • Published

vue-awesome-textarea

🐱Auto resize textarea component for Vue2.x

Support

  • [x] 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
  • minHeight (Number)
    Textarea's minHeight
  • maxHeight (Number)
    Textarea's maxHeight, even set autoResize: true, maxHeight still effective

Events

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

LICENSE

MIT

Package Sidebar

Install

npm i vue-awesome-textarea

Weekly Downloads

1

Version

1.0.2

License

none

Unpacked Size

31 kB

Total Files

7

Last publish

Collaborators

  • chenjianfeng93