2.4.7 • Published 5 years ago

@beisen/ocean-person-selector-input v2.4.7

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago
属性说明类型必须配置默认值
status状态描述(可选值包括 'normal' 'disabled' 'error')stringnormal
value已选值{Name:string,Id:number,Email:string,AvatarColor:string,DepartmentId:number}[]no[]
trigger自定义dom(用来触发弹层)JSX.Element@beisen-phoenix/input
apiPath接口请求前缀,形如(http://www.italent-inc.cn)stringyes(仅在使用内置APi模式下需要)
tenantIdBSGlobal.tenantInfo中的Idstring、numberyes(仅在使用内置APi模式下需要)
userIdBSGlobal.loginUserInfo中的Idstring、numberyes(仅在使用内置APi模式下需要)
onSure点击确定按钮后的回调(val: array): voidno
onErrorfetch数据发生error后的回调(er: error): voidno
onCancel点击取消按钮后的回调Functionno
onChange高级模式下数据变动回调Functionno
advanceMode高级/普通模式开关boolyes
translation多语言翻译文字objectno请参考下面的translate说明
hideTabs隐藏一个或者多个tab(暂不支持隐藏所有)arrayno请参考下面的hideTabs说明
hideAdvanceModeText普通模式下隐藏'高级模式'文字boolnofalse
dataProvideByExternalPromise组件是否使用外部数据boolnofalse
contactPromise外部数据-常用联系人函数(返回promise)()=>Promiseno
staffPromise外部数据-我的下属函数(返回promise)()=>Promiseno
departmentPromise外部数据-所有部门函数(返回promise)()=>Promiseno
departmentStaffPromise外部数据-部门下面的员工函数(返回promise)(staffId)=>Promiseno
searchPromise外部数据-search函数(返回promise)(string)=>Promiseno
zIndex控制层级numberno1050

注意

  • 若使用内置接口,依据平台现有选人组件的数据请求方式,所有数据方式为 get,请求url已经内置,为了更好的兼容性,请必须配置apiPath、tenantId、userId。
  • 选人没有内置弹层,需要依赖非模态组件,请参考:http://cmp.italent-inc.cn/details?id=1064
  • apiPath 的前缀必须要有 // 或者http:// 或者https://
  • value 仅支持高级模式
  • value 的数据格式为
interface Staff {
    Id: number,
    Name: string,
    Email: string,
    Avatar: string,
    AvatarColor: string,
    DepartmentId: number
}
  • 使用外部数据,搜索结果、常用联系人、我的下属、部门下面的员工接口,请提供Staff[], Staff的结构如下
export interface Staff {
    Id: number,
    Name: string,
    Email: string,
    Avatar: string,
    AvatarColor: string,
    DepartmentId: number
}

部门数据,请提供Department[],Department的结构如下

export interface Department {
    Id: number,
    PId: number,
    DepartmentName: string,
    TotalUserCount: number
}

####hideTabs字段说明 hideTabs array可以使用的字段有

export enum TabType {
    'commonContact'="commonContact",
    'subordinate'='subordinate',
    'department'='department'
};

比如我要取消常用联系人+我的下属的显示,就传递 'commonContact','subordinate', 暂不支持隐藏所有tabName,如果传递了所有的tabName,将会忽略该字段

translate字段说明--默认翻译字段

export const defaultTranslation: DefaultTranslationType = {
	search: '搜索',
	advancedMode: '高级模式',
	noDataTip: '这里什么都没有...',
	emptyText: '空 (未填写)',
	common: '常用',
	subordinate: '下属',
	department: '部门',
	searchResult: '搜索结果',
	contacts: '联系人',
	person: '人',
	my: '我的',
	aleradySelect: '已选人员',
	group: '组',
	clearSelect: '清空已选',
	cancel: '取消',
	sure: '确认',
	pleaseSelectTip: '请在左侧选择人员',
	one: '个',
	empty: "空(未填写)"
}
2.4.7

5 years ago

2.4.6

5 years ago

2.4.5

5 years ago

2.4.3

5 years ago

2.4.1

5 years ago

2.3.1

5 years ago

2.2.9

5 years ago

2.2.7

5 years ago

2.2.6

5 years ago

2.2.5

5 years ago

2.2.4

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.1.20

5 years ago

2.1.19

5 years ago

2.1.18

5 years ago

2.1.17

5 years ago

2.1.11

5 years ago

2.1.10

5 years ago

2.1.9

5 years ago

2.1.8

5 years ago

2.1.6

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.0.32

5 years ago

2.1.1

5 years ago

2.0.31

5 years ago

2.0.29

5 years ago

2.0.28

5 years ago

2.0.27

5 years ago

2.0.22

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.3

5 years ago

2.0.0-rc.1

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago