jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
20 lines (19 loc) • 735 B
TypeScript
import React from 'react';
import type { SchemaVariableListProps } from './SchemaVariableList';
export interface SchemaVariableListPickerProps extends Omit<SchemaVariableListProps, 'children'> {
children: (props: {
onClick: (e: React.MouseEvent) => void;
setState: (state: any) => void;
isOpened: boolean;
}) => JSX.Element;
value?: any;
title?: string;
onConfirm?: (value?: any) => void;
onCancel?: () => void;
onPickerOpen?: (props: any) => any;
placeholderRender?: (props: any) => JSX.Element | null;
}
export declare class SchemaVariableListPicker extends React.Component<SchemaVariableListPickerProps> {
render(): JSX.Element;
}
export default SchemaVariableListPicker;