|
@@ -1,7 +1,9 @@
|
|
|
MWF.xDesktop.requireApp("process.Xform", "$Module", null, false);
|
|
MWF.xDesktop.requireApp("process.Xform", "$Module", null, false);
|
|
|
-/** @class $Input 组件类,此类为所有输入组件的父类。 */
|
|
|
|
|
|
|
+/** @class $Input 组件类,此类为所有输入组件的父类
|
|
|
|
|
+* @extends MWF.xApplication.process.Xform.$Module
|
|
|
|
|
+*/
|
|
|
MWF.xApplication.process.Xform.$Input = MWF.APP$Input = new Class(
|
|
MWF.xApplication.process.Xform.$Input = MWF.APP$Input = new Class(
|
|
|
- /** @lends MWF.xApplication.process.Xform.$Input*/
|
|
|
|
|
|
|
+ /** @lends MWF.xApplication.process.Xform.$Input# */
|
|
|
{
|
|
{
|
|
|
Implements: [Events],
|
|
Implements: [Events],
|
|
|
Extends: MWF.APP$Module,
|
|
Extends: MWF.APP$Module,
|
|
@@ -264,7 +266,6 @@ MWF.xApplication.process.Xform.$Input = MWF.APP$Input = new Class(
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* 判断组件值是否为空.
|
|
* 判断组件值是否为空.
|
|
|
- * @instance
|
|
|
|
|
* @return {boolean}.
|
|
* @return {boolean}.
|
|
|
*/
|
|
*/
|
|
|
isEmpty : function(){
|
|
isEmpty : function(){
|
|
@@ -273,7 +274,6 @@ MWF.xApplication.process.Xform.$Input = MWF.APP$Input = new Class(
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* 获取组件值.
|
|
* 获取组件值.
|
|
|
- * @instance
|
|
|
|
|
* @return {object/string}.
|
|
* @return {object/string}.
|
|
|
*/
|
|
*/
|
|
|
getData: function(when){
|
|
getData: function(when){
|
|
@@ -289,15 +289,13 @@ MWF.xApplication.process.Xform.$Input = MWF.APP$Input = new Class(
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* 重置组件的值为默认值或置空。
|
|
* 重置组件的值为默认值或置空。
|
|
|
- * @instance
|
|
|
|
|
*/
|
|
*/
|
|
|
resetData: function(){
|
|
resetData: function(){
|
|
|
this.setData(this.getValue());
|
|
this.setData(this.getValue());
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* 为控件赋值。
|
|
* 为控件赋值。
|
|
|
- * @instance
|
|
|
|
|
- * @param data{string/number/jsonObject} .
|
|
|
|
|
|
|
+ * @param data{string/number/jsonObject/array} .
|
|
|
*/
|
|
*/
|
|
|
setData: function(data){
|
|
setData: function(data){
|
|
|
// if (data && data.isAG){
|
|
// if (data && data.isAG){
|
|
@@ -523,7 +521,6 @@ MWF.xApplication.process.Xform.$Input = MWF.APP$Input = new Class(
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* 根据组件的校验设置进行校验。
|
|
* 根据组件的校验设置进行校验。
|
|
|
- * @instance
|
|
|
|
|
* @param {string} routeName - 可选,路由名称.
|
|
* @param {string} routeName - 可选,路由名称.
|
|
|
* @return {boolean} 是否通过校验
|
|
* @return {boolean} 是否通过校验
|
|
|
*/
|
|
*/
|