UNPKG

@knockout-js/org

Version:
49 lines (48 loc) 1.29 kB
import { ModalProps } from 'antd'; import { App } from '@knockout-js/api/ucenter'; import { SearchProps } from 'antd/es/input'; 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; /** * ant SearchProps api */ searchProps?: SearchProps; /** * ant ModalProps api */ modalProps?: ModalProps; /** * ProTable api */ proTableProps?: ProTableProps<App, Record<string, any>, 'text'>; /** * 有缓存列表可以快速提供初始化值配合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;