Type aliases
BuildFunctionComponentCreatorOptions
BuildFunctionComponentCreatorOptions<TExtraProps, TTransformedComponent>: object
Type parameters
-
TExtraProps: MakePropsReturn
-
TTransformedComponent: FunctionComponent
FunctionComponentCreator
FunctionComponentCreator<TExtraProps, TTransformedComponent>: function
Type parameters
-
TExtraProps: MakePropsReturn
-
TTransformedComponent
Type declaration
-
- <TInternalProps, TExternalProps, TInternalComponent>(Component: TInternalComponent): Merge<TTransformedComponent, FunctionComponent<TExternalProps>> & object
- <TProps, TInternalProps, TExternalProps, TInternalComponent>(props: TProps, Component: TInternalComponent): Merge<TTransformedComponent, FunctionComponent<TExternalProps>> & object
-
Type parameters
-
TInternalProps: TExtraProps["InternalProps"]
-
TExternalProps: TExtraProps["ExternalProps"]
-
TInternalComponent: FunctionComponent<TInternalProps>
Parameters
-
Component: TInternalComponent
Returns Merge<TTransformedComponent, FunctionComponent<TExternalProps>>
&
object
-
Type parameters
-
TProps: MakePropsReturn
-
TInternalProps: Merge<TProps["InternalProps"], TExtraProps["InternalProps"]>
-
TExternalProps: Merge<TProps["ExternalProps"], TExtraProps["ExternalProps"]>
-
TInternalComponent: FunctionComponent<TInternalProps>
Parameters
-
props: TProps
-
Component: TInternalComponent
Returns Merge<TTransformedComponent, FunctionComponent<TExternalProps>>
&
object
PropsWithStyledHTMLAttributes
PropsWithStyledHTMLAttributes<P>: Merge<Pick<HTMLAttributes<any>, "style" | "className">, P>
Type parameters
RequiredProp
RequiredProp<T>: object
Type parameters
UseLoadMoreServiceReturn
UseLoadMoreServiceReturn<TItem>: TItem[] | object
Type parameters
Variables
Const createFunctionComponent
createFunctionComponent: function = buildFunctionComponentCreator()
Type declaration
-
- <TInternalProps, TExternalProps, TInternalComponent>(Component: TInternalComponent): Merge<TTransformedComponent, FunctionComponent<TExternalProps>> & object
- <TProps, TInternalProps, TExternalProps, TInternalComponent>(props: TProps, Component: TInternalComponent): Merge<TTransformedComponent, FunctionComponent<TExternalProps>> & object
-
Type parameters
-
TInternalProps: TExtraProps["InternalProps"]
-
TExternalProps: TExtraProps["ExternalProps"]
-
TInternalComponent: FunctionComponent<TInternalProps>
Parameters
-
Component: TInternalComponent
Returns Merge<TTransformedComponent, FunctionComponent<TExternalProps>>
&
object
-
Type parameters
-
TProps: MakePropsReturn
-
TInternalProps: Merge<TProps["InternalProps"], TExtraProps["InternalProps"]>
-
TExternalProps: Merge<TProps["ExternalProps"], TExtraProps["ExternalProps"]>
-
TInternalComponent: FunctionComponent<TInternalProps>
Parameters
-
props: TProps
-
Component: TInternalComponent
Returns Merge<TTransformedComponent, FunctionComponent<TExternalProps>>
&
object
Functions
buildFunctionComponentCreator
-
Type parameters
-
TExtraProps: MakePropsReturn
-
TTransformedComponent: FunctionComponent
Parameters
返回函数组件创建器
makeProps
- makeProps<TDefaultProps>(defaultProps: TDefaultProps): MakePropsReturn<TDefaultProps>
-
Type parameters
-
TDefaultProps: Record<string, any>
Parameters
-
defaultProps: TDefaultProps
Returns MakePropsReturn<TDefaultProps>
useEasyValidator
-
Type parameters
Parameters
-
data: D
-
rules: EasyValidatorRules<D>
返回包含验证函数的对象
useLiveEasyValidator
- useLiveEasyValidator<D>(data: D, rules: EasyValidatorRules<D>): AsyncReturnType<validate>
-
Type parameters
Parameters
-
data: D
-
rules: EasyValidatorRules<D>
Returns AsyncReturnType<validate>
返回包含验证函数的对象
useLoadMore
-
Type parameters
Parameters
返回结果
useScrollLoadMore
-
Type parameters
Parameters
返回结果
构造一个函数组件创建器。