1.0.13 • Published 2 years ago

sanmap v1.0.13

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

修改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"