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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@beisen-cmps/ux-m-platform-user-select

v0.1.14

Published

# UserSelect人员选择

Readme

组件使用、扩展文档

UserSelect人员选择

用于人员选择

UI规则

  1. 分为导航栏、搜索区、选人区。

  2. 选人区域,点击一个人员后,展示在搜索区中的已选人员区域。

  3. 已选人员在搜索区展示,点击已选人员头像,删除该人。

  4. 在搜索框内,如没有输入搜索内容,点击删除,最后一个人置灰,连续点击两次删除键,删除该人。

  5. 如果当前有置灰的人,此时在列表中选择了一个新的人员,则置灰取消。

  6. 点击搜索区域搜索人员,输入后显示搜索结果,搜索内容高亮,选择后在搜索区展示已选人员。

  7. 人员单选,选择一个人员后,退出人员选择页面。

  8. 人员多选,选择人员后,点击确定,退出人员选择页面。

  9. 导航栏区域,人员多选,展示返回、清空、确定,三个按钮,人员单选,展示返回、清空两个按钮。点击按钮后退出人员选择页面

  10. 搜索图标:选择区域有人时、搜索框获取焦点时均不显示图标

    weuser

API

TextArea props

| name | description | type | default | | ----------------- | ------------------ | --------------------- | ------- | | cls | 自定义container css | String | '' | | style | 自定义container style | Object | {} | | title | 标题 | String | '' | | singleSelect | 是否为单选 | Boolean | | | pop_type | 弹层类型searchItem为筛选项 | String | | | usersList | 人员列表 | Array | [] | | defaultUsers | 默认人员列表 | Array | [] | | selectedDatas | 当前表单中已选中的人员 | Array | [] | | fetchDefaultUsers | 请求默认人员列表回调 | Function | | | fetchSearchUsers | 搜索人员时回调 | Function(value) | | | handleCancel | 点击取消回调 | Function | | | handleConfirm | 点击确定回调 | Function(event, data) | | | onClearValue | 点击清空回调 | Function | | | | | | |