unknown 5 سال پیش
والد
کامیت
7c87305773
2فایلهای تغییر یافته به همراه17 افزوده شده و 0 حذف شده
  1. 5 0
      o2web/source/x_component_process_Xform/$Input.js
  2. 12 0
      o2web/source/x_component_process_Xform/$Module.js

+ 5 - 0
o2web/source/x_component_process_Xform/$Input.js

@@ -86,6 +86,11 @@ MWF.xApplication.process.Xform.$Input = MWF.APP$Input =  new Class(
                 if( this.json.showIcon!='no' && !this.form.json.hideModuleIcon ){
                 if( this.json.showIcon!='no' && !this.form.json.hideModuleIcon ){
                     if (COMMON.Browser.safari) w = w-20;
                     if (COMMON.Browser.safari) w = w-20;
                 }
                 }
+
+                /**
+                 * 描述信息节点,select\radio\checkbox无此节点,只读情况下无此节点.
+                 * @member {Element}
+                 */
                 this.descriptionNode = new Element("div", {"styles": this.form.css.descriptionNode, "text": this.json.description}).inject(this.node);
                 this.descriptionNode = new Element("div", {"styles": this.form.css.descriptionNode, "text": this.json.description}).inject(this.node);
                 this.descriptionNode.setStyles({
                 this.descriptionNode.setStyles({
                     "width": ""+w+"px",
                     "width": ""+w+"px",

+ 12 - 0
o2web/source/x_component_process_Xform/$Module.js

@@ -17,7 +17,13 @@ MWF.xApplication.process.Xform.$Module = MWF.APP$Module =  new Class(
          */
          */
         this.node = $(node);
         this.node = $(node);
         this.node.store("module", this);
         this.node.store("module", this);
+
+        /**
+         * 组件的配置信息,比如id,类型等.
+         * @member {JsonObject}
+         */
         this.json = json;
         this.json = json;
+
         /**
         /**
          * 组件的所在表单对象.
          * 组件的所在表单对象.
          * @member {MWF.xApplication.process.Xform.Form}
          * @member {MWF.xApplication.process.Xform.Form}
@@ -33,12 +39,18 @@ MWF.xApplication.process.Xform.$Module = MWF.APP$Module =  new Class(
         )) parent = parent.getParent();
         )) parent = parent.getParent();
         return (parent) ? parent.retrieve("module") : null;
         return (parent) ? parent.retrieve("module") : null;
     },
     },
+    /**
+     * 隐藏组件.
+     */
     hide: function(){
     hide: function(){
         var dsp = this.node.getStyle("display");
         var dsp = this.node.getStyle("display");
         if (dsp!=="none") this.node.store("mwf_display", dsp);
         if (dsp!=="none") this.node.store("mwf_display", dsp);
         this.node.setStyle("display", "none");
         this.node.setStyle("display", "none");
         if (this.iconNode) this.iconNode.setStyle("display", "none");
         if (this.iconNode) this.iconNode.setStyle("display", "none");
     },
     },
+    /**
+     * 显示组件.
+     */
     show: function(){
     show: function(){
         var dsp = this.node.retrieve("mwf_display", dsp);
         var dsp = this.node.retrieve("mwf_display", dsp);
         this.node.setStyle("display", dsp);
         this.node.setStyle("display", dsp);