@zat-design/sisyphus-react 4.2.0-beta.3 → 4.2.0-beta.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/README.md +16 -5
- package/dist/index.esm.css +1 -1
- package/dist/less.esm.css +1 -1
- package/es/ProAction/index.less +0 -1
- package/es/ProDownload/style/index.less +0 -1
- package/es/ProDrawerForm/style/index.less +2 -1
- package/es/ProEditLabel/style/index.less +0 -1
- package/es/ProEditTable/components/Summary/index.d.ts +1 -1
- package/es/ProEditTable/style/index.less +150 -114
- package/es/ProEditTable/utils/config.d.ts +2 -2
- package/es/ProEditTable/utils/tools.d.ts +1 -1
- package/es/ProEditTable/utils/useEditTableError.d.ts +1 -1
- package/es/ProEnum/hooks/useEnum.js +22 -71
- package/es/ProEnum/hooks/useEnumRequest.js +9 -10
- package/es/ProEnum/hooks/useFrequentEnumRequest.js +2 -1
- package/es/ProEnum/index.d.ts +2 -0
- package/es/ProEnum/index.js +4 -2
- package/es/ProEnum/style/index.less +0 -1
- package/es/ProEnum/utils/frequentEnum.d.ts +1 -2
- package/es/ProEnum/utils/frequentEnum.js +2 -2
- package/es/ProEnum/utils/getEnum.d.ts +47 -0
- package/es/ProEnum/utils/getEnum.js +151 -0
- package/es/ProEnum/utils/index.d.ts +13 -3
- package/es/ProEnum/utils/index.js +44 -10
- package/es/ProForm/components/base/SwitchCheckbox/style/index.less +4 -5
- package/es/ProForm/components/base/TimePicker/style/index.less +0 -1
- package/es/ProForm/components/combination/Container/style/index.less +18 -19
- package/es/ProForm/components/combination/FormList/style/index.less +4 -4
- package/es/ProForm/components/combination/Group/style/index.less +43 -50
- package/es/ProForm/components/combination/Group/utils/index.d.ts +20 -20
- package/es/ProForm/components/combination/ProModalSelect/style/index.less +20 -16
- package/es/ProForm/components/combination/ProNumberRange/style/index.less +3 -3
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
- package/es/ProForm/style/index.less +39 -44
- package/es/ProLayout/components/Layout/Header/style/index.less +224 -222
- package/es/ProLayout/components/Layout/Icon/style/index.less +1 -1
- package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +4 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +9 -7
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +3 -5
- package/es/ProLayout/components/Layout/Menu/style/index.less +9 -5
- package/es/ProLayout/components/Layout/index.less +4 -4
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +45 -45
- package/es/ProLayout/components/ProCollapse/style/index.less +30 -32
- package/es/ProLayout/components/ProFooter/style/index.less +0 -1
- package/es/ProLayout/components/ProHeader/PropTypes.d.ts +31 -31
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +7 -7
- package/es/ProLayout/components/ProHeader/style/index.less +8 -9
- package/es/ProLayout/components/TabsManager/style/index.less +9 -11
- package/es/ProLayout/style/index.less +197 -201
- package/es/ProLayout/utils/index.d.ts +1 -1
- package/es/ProSelect/style/index.less +0 -1
- package/es/ProSelect/utils/index.d.ts +1 -1
- package/es/ProStep/components/Item/index.js +1 -1
- package/es/ProStep/components/LazyLoad/index.d.ts +19 -0
- package/es/ProStep/components/LazyLoad/index.js +55 -0
- package/es/ProStep/components/Listener/index.js +1 -1
- package/es/ProStep/index.d.ts +1 -1
- package/es/ProStep/propsType.d.ts +1 -1
- package/es/ProStep/style/index.less +7 -9
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +1 -1
- package/es/ProTable/propsType.d.ts +1 -1
- package/es/ProTable/style/index.less +24 -22
- package/es/ProTooltip/style/index.less +0 -1
- package/es/ProTree/components/ProTreeSelect/style/index.less +102 -99
- package/es/ProTree/style/index.less +108 -109
- package/es/ProTreeModal/style/index.less +10 -9
- package/es/ProUpload/style/index.less +20 -22
- package/es/global.less +1 -1
- package/es/index.d.ts +2 -2
- package/es/style/core/normalize.less +11 -2
- package/es/style/index.less +2 -2
- package/es/style/less.less +2 -2
- package/es/style/theme/antd.less +19 -23
- package/es/style/theme/base.less +81 -81
- package/es/style/theme/tokens.less +13 -14
- package/es/style/variables.less +1 -1
- package/package.json +37 -20
package/README.md
CHANGED
|
@@ -12,17 +12,28 @@
|
|
|
12
12
|
- ✅ **React 19.0.0+**(最新版本)
|
|
13
13
|
|
|
14
14
|
**推荐版本**:
|
|
15
|
+
|
|
15
16
|
- 生产环境:React 18.3.1 或 React 19.x
|
|
16
17
|
- 开发环境:React 19.x(本地验证最新特性)
|
|
17
18
|
|
|
18
19
|
**peerDependencies**:
|
|
20
|
+
|
|
19
21
|
```json
|
|
20
22
|
{
|
|
21
23
|
"react": "^18.0.0 || ^19.0.0",
|
|
22
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
24
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
25
|
+
"ahooks": ">=3.9.5"
|
|
23
26
|
}
|
|
24
27
|
```
|
|
25
28
|
|
|
29
|
+
> **注意(v4.2.0+)**:`ahooks` 已从 `dependencies` 移至 `peerDependencies`,需要在消费者项目中单独安装:
|
|
30
|
+
>
|
|
31
|
+
> ```bash
|
|
32
|
+
> npm install ahooks
|
|
33
|
+
> # 或
|
|
34
|
+
> yarn add ahooks
|
|
35
|
+
> ```
|
|
36
|
+
|
|
26
37
|
### 安装
|
|
27
38
|
|
|
28
39
|
npm 或 yarn 安装
|
|
@@ -59,7 +70,7 @@ import { ProForm } from '@zat-design/sisyphus-react';
|
|
|
59
70
|
libraryDirectory: 'es',
|
|
60
71
|
style: false,
|
|
61
72
|
},
|
|
62
|
-
]
|
|
73
|
+
];
|
|
63
74
|
```
|
|
64
75
|
|
|
65
76
|
在 umi 框架下同时配置 antd 按需加载时,需要配置别名:
|
|
@@ -82,9 +93,9 @@ extraBabelPlugins: [
|
|
|
82
93
|
libraryDirectory: 'es',
|
|
83
94
|
style: false,
|
|
84
95
|
},
|
|
85
|
-
'@zat-design/sisyphus-react'
|
|
96
|
+
'@zat-design/sisyphus-react',
|
|
86
97
|
],
|
|
87
|
-
]
|
|
98
|
+
];
|
|
88
99
|
```
|
|
89
100
|
|
|
90
101
|
### 使用示例
|
|
@@ -139,8 +150,8 @@ yarn release # 正式版
|
|
|
139
150
|
yarn release:beta # beta 版本
|
|
140
151
|
```
|
|
141
152
|
|
|
142
|
-
|
|
143
153
|
2. 执行发布(使用域账号登录):
|
|
154
|
+
|
|
144
155
|
```bash
|
|
145
156
|
npm publish
|
|
146
157
|
```
|