@knockout-js/org
Version:
Knockout组织相关组件
55 lines (54 loc) • 1.18 kB
TypeScript
import { ProTableProps } from '@ant-design/pro-components';
import { Org } from "@knockout-js/api/ucenter";
import { ModalProps } from '@knockout-js/layout';
declare enum OrgKind {
Org = "org",
Root = "root"
}
export interface OrgModalLocale {
name: string;
code: string;
domain: string;
owner: string;
desc: string;
}
export interface OrgModalProps {
/**
* 弹框开关
*/
open: boolean;
/**
* 弹框标题
*/
title?: string;
/**
* 根据orgId过滤pathHasPrefix
*/
orgId?: string;
/**
* appId授权的组织列表
*/
appId?: string;
/**
* 类型
*/
kind: OrgKind;
/**
* 多选
*/
isMultiple?: boolean;
/**
* ant ModalProps api
*/
modalProps?: ModalProps;
/**
* ProTable api
*/
proTableProps?: ProTableProps<Org, Record<string, any>, 'text'>;
/**
* 关闭弹框 (data?: Org[]) => void;
*/
onClose: (data?: Org[]) => void;
}
declare const _default: (props: OrgModalProps) => import("react/jsx-runtime").JSX.Element;
export default _default;