Socket
Book a DemoInstallSign in
Socket

@teamix/member-search

Package Overview
Dependencies
Maintainers
13
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teamix/member-search

成员搜索组件

latest
npmnpm
Version
1.0.7
Version published
Maintainers
13
Created
Source

@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,
  },
}

Keywords

teamix

FAQs

Package last updated on 07 May 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