fix: mapbox添加react导入
This commit is contained in:
parent
0a7a210322
commit
619cbffa1c
@ -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) {
|
||||
|
2
packages/map/es/user/index.d.ts
vendored
2
packages/map/es/user/index.d.ts
vendored
@ -1,2 +0,0 @@
|
||||
declare const _default: {};
|
||||
export default _default;
|
@ -1 +0,0 @@
|
||||
export default {};
|
@ -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,25 +0,0 @@
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/user/index.ts
|
||||
var user_exports = {};
|
||||
__export(user_exports, {
|
||||
default: () => user_default
|
||||
});
|
||||
module.exports = __toCommonJS(user_exports);
|
||||
var user_default = {};
|
@ -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