Skip to content

Commit 712981e

Browse files
committed
useGlobalInputApp can now be used in the hierachy of components
1 parent 1b40bb6 commit 712981e

9 files changed

+44
-468
lines changed

index.d.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ declare module 'global-input-react' {
2929
url?:string;
3030
}
3131
interface FieldChanged {
32-
field:FormField,
33-
values:FieldValue[],
34-
setFieldValueById:SetFieldValueByIdFunction,
35-
setInitData:SetInitDataFunction
32+
field:FormField;
33+
values:FieldValue[];
34+
setFieldValueById:SetFieldValueByIdFunction;
35+
setInitData:SetInitDataFunction;
36+
initDataID:string;
3637
}
3738
type InitDataCreator=()=>InitData;
3839

@@ -41,7 +42,7 @@ declare module 'global-input-react' {
4142

4243

4344
interface FormOperation{
44-
onInput:(value:any) => void
45+
onInput:(value:any) => void;
4546
}
4647

4748
type SetFieldValueByIdFunction=(fieldId:string, valueToSet:FieldValue)=>void;

src/DisplayCode.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)