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

ac-selector

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ac-selector

Selector ui component for react

  • 2.0.0-beta.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
decreased by-75.76%
Maintainers
1
Weekly downloads
 
Created
Source

ac-selector

Build Status

简介

用友中台选人组件,目前只有智能产品部-消息组和预警在用。目前只支持从服务端获取数据。

依赖

  • react >= 15.3.0
  • react-dom >= 15.3.0
  • prop-types >= 15.6.0
  • tinper-bee

使用方法

  npm i ac-Selector
  import Selector from 'ac-Selector'
  import 'ac-Selector/build/Selector.css'

API

参数说明类型是否必填默认值返回值
show是否显示模态框booleanfalse
onConfirm确认回调函数func() => {}选中的用户
onClose取消回调函数func() => {}
selectedUser已选的用户列表array[]
selectedOther已选的其他列表array[]
mode环境区分stringdaily
documentNo单据编号stringst_purchaseorder规则选人查询数据必传参数

onConfirm回调函数参数说明

  • 参数一(userList)数据结构 选择的用户
  {
    type:'用户',
    typeCode: 0,
    userid:'用户id',
    username:'用户名',
    mobile:'手机号',
    email:'用户邮箱',
    orgName:'用户部门',
  }
  • 参数二(otherList)数据结构
  角色
  {
    type: '角色',
    typeCode: 1,
    roleId: '角色id',
    roleCode: '角色code',
    roleName: '角色名称'
  }
  组织
  {
    type: '组织',
    typeCode: 2,
    orgId: '组织ID',
    orgName: '组织名称'
  }
  规则
  {
    type: '规则',
    typeCode: 3,
    ruleCode: '规则code',
    ruleName: '规则名称'
  }

TODO

  • 用户自定义展示标签

Keywords

FAQs

Package last updated on 10 Jul 2019

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