beer-assembly-biz 1.1.1-alpha.3 → 1.1.1-alpha.4

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
@@ -82,14 +82,14 @@ export declare type LayoutProps = {
82
82
  * 左侧: Logo样式
83
83
  */
84
84
  logo?: {
85
- /**
86
- * 高度
87
- */
88
- height: number;
89
85
  /**
90
86
  * Logo 路径
91
87
  */
92
88
  path: string;
89
+ /**
90
+ * 高度
91
+ */
92
+ height?: number;
93
93
  };
94
94
  /**
95
95
  * 右侧: 用户下拉选菜单
package/AppLayout.js CHANGED
@@ -259,7 +259,7 @@ const Component = (props) => {
259
259
  align-items: center;
260
260
 
261
261
  & > img {
262
- height: ${props?.logo?.height || 22}px;
262
+ height: ${props?.logo?.height || 28}px;
263
263
  display: block;
264
264
  margin: 0 6px;
265
265
  }
@@ -299,14 +299,13 @@ const Component = (props) => {
299
299
  {
300
300
  type: 'divider'
301
301
  },
302
- ...(props?.userMenus || []),
303
- {
304
- type: 'divider'
305
- },
302
+ ...((props?.userMenus || [])?.length > 0 ? [...(props?.userMenus || []), {
303
+ type: 'divider'
304
+ }] : []),
306
305
  {
307
306
  key: 'EXIT',
308
307
  danger: true,
309
- label: React.createElement("div", { onClick: onLogout }, "\u9000\u51FA\u767B\u5F55")
308
+ label: React.createElement("div", { style: { width: '100%' }, onClick: onLogout }, "\u9000\u51FA\u767B\u5F55")
310
309
  }
311
310
  ]
312
311
  } }, dom));
package/UserModals.js CHANGED
@@ -11,7 +11,7 @@ export class UserModals {
11
11
  return false;
12
12
  }
13
13
  if (callbackRef.current) {
14
- if (await callbackRef.current?.(form.getFieldsValue())) {
14
+ if (await callbackRef.current?.(form.getFieldValue('password'))) {
15
15
  setIsOpenModal(false);
16
16
  }
17
17
  }
@@ -34,6 +34,6 @@ export class UserModals {
34
34
  required: true,
35
35
  message: '请输入密码'
36
36
  }] },
37
- React.createElement(Input.Password, { placeholder: "\u65B0\u5BC6\u7801" })))))];
37
+ React.createElement(Input.Password, { placeholder: "\u65B0\u5BC6\u7801", autoComplete: "off" })))))];
38
38
  }
39
39
  }
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.3",
4
+ "version": "1.1.1-alpha.4",
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"