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

infinitus-custom-contacts

v0.0.16

Published

infinitus-custom-contacts

Downloads

2

Readme

infinitus-custom-contacts

infinitus-custom-contacts

中文文档

威发微服务选人组件/Wafer microservice selection component

GitHub license npm NPM downloads

Example

Example

How to use

install

yarn add infinitus-custom-contacts

React

import Contacts from 'infinitus-custom-contacts';

<Contacts {...props}/>

Properties | Description | Type | Default Values ------------- | ------------- | --------------| ------------- loading | Loading status | bool | false searchResult | Query user data return results ([User & Search Result Data](###User & Search Result Data)) | object | { records: []} handleSearchUser | Handle search user function | func | function(page, jobs, name, rank, rankClassification), page:Number jobs:obj name:String rank:obj rankClassification:obj updateSelectUsers | Update user list when select user | func | function(userSelected) defaultUserSelected | default user selected | array | [{id:'abc',name:'CCC'}] numberColor | total number color | sring | #E65653 totalShowText | totalShowText | string | 共选择了$个 radioShowText | when user selected on radio, show tip text. | string | '已经选择' jobsText | jobs text | string | '岗位' nameText | name text | string | '姓名' rankText | rank text | string | '职级' workNumberNumber | workNumberNumber text | string | '工号' functionText | function text | string | '岗位' namePlaceholder | name placeholder | string | '请输入搜索姓名' jobsPlaceholder | jobs placeholder | string | '请选择岗位' rankPlaceholder | rank placeholder | string | '请选择职级' rankTipPlaceholder | rankTip placeholder | string | '请选择职级分类或级别' jobsData | jobs select data | string | [] jobsValueKey | jobs select key | string | 'id' jobsNameKey | jobs select name | string | 'name' rankData | rank select data | string | [] rankValueKey | rank select key | string | 'id' rankNameKey | rank select name | string | 'name' rankClassificationData | rankClassification select data | string | [] rankClassificationValueKey | rankClassification select key | string | 'id' rankClassificationNameKey | rankClassification select name | string | 'name'
tableColumnsKey | The query result table columns corresponds to dataIndex, please note that the first name and data echo also correspond | array | ['name', 'workNumberNumber', 'fun', 'rank', 'jobs'], tableRowKey | table row key,This value corresponds to the data echo| string | 'id' emptyTip | table empty tip | string | '什么都没有哦~' tableCheckboxDisabled | The set of keys that need to be forbidden to be selected in the table | array | []

职级分类或级别数据结构

[
      {
        id: 1,
        parentId: 0,
        children: [
          {
            id: 3,
            parentId: 1,
            children: [
              {
                id: 4,
                parentId: 3,
                children: [
                  {
                    id: 5,
                    parentId: 4,
                    children: [],
                    name: '院校农信',
                  },
                ],
                name: '高新农信',
              },
            ],
            name: '潍坊农信',
          },
        ],
        name: '山东农信',
      },
  ]

User & Search Result Data

const columns = [ { title: nameText, dataIndex: 'name', }, { title: workNumberNumber, dataIndex: 'workNumberNumber', }, { title: functionText, dataIndex: 'fun', }, { title: rankText, dataIndex: 'rank', }, { title: jobsText, dataIndex: 'jobs', } ];


 {
      records: [
        {
          id: 1,
          name:'abc',
          workNumberNumber:12,
          fun:'aaa',
          rank:'bbb',
          jobs:'ttt' 
        },
	   ......
      ],
      total: 11,
      size: 10,
      current: 1,
      searchCount: true,
      pages: 1,
    },

Development

$ git clone https://github.com/wafersystems/react-contacts.git
$ yarn
$ yarn start