1.3.2 • Published 2 years ago

dollars0427-el-input-tag v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

El Input Tag

(It is a fork verion of https://github.com/xiispace/el-input-tag which only of own use) a input tag editor component of Element UI

中文 README

Props

AttributeDescriptionTypeAccepted ValuesDefault
sizesize of inputstringmini / small / medium
readonlywhether input is readonlybooleanfalse
typecomponent typestringsuccess/info/warning/danger
hitwhether Tag has a highlighted borderbooleanfalse
colorbackground color of the Tagstring
effectcomponent themestringdark/light/plainlight

Usage

npm/cnpm i el-input-tag --save

  • global
import ElInputTag from 'el-input-tag'
Vue.use(ElInputTag)
  • component
import {ElInputTag} from 'el-input-tag'

export default {
    components: {ElInputTag}
}

Sample

<div>
    <el-form :model="form" ref="form">
      <el-form-item>
        <el-input-tag v-model="form.tags"></el-input-tag>
      </el-form-item>
    </el-form>
</div>

Attention

Add el Tag Component before use