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

recruit-tag-checkbox

v2.0.101

Published

## 参数说明

Downloads

15

Readme

recruit-tag-checkbox 使用说明

参数说明

    const option = {
        showPop: false,
        popTitle: '选择猎头公司',
        isGroupable: true, // 是否可以分组选择
        isMultiple: false, // 单多选模式,分组模式下默认为多选
        maxSelected: 5, // 最多可勾选数量
        maxErrorMsg: '最多选择5家猎头公司', //超出最大数量提示
        isFetching: false, // 是否正在加载,true时为loading动画
        tagData: [
            {
                text: '分组1'
                ,tagId: 100
            }
            ,{
                text: '分组1'
                ,tagId: 101
            }
            ,{
                text: '分组2'
                ,tagId: 102
            }
        ]  // 分组标签区域数据
        ,headerData: [
            {
                text: '公司名称'
                ,key: 'companyName'
            }
            ,{
                text: '标签'
                ,key: 'tagName'
            }
            ,{
                text: '备注'
                ,key: 'remarks'
            }
        ]  // 列表表头数据
        ,listData: [
            {
                items: {
                    companyName: '北森111'
                    ,tagName: '分组1'
                    ,remarks: '11111'
                }
                ,itemId: 10001
                ,tagId: 100 // 分组ID,不显示在列表中
                ,selectedName: '北森111' // 列表选中后在结果区期望显示的内容
            }
            ,{
                items: {
                    companyName: '北森222'
                    ,tagName: '分组1'
                    ,remarks: '22222'
                }
                ,itemId: 10002
                ,tagId: 100
                ,selectedName: '北森222'
            }
            ,{
                items: {
                    companyName: '北森333'
                    ,tagName: '分组2'
                    ,remarks: '33333'
                }
                ,itemId: 10003
                ,tagId: 101
                ,selectedName: '北森333'
            }
            ,{
                items: {
                    companyName: '北森444'
                    ,tagName: '分组2'
                    ,remarks: '44444'
                }
                ,itemId: 10004
                ,tagId: 101
                ,selectedName: '北森444'
            }
            ,{
                items: {
                    companyName: '北森555'
                    ,tagName: '分组3'
                    ,remarks: '55555'
                }
                ,itemId: 10005
                ,tagId: 102
                ,selectedName: '北森555'
            }
            ,{
                items: {
                    companyName: '北森666'
                    ,tagName: '分组3'
                    ,remarks: '66666'
                }
                ,itemId: 10006
                ,tagId: 102
                ,selectedName: '北森666'
            }
        ]  //列表数据
        ,selectedData: [
            {
                itemId: 10004
                ,isChecked: true
                ,selectedName: '北森444'
                ,tagId: 101
            }
        ] //已选数据
        ,searchResults: [] // 搜索请求回来的数据
        ,searchSubmit: function(data) {
            self.search(); // enent值为event.target
        } // 搜索数据回调方法
        ,popSubmit: function(data) {
        } // 弹窗确定按钮回调方法
        ,popCancel: function() {} // 弹窗取消按钮回调方法
        ,onClickTag: function(tagId) {
                console.log(tagId) 
        } // 点击标签回调方法
    }