New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

infinitus-custom-contacts

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

infinitus-custom-contacts

infinitus-custom-contacts

  • 0.0.16
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

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}/>

PropertiesDescriptionTypeDefault Values
loadingLoading statusboolfalse
searchResultQuery user data return results ([User & Search Result Data](###User & Search Result Data))object{ records: []}
handleSearchUserHandle search user functionfuncfunction(page, jobs, name, rank, rankClassification), page:Number jobs:obj name:String rank:obj rankClassification:obj
updateSelectUsersUpdate user list when select userfuncfunction(userSelected)
defaultUserSelecteddefault user selectedarray[{id:'abc',name:'CCC'}]
numberColortotal number colorsring#E65653
totalShowTexttotalShowTextstring共选择了$个
radioShowTextwhen user selected on radio, show tip text.string'已经选择'
jobsTextjobs textstring'岗位'
nameTextname textstring'姓名'
rankTextrank textstring'职级'
workNumberNumberworkNumberNumber textstring'工号'
functionTextfunction textstring'岗位'
namePlaceholdername placeholderstring'请输入搜索姓名'
jobsPlaceholderjobs placeholderstring'请选择岗位'
rankPlaceholderrank placeholderstring'请选择职级'
rankTipPlaceholderrankTip placeholderstring'请选择职级分类或级别'
jobsDatajobs select datastring[]
jobsValueKeyjobs select keystring'id'
jobsNameKeyjobs select namestring'name'
rankDatarank select datastring[]
rankValueKeyrank select keystring'id'
rankNameKeyrank select namestring'name'
rankClassificationDatarankClassification select datastring[]
rankClassificationValueKeyrankClassification select keystring'id'
rankClassificationNameKeyrankClassification select namestring'name'
tableColumnsKeyThe query result table columns corresponds to dataIndex, please note that the first name and data echo also correspondarray['name', 'workNumberNumber', 'fun', 'rank', 'jobs'],
tableRowKeytable row key,This value corresponds to the data echostring'id'
emptyTiptable empty tipstring'什么都没有哦~'
tableCheckboxDisabledThe set of keys that need to be forbidden to be selected in the tablearray[]

职级分类或级别数据结构

[
      {
        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

Keywords

FAQs

Package last updated on 23 Dec 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc