@beisen/Textarea

BeisenCloudComponents-textarea

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@beisen/Textarea
Minified + gzip package size for @beisen/Textarea in KB

Readme

Textarea

项目简介

本项目为textarea文本输入框。对本项目有任何疑问或建议,欢迎联系~(邮箱:mengshuai@beisen.com)

项目运行

  1. cnpm install 或 npm install

  2. npm run dev (开发环境打包、项目启动,默认端口 port:8080)

  3. npm run test (测试用例)

  4. npm run build (生产环境打包)

Textarea参数

  {
    hidden: false,
    disabled: false,
    readOnly: false,
    maxlength: 2000, //文本域允许字数最大值
    onClick:function(val){console.log(val)},
    onFocus:function(val){console.log(val)},
    onChange:function(val){console.log(val)},
    onBlur:function(val){console.log(val)}
  }

调用方法

1.安装npm组件包

npm install @beisen/Textarea --save-dev

2.引用组件

import Textarea from "@beisen/Textarea"

3.传入参数


  state = {
    hidden: false,
    disabled: false,
    readOnly: false,
    maxlength: 2000, //文本域允许字数最大值
    onClick:function(val){console.log(val)},
    onFocus:function(val){console.log(val)},
    onChange:function(val){console.log(val)},
    onBlur:function(val){console.log(val)}
  }

  render () {
    return (
      <div>
          <Textarea {...this.state} />
      </div>
    )
  }

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.