From f83871023f195a7d4853e8e791933c062ad72d7a Mon Sep 17 00:00:00 2001 From: alan Date: Wed, 22 May 2019 12:28:41 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=B0=83=E6=95=B4=E5=91=BD?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/jndi/jndi.edit.ts | 16 ++++++++-------- src/plugins/jndi/jndi.preview.ts | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/plugins/jndi/jndi.edit.ts b/src/plugins/jndi/jndi.edit.ts index 2dcc7d3..8d13b46 100644 --- a/src/plugins/jndi/jndi.edit.ts +++ b/src/plugins/jndi/jndi.edit.ts @@ -31,7 +31,7 @@ const Widget = BI.inherit(BI.Widget, { text: BI.i18nText('Dec-Dcm_Connection_Form_JNDI_Context'), height: 160, ref: _ref => { - this.JndiForm = _ref; + this.jndiFormRef = _ref; }, form: { type: Vertical, @@ -100,16 +100,16 @@ const Widget = BI.inherit(BI.Widget, { textAlign: 'right', value: true, ref: _ref => { - this.Collapse = _ref; + this.collapseRef = _ref; }, handler: () => { - const isCollapse = this.Collapse.getValue(); + const isCollapse = this.collapseRef.getValue(); const height = isCollapse ? 550 : 160; const text = isCollapse ? BI.i18nText('Dec-Dcm_Connection_Form_JNDI_Collapse-Attributes') : BI.i18nText('Dec-Dcm_Connection_Form_JNDI_Other_Attributes'); - this.JndiForm.setHeight(height); - this.Collapse.setValue(!isCollapse); - this.Collapse.setText(text); - this.OtherAttributes.setVisible(isCollapse); + this.jndiFormRef.setHeight(height); + this.collapseRef.setValue(!isCollapse); + this.collapseRef.setText(text); + this.otherAttributesRef.setVisible(isCollapse); }, }, }, @@ -118,7 +118,7 @@ const Widget = BI.inherit(BI.Widget, { cls: 'right-form', invisible: false, ref: _ref => { - this.OtherAttributes = _ref; + this.otherAttributesRef = _ref; }, items: BI.map(otherAttributes, (index: number, item: AttributeType) => { return { diff --git a/src/plugins/jndi/jndi.preview.ts b/src/plugins/jndi/jndi.preview.ts index 31f2ccc..a474182 100644 --- a/src/plugins/jndi/jndi.preview.ts +++ b/src/plugins/jndi/jndi.preview.ts @@ -26,7 +26,7 @@ const jndiWidget = BI.inherit(BI.Widget, { text: BI.i18nText('Dec-Dcm_Connection_Form_JNDI_Context'), height: 160, ref: _ref => { - this.JndiForm = _ref; + this.jndiFormRef = _ref; }, form: { type: Vertical, @@ -78,16 +78,16 @@ const jndiWidget = BI.inherit(BI.Widget, { textAlign: 'right', value: true, ref: _ref => { - this.Collapse = _ref; + this.collapseRef = _ref; }, handler: () => { - const isCollapse = this.Collapse.getValue(); + const isCollapse = this.collapseRef.getValue(); const height = isCollapse ? 550 : 160; const text = isCollapse ? BI.i18nText('Dec-Dcm_Connection_Form_JNDI_Collapse-Attributes') : BI.i18nText('Dec-Dcm_Connection_Form_JNDI_Other_Attributes'); - this.JndiForm.setHeight(height); - this.Collapse.setValue(!isCollapse); - this.Collapse.setText(text); - this.OtherAttributes.setVisible(isCollapse); + this.jndiFormRef.setHeight(height); + this.collapseRef.setValue(!isCollapse); + this.collapseRef.setText(text); + this.otherAttributesRef.setVisible(isCollapse); }, }, }, @@ -96,7 +96,7 @@ const jndiWidget = BI.inherit(BI.Widget, { cls: 'right-form', invisible: false, ref: _ref => { - this.OtherAttributes = _ref; + this.otherAttributesRef = _ref; }, items: BI.map(otherAttributes, (index: number, item: AttributeType) => { return {