@zat-design/sisyphus-react 4.4.2 → 4.4.3
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/README.md +1 -42
- package/dist/index.esm.css +1 -1
- package/dist/less.esm.css +1 -1
- package/es/FormsProvider/index.d.ts +1 -1
- package/es/ProEditTable/components/RenderField/ListChangedWrapper.d.ts +1 -14
- package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +27 -102
- package/es/ProEditTable/components/RenderField/index.js +269 -364
- package/es/ProEditTable/components/RenderField/propsType.d.ts +30 -0
- package/es/ProEditTable/components/RenderField/propsType.js +1 -0
- package/es/ProEditTable/components/RenderField/tools.d.ts +22 -0
- package/es/ProEditTable/components/RenderField/tools.js +203 -0
- package/es/ProEditTable/utils/config.js +5 -2
- package/es/ProEditTable/utils/index.js +11 -6
- package/es/ProEditTable/utils/tools.js +3 -2
- package/es/ProEnum/index.js +1 -1
- package/es/ProForm/components/FormFooter/propsType.d.ts +1 -1
- package/es/ProForm/components/base/DatePicker/index.js +3 -2
- package/es/ProForm/components/combination/Group/component/ComRender.js +1 -1
- package/es/ProForm/components/combination/Group/component/FlexibleGroup.js +4 -11
- package/es/ProForm/components/combination/Group/hooks/index.js +1 -2
- package/es/ProForm/components/combination/Group/utils/index.d.ts +16 -16
- package/es/ProForm/components/render/Render.js +149 -180
- package/es/ProForm/components/render/RenderFields.js +13 -38
- package/es/ProForm/components/render/propsType.d.ts +1 -18
- package/es/ProForm/components/render/propsType.js +0 -26
- package/es/ProForm/hooks/useControlled.d.ts +1 -0
- package/es/ProForm/hooks/useControlled.js +14 -0
- package/es/ProForm/hooks/useForm.d.ts +8 -0
- package/es/ProForm/{utils → hooks}/useForm.js +1 -1
- package/es/ProForm/{utils → hooks}/useRules.js +2 -2
- package/es/ProForm/{utils → hooks}/useShouldUpdate.d.ts +5 -1
- package/es/ProForm/{utils → hooks}/useShouldUpdate.js +30 -77
- package/es/ProForm/{utils → hooks}/useWatch.js +1 -1
- package/es/ProForm/index.js +5 -4
- package/es/ProForm/propsType.d.ts +13 -1
- package/es/ProForm/utils/buildFormItemProps.d.ts +25 -0
- package/es/ProForm/utils/buildFormItemProps.js +90 -0
- package/es/ProForm/utils/index.d.ts +2 -6
- package/es/ProForm/utils/index.js +3 -30
- package/es/ProForm/utils/reactiveValues.d.ts +34 -0
- package/es/ProForm/utils/reactiveValues.js +45 -0
- package/es/ProSelect/index.js +8 -7
- package/es/ProTree/components/ProTreeSelect/index.js +3 -2
- package/es/ProTree/utils.d.ts +9 -0
- package/es/ProTree/utils.js +31 -0
- package/es/ProTreeModal/components/Trigger.js +13 -12
- package/es/ProTreeModal/style/index.less +12 -1
- package/package.json +1 -2
- package/es/ProForm/utils/useForm.d.ts +0 -22
- /package/es/ProForm/{utils → hooks}/useDeepCompareMemo.d.ts +0 -0
- /package/es/ProForm/{utils → hooks}/useDeepCompareMemo.js +0 -0
- /package/es/ProForm/{utils → hooks}/useFieldProps.d.ts +0 -0
- /package/es/ProForm/{utils → hooks}/useFieldProps.js +0 -0
- /package/es/ProForm/{utils → hooks}/useRules.d.ts +0 -0
- /package/es/ProForm/{utils → hooks}/useWatch.d.ts +0 -0
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ $ yarn add @zat-design/sisyphus-react
|
|
|
48
48
|
|
|
49
49
|
### 按需加载
|
|
50
50
|
|
|
51
|
-
####
|
|
51
|
+
#### 自动 Tree-Shaking
|
|
52
52
|
|
|
53
53
|
本组件库已配置 `sideEffects`,**现代打包器(Webpack 5+、Vite、Rollup)会自动进行 tree-shaking**,无需额外配置:
|
|
54
54
|
|
|
@@ -57,47 +57,6 @@ $ yarn add @zat-design/sisyphus-react
|
|
|
57
57
|
import { ProForm } from '@zat-design/sisyphus-react';
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
#### 方式二:babel-plugin-import(兼容老项目)
|
|
61
|
-
|
|
62
|
-
如果使用 Webpack 4 或需要更精确的控制,可使用 babel-plugin-import:
|
|
63
|
-
|
|
64
|
-
```js
|
|
65
|
-
[
|
|
66
|
-
'babel-plugin-import',
|
|
67
|
-
{
|
|
68
|
-
libraryName: '@zat-design/sisyphus-react',
|
|
69
|
-
camel2DashComponentName: false,
|
|
70
|
-
libraryDirectory: 'es',
|
|
71
|
-
style: false,
|
|
72
|
-
},
|
|
73
|
-
];
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
在 umi 框架下同时配置 antd 按需加载时,需要配置别名:
|
|
77
|
-
|
|
78
|
-
```js
|
|
79
|
-
extraBabelPlugins: [
|
|
80
|
-
[
|
|
81
|
-
'babel-plugin-import',
|
|
82
|
-
{
|
|
83
|
-
libraryName: 'antd',
|
|
84
|
-
libraryDirectory: 'es',
|
|
85
|
-
style: true,
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
[
|
|
89
|
-
'babel-plugin-import',
|
|
90
|
-
{
|
|
91
|
-
libraryName: '@zat-design/sisyphus-react',
|
|
92
|
-
camel2DashComponentName: false,
|
|
93
|
-
libraryDirectory: 'es',
|
|
94
|
-
style: false,
|
|
95
|
-
},
|
|
96
|
-
'@zat-design/sisyphus-react',
|
|
97
|
-
],
|
|
98
|
-
];
|
|
99
|
-
```
|
|
100
|
-
|
|
101
60
|
### 使用示例
|
|
102
61
|
|
|
103
62
|
```tsx
|