UNPKG

loners-form

Version:

为工作而生,基于 antd 而生的可配置化表单

24 lines (23 loc) 755 B
import React from 'react'; import type { FormInstance } from 'antd/lib/form'; import type { ShowQA } from '../interface'; import type { InputNumberGoProps } from '../InputNumberGo'; import '../index.less'; declare type FetchFuncReturn = { url: string; data: any; method: 'post' | 'put' | string; }; export interface InputLoadingGoProps extends InputNumberGoProps { fm?: FormInstance; showQA?: ShowQA; request?: { fetchFunc: (params: any) => FetchFuncReturn; formatResult: (resData: any) => any; formatParams: (params: any) => any; formatTips: (resData: any) => string; loadingText: string; }; } declare const InputLoadingGo: React.FC<InputLoadingGoProps>; export default InputLoadingGo;