react-toolkits 2.13.29 → 2.13.30

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # react-toolkits
2
2
 
3
+ ## 2.13.30
4
+
5
+ ### Patch Changes
6
+
7
+ - a30b5ea: fix: missing 'getOptions' prop in Layout component
8
+
3
9
  ## 2.13.29
4
10
 
5
11
  ### Patch Changes
package/lib/index.d.ts CHANGED
@@ -133,6 +133,7 @@ interface LayoutProps extends Pick<GameSelectProps, 'filter'> {
133
133
  items?: NavMenuItem[];
134
134
  hideGameSelect?: boolean;
135
135
  navWidth?: string | number;
136
+ getGameSelectOptions?: GameSelectProps['getOptions'];
136
137
  headerExtra?: {
137
138
  left?: HeaderExtra[];
138
139
  right?: HeaderExtra[];
package/lib/index.js CHANGED
@@ -972,7 +972,17 @@ var init_Layout = __esm({
972
972
  ({ Spin: Spin5, theme: theme3 } = Antd2);
973
973
  ({ Header, Sider, Content } = Antd2.Layout);
974
974
  Layout2 = (props) => {
975
- const { collapsible, isMenuLoading, items, headerExtra, children, navWidth, hideGameSelect, filter } = props;
975
+ const {
976
+ collapsible,
977
+ isMenuLoading,
978
+ items,
979
+ headerExtra,
980
+ children,
981
+ navWidth,
982
+ hideGameSelect,
983
+ filter,
984
+ getGameSelectOptions
985
+ } = props;
976
986
  const {
977
987
  token: { colorBgContainer, colorBorder }
978
988
  } = theme3.useToken();
@@ -1043,7 +1053,7 @@ var init_Layout = __esm({
1043
1053
  onClick: onCollapse
1044
1054
  }
1045
1055
  ),
1046
- permissionVersion !== "v1" /* V1 */ && !hideGameSelect && /* @__PURE__ */ jsx(GameSelect_default, { filter }),
1056
+ permissionVersion !== "v1" /* V1 */ && !hideGameSelect && /* @__PURE__ */ jsx(GameSelect_default, { filter, getOptions: getGameSelectOptions }),
1047
1057
  headerExtra?.left?.map((extra) => /* @__PURE__ */ jsx("span", { children: extra.children }, extra.key))
1048
1058
  ] }),
1049
1059
  /* @__PURE__ */ jsxs(Space, { size: "small", split: /* @__PURE__ */ jsx(Divider, { type: "vertical" }), children: [