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 +4 -4
- package/AppLayout.js +5 -6
- package/UserModals.js +2 -2
- package/package.json +1 -1
package/AppLayout.d.ts
CHANGED
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 ||
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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"
|