@opentiny/vue-renderless
Version:
An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.
19 lines (18 loc) • 490 B
JavaScript
import "../chunk-G2ADBYYC.js";
import { getBmap } from "../chart-core/deps/utils";
const bmap = (columns, rows, settings, extra) => {
const { key, v, bmap: bmap2, useOuterMap, url } = settings;
const { _once } = extra;
const registerSign = "bmap_register";
if (_once[registerSign]) {
return {};
}
_once[registerSign] = true;
if (useOuterMap) {
return { bmap: bmap2 };
}
return getBmap({ key, version: v, url }).then(() => ({ bmap: bmap2 }));
};
export {
bmap
};