jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
14 lines (13 loc) • 510 B
TypeScript
import type { JSONSchema, ThemeProps } from 'jamis-core';
export interface InputJSONSchemaItemProps extends ThemeProps {
schema: JSONSchema & {
[propName: string]: any;
};
value?: any;
onChange?: any;
disabled?: boolean;
renderValue?: (value: any, onChange: (value: any) => void, schema: any, props: any) => JSX.Element;
renderKey?: (value: any, onChange: (value: any) => void, schema: any, props: any) => JSX.Element;
collapsable?: boolean;
placeholder?: string;
}