@arcblock/ux 2.5.47 → 2.5.48
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.
@@ -480,7 +480,8 @@ SessionManager.propTypes = {
|
|
480
480
|
switchDid: _propTypes.default.func.isRequired,
|
481
481
|
switchProfile: _propTypes.default.func.isRequired,
|
482
482
|
switchPassport: _propTypes.default.func.isRequired,
|
483
|
-
bindWallet: _propTypes.default.func.isRequired
|
483
|
+
bindWallet: _propTypes.default.func.isRequired,
|
484
|
+
refresh: _propTypes.default.func.isRequired
|
484
485
|
}).isRequired,
|
485
486
|
locale: _propTypes.default.string,
|
486
487
|
showText: _propTypes.default.bool,
|
package/lib/SplitButton/index.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "2.5.
|
3
|
+
"version": "2.5.48",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -45,11 +45,11 @@
|
|
45
45
|
"peerDependencies": {
|
46
46
|
"react": ">=18.1.0"
|
47
47
|
},
|
48
|
-
"gitHead": "
|
48
|
+
"gitHead": "79c5d91c07cd0d7c76286b9865d902a27acc163f",
|
49
49
|
"dependencies": {
|
50
50
|
"@arcblock/did-motif": "^1.1.10",
|
51
|
-
"@arcblock/icons": "^2.5.
|
52
|
-
"@arcblock/react-hooks": "^2.5.
|
51
|
+
"@arcblock/icons": "^2.5.48",
|
52
|
+
"@arcblock/react-hooks": "^2.5.48",
|
53
53
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
54
54
|
"@emotion/react": "^11.10.4",
|
55
55
|
"@emotion/styled": "^11.10.4",
|
@@ -391,6 +391,7 @@ SessionManager.propTypes = {
|
|
391
391
|
switchProfile: PropTypes.func.isRequired,
|
392
392
|
switchPassport: PropTypes.func.isRequired,
|
393
393
|
bindWallet: PropTypes.func.isRequired,
|
394
|
+
refresh: PropTypes.func.isRequired,
|
394
395
|
}).isRequired,
|
395
396
|
locale: PropTypes.string,
|
396
397
|
showText: PropTypes.bool,
|
package/src/SplitButton/index.js
CHANGED
@@ -49,7 +49,7 @@ export default function SplitButton({ size, color, menu, children, variant, onCl
|
|
49
49
|
|
50
50
|
// 点击 item 后收起下拉菜单, 如果想要点击 action 后不收起下拉菜单, 可以在 item#onClick 时调用 e.stopPropagation()
|
51
51
|
const handleItemClick = (e) => {
|
52
|
-
if (e.target.
|
52
|
+
if (e.target.closest('.MuiMenuItem-root')) {
|
53
53
|
setOpen(false);
|
54
54
|
}
|
55
55
|
};
|