import type { FormBaseControl, FormControlProps, StaticControlSchemaBase } from '../../types'; /** * 自定义组件 */ export interface CustomSchema extends FormBaseControl { /** * 实现自定义功能的组件,主要给 JS SDK 和可视化编辑器里使用。 * * */ type: 'custom' | `custom-${string}`; onMount?: (dom: HTMLElement, value: any, onChange: (val: any) => void, props: any) => void | string; onUpdate?: Function | string; onUnmount?: Function | string; inline?: boolean; id?: string; html?: string; } export interface StaticCustomSchema extends Omit, StaticControlSchemaBase { type: 'static-custom' | `static-custom-${string}`; } export interface CustomProps extends FormControlProps, Omit { className?: string; value?: any; wrapperComponent?: any; inline?: boolean; }