import { ReactText } from 'react'; interface PositionType { postId: ReactText; postTitle: string; orgTitle: string; orgId: string; orgKey: string; roleList: RoleType[]; /** 是否是默认职位 0-否 1-是 */ defaultFlag: 0 | 1; } interface RoleType { roleId: ReactText; postId?: ReactText; orgId?: ReactText; roleLabel: string; /** 是否是默认角色 0-否 1-是 */ defaultFlag: 0 | 1; } export interface XuiRoleMenuProps { dataSource: PositionType[]; visible?: boolean; onVisibleChange?: (visible: boolean) => void; onChange: (params: { postId?: ReactText; roleId: ReactText; orgId?: ReactText }) => void; placement?: 'bottom' | 'bottomLeft'; /** 决定弹窗打开以及切换岗位时的效果 */ trigger?: 'hover' | 'click'; className?: string; }