tg-map-vue3 3.4.7 → 3.5.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # 更新日志
2
2
 
3
+ ## 3.5.x
4
+
5
+ - ***BREAKING CHANGE***: `useTgMap` -> [useTgMapInner]
6
+
3
7
  ## 3.4.x
4
8
 
5
9
  - feat: 添加矩形[TgRectangle]
@@ -38,3 +42,4 @@
38
42
  [PlacesService]: src/map/map/extra/places-service.ts "位置服务"
39
43
  [Autocomplete]: src/map/map/extra/autocomplete.ts "自动完成"
40
44
  [SearchBox]: src/map/map/extra/search-box.ts "搜索框"
45
+ [useTgMapInner]: src/components/map-hooks.ts
@@ -1,5 +1,5 @@
1
- import { createEmptyVNode } from '../../utils/vue-utils';
2
1
  import { ControlPosition } from '../../map/map/controls/control';
2
+ import { createEmptyVNode } from '../../utils/vue-utils';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  position: {
5
5
  type: import("vue").PropType<import("../../utils/mapped-types").StringEnumValue<typeof ControlPosition>>;
@@ -1,7 +1,7 @@
1
1
  import { type Ref } from 'vue';
2
2
  import { type AbstractMap } from '.';
3
3
  /** 作为Vue3下, `MapMixin`的替代 */
4
- export declare function useTgMap(): {
4
+ export declare function useTgMapInner(): {
5
5
  mapRef: Ref<AbstractMap | undefined>;
6
6
  /** 读取map对象, 只要放在<tg-map>里面的组件(除#overlay插槽外)都能够立即读取到map对象 */
7
7
  readonly map: AbstractMap;
@@ -14,7 +14,7 @@ declare module 'vue' {
14
14
  [MIXIN_HOOK_DESTROY]?(): void;
15
15
  }
16
16
  }
17
- /** @deprecated 使用{@link useTgMap}替代 */
17
+ /** @deprecated 使用{@link useTgMapInner}替代 */
18
18
  declare const MapMixin: import("vue").DefineComponent<{}, {}, {}, {}, {
19
19
  recreate(): void;
20
20
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
package/dist/tg-map.js CHANGED
@@ -5908,6 +5908,6 @@ export {
5908
5908
  ms as unwrapStringEnumValue,
5909
5909
  Cs as useEventLogMethods,
5910
5910
  F as useSplittedAttrs,
5911
- Gi as useTgMap
5911
+ Gi as useTgMapInner
5912
5912
  };
5913
5913
  //# sourceMappingURL=tg-map.js.map