1.1.1 • Published 4 years ago
@aligov/components-department-select v1.1.1
部门选择
@aligov/components-department-select
部门选择
API
参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
---|---|---|---|---|---|
value | 部门 oid | string | |||
onChange | 部门选择变更触发函数 | (oid: strihg, devCoding: string, name: string) => void | |||
latestValue | 最近使用的部门 | IPartOrgData[] | |||
onRemoveLatestItem | 移除一个最近使用的部门 | (item: IPartOrgData) => void | |||
onClearLatest | 清除最近使用的部门 | Function | |||
queryService | 查询组织树的服务 | any => Promise<any> | Call(/operation/org/getOrgTreeByOid) | ||
orgKey | queryService 查询时的组织 id 的参数名 | string | Oid | ||
style | 样式 | {} | |||
selectProps | select组件的props | {} | {} |
当默认的查询服务不符合使用需要时,可替换
queryService
和orgKey
。
只有提供里 latestValue、onRemoveLatestItem 以及 onClear 属性才会启用最近使用的部门功能
IPartOrgData
org,至少包括以下属性
- oid: org id (注意,不是数据库里的常规自增 id,而是类似 code 的概念)
- devCoding
- name