@uiw/react-amap-api-loader
Advanced tools
Comparing version 5.0.21 to 6.0.0
@@ -37,13 +37,2 @@ import { FC, PropsWithChildren } from 'react'; | ||
export interface APILoaderProps extends APILoaderConfig { | ||
/** | ||
* 请使用 `key` | ||
* @deprecated | ||
*/ | ||
akay?: string; | ||
/** | ||
* 请使用 `plugins` | ||
* @deprecated | ||
* @example `AMap.ToolBar,AMap.Driving` | ||
*/ | ||
plugin?: string; | ||
} | ||
@@ -50,0 +39,0 @@ /** |
@@ -29,4 +29,4 @@ "use strict"; | ||
(0, _react.useEffect)(function () { | ||
var aKey = config.akey || config.akay || ''; | ||
var plugins = config.plugins || (config.plugin ? config.plugin.split(',') : []); | ||
var aKey = config.akey || ''; | ||
var plugins = config.plugins; | ||
(0, _amapJsapiLoader.load)({ | ||
@@ -44,3 +44,3 @@ key: aKey, | ||
}); | ||
}, [config.akey, config.akay]); | ||
}, [config.akey]); | ||
if (error) { | ||
@@ -47,0 +47,0 @@ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", { |
@@ -37,13 +37,2 @@ import { FC, PropsWithChildren } from 'react'; | ||
export interface APILoaderProps extends APILoaderConfig { | ||
/** | ||
* 请使用 `key` | ||
* @deprecated | ||
*/ | ||
akay?: string; | ||
/** | ||
* 请使用 `plugins` | ||
* @deprecated | ||
* @example `AMap.ToolBar,AMap.Driving` | ||
*/ | ||
plugin?: string; | ||
} | ||
@@ -50,0 +39,0 @@ /** |
@@ -19,4 +19,4 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; | ||
useEffect(() => { | ||
var aKey = config.akey || config.akay || ''; | ||
var plugins = config.plugins || (config.plugin ? config.plugin.split(',') : []); | ||
var aKey = config.akey || ''; | ||
var plugins = config.plugins; | ||
load({ | ||
@@ -34,3 +34,3 @@ key: aKey, | ||
}); | ||
}, [config.akey, config.akay]); | ||
}, [config.akey]); | ||
if (error) { | ||
@@ -37,0 +37,0 @@ return /*#__PURE__*/_jsx("div", { |
{ | ||
"name": "@uiw/react-amap-api-loader", | ||
"version": "5.0.21", | ||
"version": "6.0.0", | ||
"description": "用于加载高德地图 SDK 依赖,加载完成,全局将会有 **`window.AMap`** 对象。", | ||
@@ -38,4 +38,4 @@ "funding": "https://jaywcjlove.github.io/#/sponsor", | ||
"@amap/amap-jsapi-loader": "^1.0.1", | ||
"@uiw/react-amap-require-script": "5.0.21", | ||
"@uiw/react-amap-types": "5.0.21" | ||
"@uiw/react-amap-require-script": "6.0.0", | ||
"@uiw/react-amap-types": "6.0.0" | ||
}, | ||
@@ -42,0 +42,0 @@ "devDependencies": { |
@@ -119,15 +119,3 @@ APILoader | ||
}>; | ||
export interface APILoaderProps extends APILoaderConfig { | ||
/** | ||
* 请使用 `key` | ||
* @deprecated | ||
*/ | ||
akay?: string; | ||
/** | ||
* 请使用 `plugins` | ||
* @deprecated | ||
* @example `AMap.ToolBar,AMap.Driving` | ||
*/ | ||
plugin?: string; | ||
} | ||
export interface APILoaderProps extends APILoaderConfig { } | ||
``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12966
252
120
+ Added@uiw/react-amap-require-script@6.0.0(transitive)
+ Added@uiw/react-amap-types@6.0.0(transitive)
- Removed@uiw/react-amap-require-script@5.0.21(transitive)
- Removed@uiw/react-amap-types@5.0.21(transitive)
Updated@uiw/react-amap-types@6.0.0