1.0.15 • Published 4 years ago

@cloud-sn/v-input v1.0.15

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

#v-input


Vue Input Component( 暂时只有 textarea 组件 )

Development

yarn

yarn start

Example

http://localhost:8000/example/default.html

Feature

  • Support IE9+, Chrome, Firefox

Install

npm config set @cloud-sn:registry http://snpm.cnsuning.com

yarn add @cloud-sn/v-pagination

Usage

import Vue from 'vue';
import {VTextarea} from '@cloud-sn/v-input';

API

VTextarea

Props

参数名描述类型默认
prefixCls类名前缀stringv-input
autoSize自适应文本高度boolean|Object{minRows, maxRows}false
disabled是否禁用booleanfalse
value传入值string

以及原生 textarea 自带的属性

Events

事件名描述回调
input触发 v-model 绑定的值更新Function(val)
on-change值改变时触发Function(e:Event)
on-press-enter按下 enter 按钮时触发Function(e:Event)
on-key-down按下除 enter 之外的按钮触发Function(e:Event)