import React from "react"; import { IItemData } from "./common.typing"; export interface IHomeProps { /** 组件类型: * - 选人:member * - 选群:group * - 选会话:session * - 选组织架构:org * - default:member */ type?: string; /** 是否展示【我的群组】入口,默认为 false */ showGroups?: boolean; /** 是否展示【最近会话】入口,默认为 false */ showRecentSession?: boolean; /** 是否展示【组织架构】入口,默认为 true */ showOrganization?: boolean; showPartner?: boolean; /** 是否展示【外部联系人】入口,默认为 false */ showExternalContact?: boolean; /** 按联系人的tab列表 */ byContactTabList: any[]; /** 按会话的tab列表 */ bySessionTabList: any[]; /** 是否有权限按照组织架构选人,默认为 all */ authority?: string; /** 获取当前用户的组织架构信息,用于 home 页 */ getPersonOrg?: () => void; /** 根据部门 id 获取组织架构信息 */ getOrgList?: (obj?: IItemData, from?: string) => void; /** 组织架构展开信息 */ /** 最近联系人 */ recentConcactsList?: IItemData[]; /** 当前已选 */ currentList?: IItemData[]; /** 最近转发列表 */ recentForwardList?: IItemData[]; /** 设置当前已选的 */ setCurrentList: (list: IItemData[]) => void; /** 修改页面 */ onChangeCurPage: (page: string) => void; /** 不可用 id,包括 group、user、session、org */ disabledids?: string[]; requiredList?: IItemData[]; personOrg?: IItemData; /** 是否展示【批量导入】入口,默认为 false */ showBatchImport?: boolean; /** 是否从组织架构开始选人,如超管 */ orginSelect?: boolean; /** 是否展示最近转发 */ showRecentForward?: boolean; /** 是否展示最近联系人 */ isShowRecentConcacts?: boolean; /** 埋点方法 */ track: (eventName: string, eventData?: any) => void; /** 组件的标题 */ title?: string; } declare const Home: React.FC; export default Home;