New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@beisen-phoenix/multi-select-list

Package Overview
Dependencies
Maintainers
1
Versions
429
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beisen-phoenix/multi-select-list

## 注意:该组件即将废弃,我们将不再新增特性。如需使用新特性请替换为该组件:@beisen-phoenix/select-list

  • 3.3.55
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
528
increased by4700%
Maintainers
1
Weekly downloads
 
Created
Source

multi-select-list

注意:该组件即将废弃,我们将不再新增特性。如需使用新特性请替换为该组件:@beisen-phoenix/select-list

概述

多选下拉选择框

API

参数说明类型默认值必须
size下拉框的宽度大小(small:170px, middle:340px, auto)StringautoNo
isSearch是否支持搜索功能,支持会有一个搜索框展示出来BooleanfalseNo
items下拉框的列表数据ArrayYes
fontSize字体尺寸(small: 12px, large: 14px)StringsmallNo
defaultSelectedItems当前被选择项的集合ArrayNo
searchPlaceHolder带搜索框模式时,搜索框的占位符String搜索No
noBorder是否展示默认边框和阴影booleantrueNo
CustomComponent插入自定义组件React (JSX.Element)No
loading数据是否正在加载中booleanfalseNo
onChange发生状态变化后的回调,返回值 (items: Array)FunctionNo
showCheckAll是否支持开启全选功能BooleantrueNo
showFooter是否显示底部确定按钮BooleanfalseNo
onConfirm点击确定按钮回调,返回值 (item: Array)FunctionNo
validateSearch搜索内容校验规则,返回值里的 info 会出现在搜索框下方作为提示信息,val 会被设置为最终输入值, clearTipAfter 多少毫秒后提示消失(val: string) => { value: string, info: string,clearTipAfter?:number }No
isGroup是否为分组复选booleanfalseNo
caseSensitive搜索时是否大小写敏感 (2019-10-14新增api)booleanfalse
autoFocus首次挂载时是否自动获取焦点(2019-10-15新增)booleanfalse

items

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

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

分组数据

参数说明类型默认值必须
label分组标题StringYes
value分组值String 或 numberYes
children分组下选项同上itemYes

ChangeLog

1.1.21

升级toolitp版本,解决zIndex层级问题

2019-07-10

新增api | extraCls | 自定义组件容器class,一般用于覆盖组件默认样式使用| string | 无| No | 移除 api maxHeight 如需自定义样式 请使用extraCls

2019-08-17

新增 | showCheckAll | 是否支持开启全选功能 | Boolean | true | No | | showFooter | 是否显示底部确定按钮 | Boolean | false | No | | onConfirm | 点击确定按钮回调,返回值 (item: Array) | Function | 无 | No

2019-09-07

新增 | isGroup | 是否为分组复选 | boolean | false | No |

FAQs

Package last updated on 25 Nov 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