UNPKG

@ray-js/components

Version:

Ray basic components

24 lines (23 loc) 598 B
import { BaseProps } from '../types'; export type FormProps = BaseProps & { /** * @description.en Trigger the Submit event with the data in the form * @description.zh 携带 form 中的数据触发 submit 事件 * @default null */ onSubmit?(event: { type: 'form'; origin: any; value: any; }): void; /** * @description.en Triggered when the form is reset * @description.zh 表单重置时会触发 * @default null */ onReset?(event: { type: 'form'; origin: any; value: any; }): void; };