From d74b495736f0c04522ec54274b70fed0ded2878d Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Tue, 27 Jun 2023 11:30:06 +0800
Subject: [PATCH] 任务新增导出

---
 public/map/core/BaseControl.js |   73 ++++++++++++++++++++++++++++++++++++
 1 files changed, 73 insertions(+), 0 deletions(-)

diff --git a/public/map/core/BaseControl.js b/public/map/core/BaseControl.js
new file mode 100644
index 0000000..d7a5f22
--- /dev/null
+++ b/public/map/core/BaseControl.js
@@ -0,0 +1,73 @@
+/**
+ * control基类
+ * @author Wenyb
+ * @date 2015/10/30
+ */
+define([
+  "dojo/_base/declare",
+  "dijit/_WidgetBase", 
+  "dijit/_TemplatedMixin",
+  "base/AppEvent",
+  "dojo/domReady!"
+], function (
+  declare,
+  _WidgetBase, 
+  _TemplatedMixin,
+  AppEvent
+  ){
+	var Widget = declare([_WidgetBase,_TemplatedMixin
+		],
+		{
+			_config: null,
+			_loaded:false,
+			cssPathsIndex:{},
+			label:"控件基类",
+			id:"",
+			/**
+			 * 挂接的父级control的Id
+			 */
+			hockId:"",
+			/**
+			 * 挂接的Map控件 
+			 */
+			map:null,
+			constructor:function(options)
+			{
+				declare.safeMixin(this, options);
+				if(this.cssPath&&!this.cssPathsIndex[this.cssPath])
+				{
+					dojo.create("link", {
+						href: require.toUrl(this.cssPath),
+						type: 'text/css',
+						rel: 'stylesheet'
+					},
+					document.getElementsByTagName('head')[0]);
+					this.cssPathsIndex[this.cssPath]=true;
+				}
+				this._loaded=false;
+			},
+			startup:function()
+			{
+				this._loaded = true;
+			},
+			loaded:function()
+			{
+				return this._loaded;
+			},
+			/**
+			 * 显示控件
+			 * @return
+			 */
+			show:function()
+			{
+			},
+			/**
+			 * 隐藏控件
+			 * @return boolean
+			 */
+			hide:function()
+			{
+			}
+		});
+	return Widget;
+});

--
Gitblit v1.9.3