Skip to content

Commit

Permalink
v5.0.9 released v5.0.9 (#324) b829e56
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 3, 2023
1 parent 353b636 commit 9b090c5
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 28 deletions.
18 changes: 8 additions & 10 deletions amap.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,7 @@ function useEventProperties(instance, props, eventName, type) {
instance.off(eName, eventHandle);
}
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [instance, props[eventName]]);
}, [instance, eventHandle]);
});
}

Expand Down Expand Up @@ -496,18 +495,17 @@ function useSettingProperties(instance, props, propsName) {
propsName.forEach(name => {
var eName = "set" + name;
var vName = "" + name.charAt(0).toLowerCase() + name.slice(1);
// eslint-disable-next-line react-hooks/rules-of-hooks
var [state, setState] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(props[vName]);
var eventHandle = props[vName];
var [state, setState] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(eventHandle);
// eslint-disable-next-line react-hooks/rules-of-hooks
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
if (instance && props[vName] !== undefined) {
if (props[vName] !== state && instance[eName] && typeof instance[eName] === 'function') {
instance[eName](props[vName]);
setState(props[vName]);
if (instance && eventHandle !== undefined) {
if (eventHandle !== state && instance[eName] && typeof instance[eName] === 'function') {
instance[eName](eventHandle);
setState(eventHandle);
}
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [instance, props[vName]]);
}, [instance, eventHandle]);
});
}
;// CONCATENATED MODULE: ../auto-complete/esm/useAutoComplete.js
Expand Down
2 changes: 1 addition & 1 deletion amap.min.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "/react-amap/static/css/main.bcb671be.css",
"main.js": "/react-amap/static/js/main.6dd73f8f.js",
"main.js": "/react-amap/static/js/main.bbd0dd67.js",
"static/css/7365.bf0e21c2.chunk.css": "/react-amap/static/css/7365.bf0e21c2.chunk.css",
"static/js/7365.f4a91d19.chunk.js": "/react-amap/static/js/7365.f4a91d19.chunk.js",
"static/css/3034.bf0e21c2.chunk.css": "/react-amap/static/css/3034.bf0e21c2.chunk.css",
Expand Down Expand Up @@ -64,7 +64,7 @@
"static/js/9759.1ae4b3dc.chunk.js": "/react-amap/static/js/9759.1ae4b3dc.chunk.js",
"static/css/5761.bf0e21c2.chunk.css": "/react-amap/static/css/5761.bf0e21c2.chunk.css",
"static/js/5761.f774855c.chunk.js": "/react-amap/static/js/5761.f774855c.chunk.js",
"static/js/4702.3106727c.chunk.js": "/react-amap/static/js/4702.3106727c.chunk.js",
"static/js/4702.f6787a44.chunk.js": "/react-amap/static/js/4702.f6787a44.chunk.js",
"static/js/837.7768b398.chunk.js": "/react-amap/static/js/837.7768b398.chunk.js",
"static/js/3727.122c854f.chunk.js": "/react-amap/static/js/3727.122c854f.chunk.js",
"static/js/2156.7c904b42.chunk.js": "/react-amap/static/js/2156.7c904b42.chunk.js",
Expand Down Expand Up @@ -101,11 +101,11 @@
"react-vendor.js": "/react-amap/static/js/react-vendor.69b94a96.js",
"static/js/658.9e987835.chunk.js": "/react-amap/static/js/658.9e987835.chunk.js",
"static/js/8665.c974ce09.js": "/react-amap/static/js/8665.c974ce09.js",
"static/js/5775.4a5d7cbf.chunk.js": "/react-amap/static/js/5775.4a5d7cbf.chunk.js",
"static/js/5775.b3985d06.chunk.js": "/react-amap/static/js/5775.b3985d06.chunk.js",
"static/media/logo.svg": "/react-amap/static/media/logo.552138f67b47aa2ff9779e6ffc2abeed.svg",
"index.html": "/react-amap/index.html",
"main.bcb671be.css.map": "/react-amap/static/css/main.bcb671be.css.map",
"main.6dd73f8f.js.map": "/react-amap/static/js/main.6dd73f8f.js.map",
"main.bbd0dd67.js.map": "/react-amap/static/js/main.bbd0dd67.js.map",
"7365.bf0e21c2.chunk.css.map": "/react-amap/static/css/7365.bf0e21c2.chunk.css.map",
"7365.f4a91d19.chunk.js.map": "/react-amap/static/js/7365.f4a91d19.chunk.js.map",
"3034.bf0e21c2.chunk.css.map": "/react-amap/static/css/3034.bf0e21c2.chunk.css.map",
Expand Down Expand Up @@ -168,7 +168,7 @@
"9759.1ae4b3dc.chunk.js.map": "/react-amap/static/js/9759.1ae4b3dc.chunk.js.map",
"5761.bf0e21c2.chunk.css.map": "/react-amap/static/css/5761.bf0e21c2.chunk.css.map",
"5761.f774855c.chunk.js.map": "/react-amap/static/js/5761.f774855c.chunk.js.map",
"4702.3106727c.chunk.js.map": "/react-amap/static/js/4702.3106727c.chunk.js.map",
"4702.f6787a44.chunk.js.map": "/react-amap/static/js/4702.f6787a44.chunk.js.map",
"837.7768b398.chunk.js.map": "/react-amap/static/js/837.7768b398.chunk.js.map",
"3727.122c854f.chunk.js.map": "/react-amap/static/js/3727.122c854f.chunk.js.map",
"2156.7c904b42.chunk.js.map": "/react-amap/static/js/2156.7c904b42.chunk.js.map",
Expand Down Expand Up @@ -205,12 +205,12 @@
"react-vendor.69b94a96.js.map": "/react-amap/static/js/react-vendor.69b94a96.js.map",
"658.9e987835.chunk.js.map": "/react-amap/static/js/658.9e987835.chunk.js.map",
"8665.c974ce09.js.map": "/react-amap/static/js/8665.c974ce09.js.map",
"5775.4a5d7cbf.chunk.js.map": "/react-amap/static/js/5775.4a5d7cbf.chunk.js.map"
"5775.b3985d06.chunk.js.map": "/react-amap/static/js/5775.b3985d06.chunk.js.map"
},
"entrypoints": [
"static/js/react-vendor.69b94a96.js",
"static/js/8665.c974ce09.js",
"static/css/main.bcb671be.css",
"static/js/main.6dd73f8f.js"
"static/js/main.bbd0dd67.js"
]
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>React AMap - 高德地图 React 组件</title><meta name="keywords" content="react,component,amap,高德地图,地图,高德"/><meta name="description" content="这是一个基于 React 封装的高德地图组件,帮助你轻松的接入地图到 React 项目中。"/><link href="favicon.ico" rel="shortcut icon"><script defer="defer" src="./static/js/react-vendor.69b94a96.js"></script><script defer="defer" src="./static/js/8665.c974ce09.js"></script><script defer="defer" src="./static/js/main.6dd73f8f.js"></script><link href="./static/css/main.bcb671be.css" rel="stylesheet"></head><body><img src="logo.svg" style="display:none" alt="React amap logo - 高德地图 React 组件"/><div style="display:block" id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>React AMap - 高德地图 React 组件</title><meta name="keywords" content="react,component,amap,高德地图,地图,高德"/><meta name="description" content="这是一个基于 React 封装的高德地图组件,帮助你轻松的接入地图到 React 项目中。"/><link href="favicon.ico" rel="shortcut icon"><script defer="defer" src="./static/js/react-vendor.69b94a96.js"></script><script defer="defer" src="./static/js/8665.c974ce09.js"></script><script defer="defer" src="./static/js/main.bbd0dd67.js"></script><link href="./static/css/main.bcb671be.css" rel="stylesheet"></head><body><img src="logo.svg" style="display:none" alt="React amap logo - 高德地图 React 组件"/><div style="display:block" id="root"></div></body></html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions static/js/5775.4a5d7cbf.chunk.js

This file was deleted.

1 change: 0 additions & 1 deletion static/js/5775.4a5d7cbf.chunk.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions static/js/5775.b3985d06.chunk.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/js/5775.b3985d06.chunk.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/js/main.6dd73f8f.js → static/js/main.bbd0dd67.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 9b090c5

Please sign in to comment.