@knockout-js/org
Version:
Knockout组织相关组件
74 lines (73 loc) • 1.62 kB
TypeScript
import { User, UserWhereInput } from "@knockout-js/api/ucenter";
import { ProTableProps } from "@ant-design/pro-components";
import { ModalProps } from "@knockout-js/layout";
declare enum UserUserType {
Account = "account",
Member = "member"
}
export interface UserModalLocale {
principal_name: string;
display_name: string;
email: string;
mobile: string;
status: string;
created_at: string;
}
export interface UserModalProps {
/**
* 显示弹框
*/
open: boolean;
/**
* 弹框标题
*/
title: string;
/**
* 类型过滤
*/
userType?: UserUserType;
/**
* 多选
*/
isMultiple?: boolean;
/**
* orgId下的用户
*/
orgId?: string;
/**
* orgRoleId下的用户
*/
orgRoleId?: string;
/**
* 查询条件
*/
where?: UserWhereInput;
/**
* ant ModalProps api
*/
modalProps?: ModalProps;
/**
* ProTable api
*/
proTableProps?: ProTableProps<User, Record<string, any>, 'text'>;
/**
* 关闭弹框事件 (selectData?: User[]) => void;
*/
onClose: (selectData?: User[]) => void;
}
export declare const EnumUserStatus: {
active: {
text: string;
status: string;
};
inactive: {
text: string;
status: string;
};
processing: {
text: string;
status: string;
};
};
declare const _default: (props: UserModalProps) => import("react/jsx-runtime").JSX.Element;
export default _default;