element/packages/input-number
2016-10-26 11:22:13 +08:00
..
src add support for change by keyboard event (#648) 2016-10-26 11:22:13 +08:00
cooking.conf.js Support publish component packages 2016-10-17 12:14:10 +08:00
index.js Add istanbul ignore (#521) 2016-10-19 22:48:35 +08:00
package.json Clear dependencies 2016-10-13 11:12:24 +08:00
README.md Initial commit 2016-07-27 14:15:02 +08:00

el-input

A el-input component for Vue.js.

Demo

http://element-component.github.io/el-input

Installation

npm i el-input -D

Usage

import Vue from 'vue'
import ElInput from 'el-input'
import 'element-theme-default/dist/input.css'

Vue.use(ElInput)

or

import Vue from 'vue'
import { ElInput } from 'el-input'

Vue.component('el-input', ElInput)

Options

name description type default
model 绑定值,需双向绑定 string number
placeholder 输入框占位文本 string
suggestion 输入建议 string[]
disabled 是否禁用 boolean false
cache 是否需要缓存 boolean false
effect 输入框效果,允许 text, number, special string text

Development

make dev

# test
make test

# build
make build

License

MIT