beer-assembly-biz 1.1.3-alpha.19 → 1.1.3-alpha.20

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.
@@ -138,7 +138,7 @@ export declare type LayoutProps = {
138
138
  /**
139
139
  * 头部: 从左到右菜单
140
140
  */
141
- headerContentRender?: ReactNode[];
141
+ headerContentRender?: ReactNode;
142
142
  /**
143
143
  * 切换菜单触发事件
144
144
  * @param path 路径.
@@ -1,7 +1,7 @@
1
1
  import React, { useEffect, useState } from 'react';
2
2
  import { css } from '@emotion/css';
3
3
  import { ProLayout } from '@ant-design/pro-components';
4
- import { Alert, Dropdown, message, Space, theme, Typography } from 'antd';
4
+ import { Alert, Dropdown, message, theme, Typography } from 'antd';
5
5
  import { Session } from 'beer-network/session';
6
6
  import dayjs from 'dayjs';
7
7
  import Marquee from 'react-fast-marquee';
@@ -212,10 +212,7 @@ export const AppLayout = (props) => {
212
212
  url: it.defaultPath || it.path
213
213
  };
214
214
  }) : [], headerContentRender: () => {
215
- if (props?.headerContentRender === undefined) {
216
- return undefined;
217
- }
218
- return React.createElement(Space, { size: 4 }, props?.headerContentRender?.map(item => item));
215
+ return props?.headerContentRender;
219
216
  }, menuHeaderRender: (_logo, _title, props) => {
220
217
  if (props !== undefined) {
221
218
  setTimeout(() => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "beer-assembly-biz",
3
3
  "private": false,
4
- "version": "1.1.3-alpha.19",
4
+ "version": "1.1.3-alpha.20",
5
5
  "scripts": {
6
6
  "pub-w": "tsc && copy package.json .\\dist\\package.json && npm publish ./dist",
7
7
  "copy": "cp -a src/rich/AIEditor.css dist/rich/AIEditor.css && cp -a src/icon dist/icon && cp -a src/images dist/images",