Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@beisen-phoenix/single-select-list

Package Overview
Dependencies
Maintainers
1
Versions
418
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beisen-phoenix/single-select-list

@beisen-phoenix/single-select-list

  • 3.0.0-rc.90
  • npm
  • Socket score

Version published
Weekly downloads
28
decreased by-26.32%
Maintainers
1
Weekly downloads
 
Created
Source

Single-select-list

概述

单选下拉选择框

API

参数说明类型默认值必须
size下拉框的宽度大小(small:170px, middle:340px, auto)StringautoNo
isSearch是否支持搜索功能,支持会有一个搜索框展示出来BooleanfalseNo
items下拉框的列表数据ArrayYes
searchWord搜索文案StringNo
fontSize字体尺寸(small: 12px, large: 14px)StringsmallNo
maxListNum首屏展示多少行,超过通过滚动显示Number8No
selectedValue被选择的值,可做默认值String 或 NumberNo
searchPlaceHolder带搜索框模式时,搜索框的占位符String搜索No
noBorder是否展示默认边框和阴影booleantrueNo
CustomComponent插入自定义组件React 组件No
loading数据是否正在加载中booleanfalseNo
onChange发生状态变化后的回调,返回值 (value: String)FunctionNo

items

传人的列表数据是数组,每一项的结构如下:

参数说明类型默认值必须
label实际显示的文案StringYes
value选项的实际值String 或 NumberYes
disabled禁止该选项booleanfalseNo

多语言

参数说明类型默认值
translation语言包 用于翻译组件内置常量{noData: string,search: string}{noData: '这里什么都没有...',search: '搜索'}

FAQs

Package last updated on 30 Jul 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc