0.0.52 • Published 6 months ago

people-picker-react-test v0.0.52

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago
people-picker react版本使用文档

安装:

npm install people-picker-react --registry https://gtsartifact.jfrog.io/artifactory/api/npm/pwc-cn-gts-bs-fcs-npm/

引入组件:

import PeoplePicker from 'people-picker-react';

代码

<PeoplePicker
  params={{ queryType: "Staff", termFlag: "ALL" }}
  selectProps={{
    disabled: false,
    size: "large",
    mode: 'multiple',
    placeholder: "Please Search Users",
  }}
  defaultValue={peopleDefaultData}
  onSelect={peopleChange}
/>

Attributes

ParameterDescriptionTypeDefaults
selectPropsselect属性objectselectProps 默认属性
params后端接口参数object{ queryType: "All", termFlag: "ALL" }
defaultValue指定默认选中条目object[][]

selectProps Attributes

支持select透传 | Parameter | Description | Type | Defaults | | ----------- | ---------------- | -------- | --------------| | disabled | 是否禁用 | boolean | false | | mode | 设置 Select 的模式为多选或标签,不填为单选 | multiple | tags | - | | placeholder | 选择框默认文本 | string | Please Search User | | size | 选择框大小 | large | middle | small | middle | | ... | ... | ... | ... |

params

ParameterDescriptionTypeDefaults
queryType搜索数据类型,支持 Staff, All, GroupstringStaff
termFlag“ALL”查询所有人员, “N”只查在职人员, “Y”只查离职人员stringN
0.0.52

6 months ago

0.0.51

6 months ago

0.0.50

6 months ago

0.0.49

6 months ago

0.0.48

7 months ago

0.0.47

7 months ago

0.0.46

7 months ago

0.0.45

7 months ago

0.0.44

7 months ago

0.0.43

7 months ago