npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@beisen-phoenix/multi-select-list

v3.3.55

Published

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

Downloads

392

Readme

multi-select-list

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

概述

多选下拉选择框

API

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

items

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

| 参数 | 说明 | 类型 | 默认值 | 必须 | | --- | --- | --- | --- | --- | | label | 实际显示的文案 | String | 无 | Yes | | value | 选项的实际值 | String 或 number | 无 | Yes | | disabled | 禁止该选项 | boolean | false | No |

分组数据 | 参数 | 说明 | 类型 | 默认值 | 必须 | | --- | --- | --- | --- | --- | | label | 分组标题 | String | 无 | Yes | | value | 分组值 | String 或 number | 无 | Yes | | children | 分组下选项 | 同上item | 无 | Yes |

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 |