Merge branch 'develop-lf' into 'develop'
fix: mapbox添加react导入 See merge request web-project/zhst-lambo!11
This commit is contained in:
commit
8eb6ad5fd7
@ -11,6 +11,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
||||
import 'mapbox-gl/dist/mapbox-gl.css';
|
||||
import Map from 'react-map-gl';
|
||||
import "./index.less";
|
||||
import React from 'react';
|
||||
import { merge } from "./utils";
|
||||
import { MAP_CENTER, defaultMapConfig } from "./constants";
|
||||
var MapBox = function MapBox(props) {
|
||||
|
@ -35,6 +35,7 @@ module.exports = __toCommonJS(MapBox_exports);
|
||||
var import_mapbox_gl = require("mapbox-gl/dist/mapbox-gl.css");
|
||||
var import_react_map_gl = __toESM(require("react-map-gl"));
|
||||
var import_index = require("./index.less");
|
||||
var import_react = __toESM(require("react"));
|
||||
var import_utils = require("./utils");
|
||||
var import_constants = require("./constants");
|
||||
var MapBox = (props) => {
|
||||
@ -49,7 +50,7 @@ var MapBox = (props) => {
|
||||
} = props || {};
|
||||
return (
|
||||
//@ts-ignore
|
||||
/* @__PURE__ */ React.createElement(
|
||||
/* @__PURE__ */ import_react.default.createElement(
|
||||
import_react_map_gl.default,
|
||||
{
|
||||
ref: (e) => {
|
||||
|
@ -1,6 +1,7 @@
|
||||
import 'mapbox-gl/dist/mapbox-gl.css';
|
||||
import Map from 'react-map-gl';
|
||||
import './index.less';
|
||||
import React from 'react';
|
||||
import { MapProps } from './interface';
|
||||
import { merge } from './utils';
|
||||
import { MAP_CENTER, defaultMapConfig } from './constants';
|
||||
|
Loading…
Reference in New Issue
Block a user