1.0.7 • Published 4 years ago

@teamix/member-search v1.0.7

Weekly downloads
5
License
MIT
Repository
-
Last release
4 years ago

Member Search

@teamix/member-search

成员组件

Quick start

npm install --save @teamix/member-search

API

参数名说明必填类型默认值备注
trigger/trueany//
className/falsestring//
id/falsestring//
dropdownPropsThe props of Fusion Dropdown Componentfalseobject//
inputPropsThe props of Fusion Input Componentfalseobject//
loadingPropsThe props of Fusion Loading Componentfalseobject//
selectedUsersSelected usersfalseUserType[][]/
recentSelectedUsersRecent selected usersfalseUserType[]//
multiple/falsebooleanfalse/
debounceTimeThe debounce time of typing text and searchingfalsenumber500/
onCancelThe click event of cancel buttonfalse() => void/multiple only
onOkThe click event of done buttonfalse(selectedUsers: UserType[]) => void//
onCancelButtonText/falsestring'Cancel'/
onOkButtonText/falsestring'Done'/
searchFnSearch functiontrue(q: string) => Promise<UserType[]>//
showSearchWhether show search (input) componentfalsebooleantrue/
showRecentSelectedUsersWhether show recent selected usersfalsebooleantrue/
onInputSearchIconClick/false(e) => void//
subMenuLabelRecentSelectedThe label of recent selected usersfalsestring'Recent Selected Users'/
subMenuLabelSearchThe label of searchfalsestring'Search Result'/
subMenuLabelInitSearchThe label of init searchfalsestring'Init Search Result'/
initSearchDo searchFn when dropdown is visiblefalsebooleantrue/
notFoundMessage/falsestring / ReactNode'Not Found'/
onVisibleChangeCallback/false(visible: boolean) => void//
renderDisplayName自定义渲染展示名false(user: UserType) => string//
inputAutoFocus是否开启 Input 自动聚焦falsebooleantrue/

UserType

export interface UserType {
  identifier: string,
  displayName: string,
  displayFullName?: string,
  realName: string,
  nickName: string,
  avatar: string,
  division?: {
    displayFullName?: string,
  },
}
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago