@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.
Files changed (55) hide show
  1. package/README.md +1 -42
  2. package/dist/index.esm.css +1 -1
  3. package/dist/less.esm.css +1 -1
  4. package/es/FormsProvider/index.d.ts +1 -1
  5. package/es/ProEditTable/components/RenderField/ListChangedWrapper.d.ts +1 -14
  6. package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +27 -102
  7. package/es/ProEditTable/components/RenderField/index.js +269 -364
  8. package/es/ProEditTable/components/RenderField/propsType.d.ts +30 -0
  9. package/es/ProEditTable/components/RenderField/propsType.js +1 -0
  10. package/es/ProEditTable/components/RenderField/tools.d.ts +22 -0
  11. package/es/ProEditTable/components/RenderField/tools.js +203 -0
  12. package/es/ProEditTable/utils/config.js +5 -2
  13. package/es/ProEditTable/utils/index.js +11 -6
  14. package/es/ProEditTable/utils/tools.js +3 -2
  15. package/es/ProEnum/index.js +1 -1
  16. package/es/ProForm/components/FormFooter/propsType.d.ts +1 -1
  17. package/es/ProForm/components/base/DatePicker/index.js +3 -2
  18. package/es/ProForm/components/combination/Group/component/ComRender.js +1 -1
  19. package/es/ProForm/components/combination/Group/component/FlexibleGroup.js +4 -11
  20. package/es/ProForm/components/combination/Group/hooks/index.js +1 -2
  21. package/es/ProForm/components/combination/Group/utils/index.d.ts +16 -16
  22. package/es/ProForm/components/render/Render.js +149 -180
  23. package/es/ProForm/components/render/RenderFields.js +13 -38
  24. package/es/ProForm/components/render/propsType.d.ts +1 -18
  25. package/es/ProForm/components/render/propsType.js +0 -26
  26. package/es/ProForm/hooks/useControlled.d.ts +1 -0
  27. package/es/ProForm/hooks/useControlled.js +14 -0
  28. package/es/ProForm/hooks/useForm.d.ts +8 -0
  29. package/es/ProForm/{utils → hooks}/useForm.js +1 -1
  30. package/es/ProForm/{utils → hooks}/useRules.js +2 -2
  31. package/es/ProForm/{utils → hooks}/useShouldUpdate.d.ts +5 -1
  32. package/es/ProForm/{utils → hooks}/useShouldUpdate.js +30 -77
  33. package/es/ProForm/{utils → hooks}/useWatch.js +1 -1
  34. package/es/ProForm/index.js +5 -4
  35. package/es/ProForm/propsType.d.ts +13 -1
  36. package/es/ProForm/utils/buildFormItemProps.d.ts +25 -0
  37. package/es/ProForm/utils/buildFormItemProps.js +90 -0
  38. package/es/ProForm/utils/index.d.ts +2 -6
  39. package/es/ProForm/utils/index.js +3 -30
  40. package/es/ProForm/utils/reactiveValues.d.ts +34 -0
  41. package/es/ProForm/utils/reactiveValues.js +45 -0
  42. package/es/ProSelect/index.js +8 -7
  43. package/es/ProTree/components/ProTreeSelect/index.js +3 -2
  44. package/es/ProTree/utils.d.ts +9 -0
  45. package/es/ProTree/utils.js +31 -0
  46. package/es/ProTreeModal/components/Trigger.js +13 -12
  47. package/es/ProTreeModal/style/index.less +12 -1
  48. package/package.json +1 -2
  49. package/es/ProForm/utils/useForm.d.ts +0 -22
  50. /package/es/ProForm/{utils → hooks}/useDeepCompareMemo.d.ts +0 -0
  51. /package/es/ProForm/{utils → hooks}/useDeepCompareMemo.js +0 -0
  52. /package/es/ProForm/{utils → hooks}/useFieldProps.d.ts +0 -0
  53. /package/es/ProForm/{utils → hooks}/useFieldProps.js +0 -0
  54. /package/es/ProForm/{utils → hooks}/useRules.d.ts +0 -0
  55. /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
- #### 方式一:自动 Tree-Shaking(推荐)
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