element/packages/input
cinwell.li 55dfb0c296 Refactor/datepicker (#1623)
* DatePicker: replace native input with el-input

* DatePicker: support size prop, closes #1069, closes #1440

* DatePicker: show correct date for initial value, fixed #1129

* TimePicker: fix empty value when panel appears, fixed #1583

* DatePicker: trigger clickoutside when clicking icon, fixed #1604

* DatePicker: fix year type in year panel, fixed #1607

* DatePicker: fix test

* DatePicker: add doc
2016-12-09 00:06:34 +08:00
..
src Refactor/datepicker (#1623) 2016-12-09 00:06:34 +08:00
cooking.conf.js Support publish component packages 2016-10-17 12:14:10 +08:00
index.js Components: use es2015 export module, fixed #907 2016-11-08 15:01:00 +08:00
package.json fix package.json url 2016-11-06 12:26:14 +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