augustine-jkmap 1.1.4 → 1.1.5
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.
|
@@ -12756,21 +12756,22 @@ var mapList_component = normalizeComponent(
|
|
|
12756
12756
|
|
|
12757
12757
|
/* harmony default export */ const mapList = (mapList_component.exports);
|
|
12758
12758
|
;// ./src/index.js
|
|
12759
|
+
// 导入 src/css 下的全局 CSS(根据你的实际文件名调整)
|
|
12759
12760
|
|
|
12760
12761
|
|
|
12761
12762
|
|
|
12762
12763
|
|
|
12763
12764
|
|
|
12764
12765
|
// 所有组件列表
|
|
12765
|
-
const components = [augustineGjMap, augustineMap, locationMap, mapList]
|
|
12766
|
+
const components = [augustineGjMap, augustineMap, locationMap, mapList];
|
|
12766
12767
|
// install 方法
|
|
12767
12768
|
const install = (Vue) => {
|
|
12768
|
-
if (install.installed) return
|
|
12769
|
-
install.installed = true
|
|
12769
|
+
if (install.installed) return;
|
|
12770
|
+
install.installed = true;
|
|
12770
12771
|
components.forEach((comp) => {
|
|
12771
|
-
Vue.component(comp.name, comp)
|
|
12772
|
-
})
|
|
12773
|
-
}
|
|
12772
|
+
Vue.component(comp.name, comp);
|
|
12773
|
+
});
|
|
12774
|
+
};
|
|
12774
12775
|
|
|
12775
12776
|
// 支持 Vue.use(MyLib)
|
|
12776
12777
|
/* harmony default export */ const src_0 = ({
|
|
@@ -12802,12 +12803,12 @@ const install = (Vue) => {
|
|
|
12802
12803
|
drawPolyline: drawPolyline,
|
|
12803
12804
|
drawPolygon: drawPolygon,
|
|
12804
12805
|
drawPolygonArr: drawPolygonArr,
|
|
12805
|
-
getArea: getArea
|
|
12806
|
+
getArea: getArea,
|
|
12806
12807
|
});
|
|
12807
12808
|
|
|
12808
12809
|
// 浏览器环境自动安装
|
|
12809
|
-
if (typeof window !==
|
|
12810
|
-
install(window.Vue)
|
|
12810
|
+
if (typeof window !== "undefined" && window.Vue) {
|
|
12811
|
+
install(window.Vue);
|
|
12811
12812
|
}
|
|
12812
12813
|
|
|
12813
12814
|
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|