From 77f7281ff7cee541aaa51339512e6443b7d89e42 Mon Sep 17 00:00:00 2001
From: YANGDL <114714267@qq.com>
Date: 星期二, 05 一月 2021 12:04:25 +0800
Subject: [PATCH] 修改eslint配置增加mock配置
---
src/components/helpers/VectorLayerHelper.js | 60 ++++++++++++++++++++++++++++++------------------------------
1 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/src/components/helpers/VectorLayerHelper.js b/src/components/helpers/VectorLayerHelper.js
index 2ebcbc9..38b9102 100644
--- a/src/components/helpers/VectorLayerHelper.js
+++ b/src/components/helpers/VectorLayerHelper.js
@@ -1,56 +1,56 @@
/**
* 涓氬姟鐩稿叧鐭㈤噺鍥剧鐞嗗姪鎵嬶紝璐熻矗涓氬姟鐩稿叧鐭㈤噺鍥惧垱寤哄強寮�鍏�
*/
-function VectorLayerHelper(options) {
- this.map = options.map
- this.L = options.L
- this.vectorLayerMap = new Map()
- this.vectorLayerList = []
- this.vectorLayerGroup = null
- this.vueState = {} // 鐢ㄦ埛鍥惧眰鏉冮檺
- /**
+function VectorLayerHelper (options) {
+ this.map = options.map
+ this.L = options.L
+ this.vectorLayerMap = new Map()
+ this.vectorLayerList = []
+ this.vectorLayerGroup = null
+ this.vueState = {} // 鐢ㄦ埛鍥惧眰鏉冮檺
+ /**
* 璇ユ柟娉曡礋璐e悇绉嶅簳鍥惧姞杞藉埌鍦板浘涓�
* 涓嶅悓椤甸潰鍔犺浇鍥惧眰涓嶅悓鏍规嵁妯″潡绫诲瀷閫夋嫨鍔犺浇涓嶅悓鍥惧眰
* @param map
*/
- this.initVectorLayers = (vueState) => {
- this.vectorLayerGroup = options.L.layerGroup().addTo(options.map)
- this.vueState = vueState
- }
+ this.initVectorLayers = (vueState) => {
+ this.vectorLayerGroup = options.L.layerGroup().addTo(options.map)
+ this.vueState = vueState
+ }
- /**
+ /**
* 鑾峰彇鎵�鏈夌殑鍥惧眰鍒楄〃
* @returns {null} 缁撴瀯锛歔{鍚嶇О, 鍥惧眰寮曠敤}]
*/
- this.getVectorLayerList = () => {
- return this.vectorLayerList
- }
+ this.getVectorLayerList = () => {
+ return this.vectorLayerList
+ }
- /**
+ /**
* 閫氳繃鍚嶇О鑾峰彇鍥惧眰瀵硅薄
* @param name 鍚嶇О
*/
- this.getVectorLayer = (code) => {
- return this.vectorLayerMap[code]
- }
+ this.getVectorLayer = (code) => {
+ return this.vectorLayerMap[code]
+ }
- /**
+ /**
* 鏄剧ず鏌愪釜鍥惧眰
* @param name 鍥惧眰鍚嶇О
*/
- this.showVectorLayer = (code) => {
- let layer = this.vectorLayerMap.get(code)
- this.map.addLayer(layer)
- }
+ this.showVectorLayer = (code) => {
+ const layer = this.vectorLayerMap.get(code)
+ this.map.addLayer(layer)
+ }
- /**
+ /**
* 闅愯棌鏌愪釜鍥惧眰
* @param name 鍥惧眰鍚嶇О
*/
- this.hideVectorLayer = (code) => {
- let layer = this.vectorLayerMap.get(code)
- this.map.removeLayer(layer)
- }
+ this.hideVectorLayer = (code) => {
+ const layer = this.vectorLayerMap.get(code)
+ this.map.removeLayer(layer)
+ }
}
export default VectorLayerHelper
--
Gitblit v1.8.0