初始化项目, 添加TDesign等包
This commit is contained in:
15
miniprogram/miniprogram_npm/tdesign-miniprogram/common/src/control.d.ts
vendored
Normal file
15
miniprogram/miniprogram_npm/tdesign-miniprogram/common/src/control.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
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 };
|
||||
Reference in New Issue
Block a user