@fairys/taro-valtio-form-basic 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/form.d.ts +3 -0
- package/esm/form.js +1 -0
- package/package.json +2 -2
- package/src/form.tsx +4 -0
package/esm/form.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FairysTaroValtioFormLayout } from './layout';
|
|
1
2
|
import { FairysTaroValtioFormItem, FairysTaroValtioFormHideItem, FairysTaroValtioFormItemBase } from './form.item';
|
|
2
3
|
import { useFairysValtioFormInstance, useFairysValtioFormInstanceContext, useFairysValtioFormInstanceContextState, useFairysValtioFormInstanceContextHideState, useFairysValtioFormInstanceToState, useFairysValtioFormInstanceToHideState } from '@fairys/valtio-form-basic';
|
|
3
4
|
import type { FairysValtioFormAttrsProps, FairysValtioFormInstance, MObject } from '@fairys/valtio-form-basic';
|
|
@@ -27,4 +28,6 @@ export declare const FairysTaroValtioForm: typeof FairysTaroValtioFormBase & {
|
|
|
27
28
|
useFormInstanceToState: typeof useFairysValtioFormInstanceToState;
|
|
28
29
|
/**传递表单实例获取隐藏状态*/
|
|
29
30
|
useFormInstanceToHideState: typeof useFairysValtioFormInstanceToHideState;
|
|
31
|
+
/**布局组件*/
|
|
32
|
+
Layout: typeof FairysTaroValtioFormLayout;
|
|
30
33
|
};
|
package/esm/form.js
CHANGED
|
@@ -26,4 +26,5 @@ FairysTaroValtioForm.FormItem = FairysTaroValtioFormItem;
|
|
|
26
26
|
FairysTaroValtioForm.FormHideItem = FairysTaroValtioFormHideItem;
|
|
27
27
|
FairysTaroValtioForm.useFormInstanceToState = useFairysValtioFormInstanceToState;
|
|
28
28
|
FairysTaroValtioForm.useFormInstanceToHideState = useFairysValtioFormInstanceToHideState;
|
|
29
|
+
FairysTaroValtioForm.Layout = FairysTaroValtioFormLayout;
|
|
29
30
|
export { FairysTaroValtioForm };
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"author": "SunLxy <1011771396@qq.com>",
|
|
4
4
|
"description": "taro表单框架组件",
|
|
5
5
|
"homepage": "https://github.com/autumn-fairy-tales/valtio-form-basic",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.5",
|
|
7
7
|
"main": "lib/index.js",
|
|
8
8
|
"types": "esm/index.d.ts",
|
|
9
9
|
"module": "esm/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"esm"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@fairys/valtio-form-basic": "^1.0.
|
|
28
|
+
"@fairys/valtio-form-basic": "^1.0.5"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/react": "~18.2.21",
|
package/src/form.tsx
CHANGED
|
@@ -51,6 +51,8 @@ export const FairysTaroValtioForm = React.forwardRef(
|
|
|
51
51
|
useFormInstanceToState: typeof useFairysValtioFormInstanceToState;
|
|
52
52
|
/**传递表单实例获取隐藏状态*/
|
|
53
53
|
useFormInstanceToHideState: typeof useFairysValtioFormInstanceToHideState;
|
|
54
|
+
/**布局组件*/
|
|
55
|
+
Layout: typeof FairysTaroValtioFormLayout;
|
|
54
56
|
};
|
|
55
57
|
/**初始化实例*/
|
|
56
58
|
FairysTaroValtioForm.useForm = useFairysValtioFormInstance;
|
|
@@ -70,3 +72,5 @@ FairysTaroValtioForm.FormHideItem = FairysTaroValtioFormHideItem;
|
|
|
70
72
|
FairysTaroValtioForm.useFormInstanceToState = useFairysValtioFormInstanceToState;
|
|
71
73
|
/**传递表单实例获取隐藏状态*/
|
|
72
74
|
FairysTaroValtioForm.useFormInstanceToHideState = useFairysValtioFormInstanceToHideState;
|
|
75
|
+
/**布局组件*/
|
|
76
|
+
FairysTaroValtioForm.Layout = FairysTaroValtioFormLayout;
|