mrxy-yk 1.9.1 → 1.9.3

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.
@@ -4,9 +4,19 @@ import { ElTableColumnGlobal } from "../element-plus/components/table-column/ind
4
4
  import { ExportLinkGlobal } from "../components/export-link/index.js";
5
5
  import { EmptyGlobal } from "../components/empty/index.js";
6
6
  //#region src/config/index.ts
7
+ var _mapSecret = null;
7
8
  var AMapConfig = {
8
9
  mapKey: null,
9
- mapSecret: null
10
+ mapSecret: {
11
+ get() {
12
+ return _mapSecret;
13
+ },
14
+ set(value) {
15
+ _mapSecret = value;
16
+ const win = window;
17
+ win._AMapSecurityConfig = { securityJsCode: value };
18
+ }
19
+ }
10
20
  };
11
21
  /**
12
22
  * @example
@@ -24,4 +24,4 @@ export namespace AMap {
24
24
  export class Polyline extends _Polyline {}
25
25
  export class Weather extends _Weather {}
26
26
  }
27
- export type AMap = typeof AMap
27
+ export type AMap = typeof AMap & Record<string, any>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mrxy-yk",
3
- "version": "1.9.1",
3
+ "version": "1.9.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A collection of Vue 3 components and utilities",