react-toolkits 2.32.6 → 2.32.8
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/CHANGELOG.md +12 -0
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# react-toolkits
|
|
2
2
|
|
|
3
|
+
## 2.32.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 520a738: refactor: update RequireAuth component to improve type handling
|
|
8
|
+
|
|
9
|
+
## 2.32.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- d51e875: refactor: optimize GameSelect component logic and improve type handling
|
|
14
|
+
|
|
3
15
|
## 2.32.6
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/lib/index.d.ts
CHANGED
|
@@ -309,7 +309,7 @@ type NavItem = Exclude<ItemType, SubMenuType | MenuItemGroupType | MenuItemType>
|
|
|
309
309
|
interface GameSelectProps<T extends Game = Game> {
|
|
310
310
|
filter?: (game: T) => boolean;
|
|
311
311
|
options?: (data?: T[]) => SelectProps['options'];
|
|
312
|
-
onChange?: (value: string
|
|
312
|
+
onChange?: (value: string) => void;
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
/** Header 扩展项配置 */
|
|
@@ -799,7 +799,7 @@ interface RequireAuthProps {
|
|
|
799
799
|
/** 权限码 */
|
|
800
800
|
code: string;
|
|
801
801
|
/** 请求配置 */
|
|
802
|
-
config?:
|
|
802
|
+
config?: RequestOptions;
|
|
803
803
|
/** 无权限时点击返回按钮跳转的路径,默认为首页 '/' */
|
|
804
804
|
redirectPath?: string;
|
|
805
805
|
}
|