🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

dd-rc-multipicker2

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

dd-rc-multipicker2

面向待选择的数据长度过大提供分页功能,以及搜索和全选/非全选功能。

latest
npmnpm
Version
1.4.0
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

多选组件

面向待选择的数据长度过大提供分页功能,以及搜索和全选/非全选功能。

兼容

  • React >= 0.15.x
  • Antd >= 1.x
  • lodash >= 4.x

Install

npm i @didi/dd-rc-multipicker -S

API

Props:

属性说明类型默认值
width选择面板宽度Number400
data选择原数据Array[]
selected已选项Array[]
selectedMaxDisplayNum已选项最大显示数量Number100
defaultPageSize默认每页显示数量Number5
onChange选择更改回调Function(selected, currentItem, currentItemChecked)noop
onRemoveAll删除所有选择Functionnoop
onCurrentPageSelectAll全选当页选项Function(currentPageSelected)noop
onSearch搜索回调Function(searchVal, filteredData)noop
onSelectedClick已选项点击事件回调Function(item)noop

Methods:

  • getSelected 获取已选项
  • setSelected 设定已选项

FAQs

Package last updated on 26 Nov 2020

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