jky-component-lib 0.0.144 → 0.0.145

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.
@@ -107,15 +107,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
107
107
  }, point.data));
108
108
  }
109
109
  function updatePoints(newPoints) {
110
- if (!clusterInstance)
110
+ if (!mapInstance)
111
111
  return;
112
- clusterInstance.setMap(null);
113
- const points = newPoints.map((point) => __spreadValues({
114
- lnglat: point.lnglat,
115
- title: point.title,
116
- content: point.content
117
- }, point.data));
118
- clusterInstance.addMarkers(points);
112
+ modelValue.value = newPoints;
113
+ initCluster(mapInstance);
119
114
  }
120
115
  function clearClusters() {
121
116
  if (clusterInstance) {
@@ -1,3 +1,7 @@
1
1
 
2
- /* 轨迹回放组件不需要额外样式 */
3
- /* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
2
+ /* JkyAMarker 组件样式 - 参考高德官方示例 */
3
+ .amap-icon img,
4
+ .amap-marker-content img {
5
+ width: 25px;
6
+ height: 34px;
7
+ }
@@ -1,14 +1,3 @@
1
- /* AMap 高德地图组件样式 */
2
- .jky-amap-container {
3
- /* 地图容器样式 */
4
- position: relative;
5
- overflow: hidden;
6
1
 
7
- /* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
8
- .amap-logo {
9
- display: none !important;
10
- }
11
- .amap-copyright {
12
- display: none !important;
13
- }
14
- }
2
+ /* 轨迹回放组件不需要额外样式 */
3
+ /* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
@@ -1,7 +1,14 @@
1
+ /* AMap 高德地图组件样式 */
2
+ .jky-amap-container {
3
+ /* 地图容器样式 */
4
+ position: relative;
5
+ overflow: hidden;
1
6
 
2
- /* JkyAMarker 组件样式 - 参考高德官方示例 */
3
- .amap-icon img,
4
- .amap-marker-content img {
5
- width: 25px;
6
- height: 34px;
7
+ /* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
8
+ .amap-logo {
9
+ display: none !important;
10
+ }
11
+ .amap-copyright {
12
+ display: none !important;
13
+ }
7
14
  }
@@ -1,4 +1,4 @@
1
- const version = "0.0.144";
1
+ const version = "0.0.145";
2
2
  export {
3
3
  version
4
4
  };
@@ -6,7 +6,10 @@ const defaultExcludeStyleList = [
6
6
  "ATrackPlayback",
7
7
  // Form 相关子组件,共用 form 目录的样式
8
8
  "FormItem",
9
- "AMapPickerItem"
9
+ "AMapPickerItem",
10
+ // 常见拼写变体(防止误写)
11
+ "AMarkerCluster"
12
+ // AClusterMarker 的常见误写
10
13
  ];
11
14
  function JkyComponentLibResolver(options = {}) {
12
15
  const { excludeStyleList = [] } = options;
@@ -109,15 +109,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
109
109
  }, point.data));
110
110
  }
111
111
  function updatePoints(newPoints) {
112
- if (!clusterInstance)
112
+ if (!mapInstance)
113
113
  return;
114
- clusterInstance.setMap(null);
115
- const points = newPoints.map((point) => __spreadValues({
116
- lnglat: point.lnglat,
117
- title: point.title,
118
- content: point.content
119
- }, point.data));
120
- clusterInstance.addMarkers(points);
114
+ modelValue.value = newPoints;
115
+ initCluster(mapInstance);
121
116
  }
122
117
  function clearClusters() {
123
118
  if (clusterInstance) {
@@ -1,3 +1,7 @@
1
1
 
2
- /* 轨迹回放组件不需要额外样式 */
3
- /* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
2
+ /* JkyAMarker 组件样式 - 参考高德官方示例 */
3
+ .amap-icon img,
4
+ .amap-marker-content img {
5
+ width: 25px;
6
+ height: 34px;
7
+ }
@@ -1,14 +1,3 @@
1
- /* AMap 高德地图组件样式 */
2
- .jky-amap-container {
3
- /* 地图容器样式 */
4
- position: relative;
5
- overflow: hidden;
6
1
 
7
- /* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
8
- .amap-logo {
9
- display: none !important;
10
- }
11
- .amap-copyright {
12
- display: none !important;
13
- }
14
- }
2
+ /* 轨迹回放组件不需要额外样式 */
3
+ /* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
@@ -1,7 +1,14 @@
1
+ /* AMap 高德地图组件样式 */
2
+ .jky-amap-container {
3
+ /* 地图容器样式 */
4
+ position: relative;
5
+ overflow: hidden;
1
6
 
2
- /* JkyAMarker 组件样式 - 参考高德官方示例 */
3
- .amap-icon img,
4
- .amap-marker-content img {
5
- width: 25px;
6
- height: 34px;
7
+ /* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
8
+ .amap-logo {
9
+ display: none !important;
10
+ }
11
+ .amap-copyright {
12
+ display: none !important;
13
+ }
7
14
  }
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "0.0.144";
3
+ const version = "0.0.145";
4
4
  exports.version = version;
@@ -8,7 +8,10 @@ const defaultExcludeStyleList = [
8
8
  "ATrackPlayback",
9
9
  // Form 相关子组件,共用 form 目录的样式
10
10
  "FormItem",
11
- "AMapPickerItem"
11
+ "AMapPickerItem",
12
+ // 常见拼写变体(防止误写)
13
+ "AMarkerCluster"
14
+ // AClusterMarker 的常见误写
12
15
  ];
13
16
  function JkyComponentLibResolver(options = {}) {
14
17
  const { excludeStyleList = [] } = options;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jky-component-lib",
3
3
  "type": "module",
4
- "version": "0.0.144",
4
+ "version": "0.0.145",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },