beer-assembly-biz 1.1.1-alpha.22 → 1.1.1-alpha.24

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/AppLayout.d.ts CHANGED
@@ -98,6 +98,10 @@ export declare type LayoutProps = {
98
98
  * 高度
99
99
  */
100
100
  height?: number;
101
+ /**
102
+ * 跳转路径
103
+ */
104
+ link?: string;
101
105
  };
102
106
  /**
103
107
  * 右侧: 用户下拉选菜单
package/AppLayout.js CHANGED
@@ -263,7 +263,13 @@ const Component = (props) => {
263
263
  display: block;
264
264
  margin: 0 6px;
265
265
  }
266
- ` },
266
+ `, onClick: () => {
267
+ const link = props?.logo?.link || '';
268
+ if (link === '') {
269
+ return;
270
+ }
271
+ window.location.href = link;
272
+ } },
267
273
  React.createElement("img", { src: props?.logo?.path, alt: "" })), title: false, avatarProps: {
268
274
  src: (userInfo?.avatar || '') === '' ? '/avatar.png' : userInfo?.avatar,
269
275
  size: 'small',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "beer-assembly-biz",
3
3
  "private": false,
4
- "version": "1.1.1-alpha.22",
4
+ "version": "1.1.1-alpha.24",
5
5
  "scripts": {
6
6
  "pub-w": "tsc && copy package.json .\\dist\\package.json && npm publish ./dist",
7
7
  "pub-m": "tsc && cp -a src/icon ./dist && cp -a src/fonts ./dist && cp -a src/images ./dist && cp package.json ./dist/package.json && npm publish ./dist"
@@ -10,7 +10,7 @@
10
10
  "@ant-design/icons": "^5.2.6",
11
11
  "@ant-design/pro-components": "^2.6.49",
12
12
  "@emotion/css": "^11.11.2",
13
- "antd": "^5.10.0",
13
+ "antd": "^5.21.0",
14
14
  "beer-network": "^1.1.1-alpha.17",
15
15
  "beer-assembly": "^1.1.1-alpha.73",
16
16
  "dayjs": "^1.11.13",