jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
23 lines (22 loc) • 880 B
TypeScript
import type { JSONSchema, LocaleProps, ThemeProps } from 'jamis-core';
export interface SchemaEditorItemCommonProps extends LocaleProps, ThemeProps {
value?: JSONSchema;
onChange: (value: JSONSchema) => void;
types: Array<{
label: string;
value: string;
[propName: string]: any;
}>;
onTypeChange?: (type: string, value: JSONSchema, origin?: JSONSchema) => JSONSchema | void;
disabled?: boolean;
required?: boolean;
requireLabel?: string;
onRequiredChange?: (value: boolean) => void;
typeMutable?: boolean;
showInfo?: boolean;
renderExtraProps?: (value: JSONSchema, onChange: (value: JSONSchema) => void) => JSX.Element;
renderModalProps?: (value: JSONSchema, onChange: (value: JSONSchema) => void) => JSX.Element;
prefix?: JSX.Element;
affix?: JSX.Element;
enableAdvancedSetting?: boolean;
}