cione-comp-lib
Version:
`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`
39 lines (38 loc) • 1.67 kB
JavaScript
import { defineComponent, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, pushScopeId, popScopeId } from "vue";
import { MapManageModule } from "../mapManageClass/module/index.mjs";
import "./amapComp.vue_vue_type_style_index_0_scoped_true_lang.mjs";
import _export_sfc from "../../../../_virtual/plugin-vue_export-helper.mjs";
const _withScopeId = (n) => (pushScopeId("data-v-141d6220"), n = n(), popScopeId(), n);
const _hoisted_1 = { class: "vue_amap_container" };
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("h1", null, "Vue-amap", -1));
const _hoisted_3 = { class: "map-page-container" };
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "amapComp",
props: {
mapSourceProps: Object
},
setup(__props) {
const props = __props;
const { mapSourceProps } = toRefs(props);
MapManageModule.initMap({
frameMap: "Vue_amap",
centerPoint: [121.59996, 31.197646],
zoom: 12
});
return (_ctx, _cache) => {
var _a, _b;
const _component_el_amap = resolveComponent("el-amap");
return openBlock(), createElementBlock("div", _hoisted_1, [
_hoisted_2,
createElementVNode("div", _hoisted_3, [
createVNode(_component_el_amap, {
center: (_a = unref(mapSourceProps)) == null ? void 0 : _a.centerPoint,
zoom: (_b = unref(mapSourceProps)) == null ? void 0 : _b.zoom
}, null, 8, ["center", "zoom"])
])
]);
};
}
});
var Vueamap = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-141d6220"]]);
export { Vueamap as default };