You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
504 B
16 lines
504 B
1 year ago
|
declare type ControlInstance = {
|
||
|
controlled: boolean;
|
||
|
initValue: any;
|
||
|
set(newVal: any, extObj?: Object, fn?: any): void;
|
||
|
get(): any;
|
||
|
change(newVal: any, customChangeData?: any, customUpdateFn?: any): void;
|
||
|
};
|
||
|
declare type ControlOption = {
|
||
|
valueKey?: string;
|
||
|
defaultValueKey?: string;
|
||
|
changeEventName?: string;
|
||
|
strict?: boolean;
|
||
|
};
|
||
|
declare function useControl(this: any, option?: ControlOption): ControlInstance;
|
||
|
export { ControlOption, ControlInstance, useControl };
|