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

@aligov/components-department-select

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aligov/components-department-select

部门选择

1.1.1
latest
74

Supply Chain Security

100

Vulnerability

80

Quality

83

Maintenance

100

License

Version published
Weekly downloads
0
-100%
Maintainers
10
Weekly downloads
 
Created

部门选择

@aligov/components-department-select

部门选择

API

参数名说明必填类型默认值备注
value部门 oidstring
onChange部门选择变更触发函数(oid: strihg, devCoding: string, name: string) => void
latestValue最近使用的部门IPartOrgData[]
onRemoveLatestItem移除一个最近使用的部门(item: IPartOrgData) => void
onClearLatest清除最近使用的部门Function
queryService查询组织树的服务any => Promise<any>Call(/operation/org/getOrgTreeByOid)
orgKeyqueryService 查询时的组织 id 的参数名stringOid
style样式{}
selectPropsselect组件的props{}{}

当默认的查询服务不符合使用需要时,可替换 queryServiceorgKey

只有提供里 latestValue、onRemoveLatestItem 以及 onClear 属性才会启用最近使用的部门功能

IPartOrgData

org,至少包括以下属性

  • oid: org id (注意,不是数据库里的常规自增 id,而是类似 code 的概念)
  • devCoding
  • name

FAQs

Package last updated on 24 Aug 2021

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