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

lee-selector

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lee-selector

参考文档: http://markdown.p2hp.com/index.html # lee-selector

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

参考文档: http://markdown.p2hp.com/index.html

lee-selector

An Amazing Select Component For Vue2

Install & Use

npm install lee-selector
#or
yarn add lee-selector

Import and register component

Global

import Vue from 'vue'
import VueAmazingSelector from 'lee-selector'
Vue.use(VueAmazingSelector)

Local

<template>
  <LeeSelector
    :options="options"
    label="label"
    value="value"
    placeholder="请选择"
    :disabled="false"
    :width="160"
    :height="36"
    :num="6"
    v-model="selectedValue"
    @change="onChange" />
</template>
<script>
import { LeeSelector } from 'vue-amazing-selector'
export default {
  components: {
    LeeSelector
  }
}
</script>

Props

属性说明类型默认值
options选项数据Array[]
label选择器字典项的文本字段名Stringlabel
value选择器字典项的值字段名Stringvalue
placeholder选择框默认文字String请选择
disabled是否禁用下拉Booleanfalse
allowClear是否支持清除Booleanfalse
width选择框宽度Number200
height选择框高度Number36
num下拉面板最多能展示的下拉项数,超过后滚动显示Number6
selectedValue(v-model)当前选中的option条目/Number/Stringnull

Events

事件名说明返回值
change选择某项下拉后的回调函数value, label, index(value值,label文本值,index索引值)

FAQs

Package last updated on 06 Apr 2023

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