@knockout-js/org
Version:
Knockout组织相关组件
57 lines (56 loc) • 1.46 kB
TypeScript
import { InputProps, ModalProps } from 'antd';
import { ReactNode } from 'react';
import { App, AppWhereInput } from '@knockout-js/api/ucenter';
import { ProTableProps } from '@ant-design/pro-components';
export interface AppSelectLocale {
placeholder: string;
title: string;
}
export interface AppSelectProps {
/**
* 值
*/
value?: App | App["id"];
/**
* 禁用
*/
disabled?: boolean;
/**
* orgId授权的应用
*/
orgId?: string;
/**
* 查询条件
*/
where?: AppWhereInput;
/**
* ant InputProps api
*/
inputProps?: InputProps;
/**
* ant ModalProps api
*/
modalProps?: ModalProps;
/**
* ProTable api
*/
proTableProps?: ProTableProps<App, Record<string, any>, 'text'>;
/**
* 禁用时替换search的显示位置
*/
suffix?: ReactNode;
/**
* 有缓存列表可以快速提供初始化值配合value传入的是id处理
*/
dataSource?: App[];
/**
* changeValue=id: onChange的第一个参数值就为id的值
*/
changeValue?: keyof App;
/**
* 值变更事件 (value?:App[keyof App] | App,original?:App) => void;
*/
onChange?: (value?: App[keyof App] | App, original?: App) => void;
}
declare const _default: (props: AppSelectProps) => import("react/jsx-runtime").JSX.Element;
export default _default;