sanmap

1.0.13 • Public • Published

修改vue.config.js 的配置 修改eslint.js 的配置

parserOptions: { ecmaVersion: 7, }

transpileDependencies: [ '@sany/map' ], configureWebpack: { module: { rules: [ { test: /.js$/, use: { loader: '@open-wc/webpack-import-meta-loader' } } ] } },

引入使用组件前引入样式文件

// eslint-disable-next-line import/no-relative-parent-imports import '../../../../node_modules/cesium/Build/Cesium/Widgets/widgets.css'

为组件传入风机ID 其中F1008是ID turbine是地图组件顶部导航栏的位置

import { MapViewerWithFarm } from '@sany/map'

current-farm-code="F1008" current-tab-name="turbine"

Readme

Keywords

none

Package Sidebar

Install

npm i sanmap

Weekly Downloads

0

Version

1.0.13

License

ISC

Unpacked Size

13.3 MB

Total Files

804

Last publish

Collaborators

  • clairelg