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

  • 1.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
61
decreased by-51.2%
Maintainers
1
Weekly downloads
 
Created
Source

ac-selector

Build Status

简介

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

依赖

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

使用方法

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

API

参数说明类型是否必填默认值返回值
show是否显示模态框booleanfalse
onConfirm确认回调函数func() => {}选中的用户
onClose取消回调函数func() => {}
remoteUserUrl获取用户列表urlstring
remoteRoleUrl获取角色列表urlstring
remoteOrgUrl获取组织列表urlstring
selectedUser已选的用户列表array[]
selectedOther已选的其他列表array[]

onConfirm回调函数参数说明

  • 参数一(userList)数据结构
  {
    id:'用户id',
    name:'用户名',
    dept:'用户部门',
    email:'用户邮箱',
    phone:'手机号',
    type:'所属类型(用户、角色、组织或规则)',
    typeCode: '角色类型编码'
  }
  • 参数二(otherList)数据结构
  {
    roleId: '角色id',
    roleCode: '角色code',
    roleName: '角色名称',
    type: '所属类型(用户、角色、组织或规则)',
    typeCode: '角色类型编码'
  }

TODO

  • 组织
  • 规则

Keywords

FAQs

Package last updated on 24 Jun 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