beer-assembly-biz 1.1.3-alpha.11 → 1.1.3-alpha.12

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.
@@ -125,6 +125,14 @@ export declare type LayoutProps = {
125
125
  * @param appCode 应用代码
126
126
  */
127
127
  requestMenus?: (appCode: string) => Promise<MenuDataItem[]>;
128
+ /**
129
+ * 全局消息弹框(走马灯效果)
130
+ */
131
+ alter?: {
132
+ enable: boolean;
133
+ marquee: boolean;
134
+ message: ReactNode;
135
+ };
128
136
  };
129
137
  /**
130
138
  * 通用布局.
@@ -1,9 +1,10 @@
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 { Dropdown, message, 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
+ import Marquee from 'react-fast-marquee';
7
8
  import ImageLayout01 from '../images/layout_01.png';
8
9
  import ImageLayout02 from '../images/layout_02.png';
9
10
  import ImageLayout03 from '../images/layout_03.png';
@@ -336,5 +337,9 @@ export const AppLayout = (props) => {
336
337
  return [];
337
338
  }
338
339
  return props?.headerMenus || [];
339
- } }, props.children));
340
+ } },
341
+ props?.alter?.enable === true ? React.createElement(Alert, { banner: true, style: {
342
+ paddingInline: 24
343
+ }, message: props?.alter?.marquee === true ? React.createElement(Marquee, { pauseOnHover: true, gradient: false }, props?.alter?.message) : props?.alter?.message }) : undefined,
344
+ props.children));
340
345
  };
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.11",
4
+ "version": "1.1.3-alpha.12",
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",
@@ -10,41 +10,43 @@
10
10
  "dependencies": {
11
11
  "@ant-design/icons": "5.5.2",
12
12
  "@ant-design/pro-components": "2.8.4",
13
- "@emotion/css": "^11.11.2",
14
- "aieditor": "^1.3.6",
13
+ "@emotion/css": "11.13.5",
14
+ "aieditor": "1.3.8",
15
15
  "antd": "5.23.2",
16
- "beer-network": "1.2.3",
17
16
  "beer-assembly-plus": "1.1.2-alpha.8",
18
- "dayjs": "^1.11.13",
19
- "react": "^18.2.0",
20
- "react-dom": "^18.2.0",
21
- "react-router-dom": "^6.15.0"
17
+ "beer-network": "1.2.3",
18
+ "dayjs": "1.11.13",
19
+ "react": "18.3.1",
20
+ "react-dom": "18.3.1",
21
+ "react-fast-marquee": "1.6.5",
22
+ "react-router-dom": "6.30.0"
22
23
  },
23
24
  "devDependencies": {
24
- "@babel/core": "^7.16.0",
25
- "@svgr/webpack": "^5.5.0",
26
- "@types/lodash": "^4.17.16",
27
- "@types/node": "^16.18.101",
28
- "@types/react": "^18.3.3",
29
- "@types/react-dom": "^18.3.0",
30
- "@types/webpack": "^5.28.5",
31
- "@typescript-eslint/eslint-plugin": "^8.26.1",
32
- "@typescript-eslint/parser": "^8.26.1",
33
- "babel-loader": "^8.2.3",
34
- "babel-plugin-named-asset-import": "^0.3.8",
35
- "babel-preset-react-app": "^10.0.1",
36
- "customize-cra": "^1.0.0",
37
- "dotenv": "^16.4.7",
38
- "eslint": "^8.3.0",
39
- "eslint-config-airbnb": "^19.0.4",
40
- "eslint-config-airbnb-base": "^15.0.0",
41
- "eslint-plugin-import": "^2.29.1",
42
- "eslint-plugin-react": "^7.37.4",
43
- "less": "^4.2.2",
44
- "less-loader": "^12.2.0",
45
- "react-app-rewired": "^2.2.1",
46
- "react-scripts": "^5.0.1",
47
- "serve": "^14.2.4",
48
- "typescript": "^5.7.3"
25
+ "@babel/core": "7.27.4",
26
+ "@svgr/webpack": "5.5.0",
27
+ "@types/node": "16.18.126",
28
+ "@types/react": "18.3.23",
29
+ "@types/react-dom": "18.3.7",
30
+ "@types/webpack": "5.28.5",
31
+ "@typescript-eslint/eslint-plugin": "8.35.0",
32
+ "@typescript-eslint/parser": "8.35.0",
33
+ "babel-loader": "8.4.1",
34
+ "babel-plugin-named-asset-import": "0.3.8",
35
+ "babel-preset-react-app": "10.1.0",
36
+ "customize-cra": "1.0.0",
37
+ "dotenv": "16.5.0",
38
+ "eslint": "8.57.1",
39
+ "eslint-config-airbnb": "19.0.4",
40
+ "eslint-config-airbnb-base": "15.0.0",
41
+ "eslint-plugin-import": "2.32.0",
42
+ "eslint-plugin-react": "7.37.5",
43
+ "less": "4.3.0",
44
+ "less-loader": "12.3.0",
45
+ "react-app-rewired": "2.2.1",
46
+ "react-scripts": "5.0.1",
47
+ "serve": "14.2.4",
48
+ "typescript": "5.8.3",
49
+ "webpack": "5.99.9",
50
+ "webpack-cli": "5.1.4"
49
51
  }
50
52
  }