New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

el-select

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

el-select

A el-select component for Vue.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
2
Created
Source

el-select

A el-select component for Vue.js.

dependencies

  • vue-clickoutside

Demo

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

Installation

npm i el-select -D

Usage

  import vue from 'Vue'

  // require vue-clickoutside
  import VueClickoutside from 'vue-clickoutside'

  Vue.use(VueClickoutside)

  // import component
  import Component from 'el-select'
  import 'element-theme-default/dist/select.css'

  Vue.use(Component)

or

import {
  ElSelect,
  ElOption,
  ElOptionGroup
} from 'el-select'

Vue.component('el-select', ElSelect)
Vue.component('el-option', ElOption)
Vue.component('el-option-group', ElOptionGroup)

API

el-elect

参数说明类型可选值默认值
model绑定值string, string[]
type显示类型, search 会带搜索框,multiple 允许多选stringnormal, search, multiplenormal
placeholder输入框占位文本string
hint-placeholder获取焦点后显示的占位文本string
search-placeholder搜索框占位内容string
search-model搜索结果绑定值string
disabled禁用booleantrue, falsefalse
change选中值后的回调函数, 返回当前选中的值function

el-option

参数说明类型可选值默认值
label显示值,可选string
value真实值string
remark额外信息,将显示在右边string
disabled禁用booleantrue, falsefalse

el-option-group

参数说明类型可选值默认值
hide-title隐藏标题booleantrue, falsefalse
hide-list隐藏列表booleantrue, falsefalse
title真实值分组标题

Development

make dev

## test
make test

## build
make build

License

MIT

Keywords

element

FAQs

Package last updated on 13 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts