abu008 2012-05-04 10:08
浏览 321
已采纳

EXT 自定义组件

我在系统中要多处用到这个支付的操作,想弄成一个组件,方便调用,请问应该如何弄呢?

....
,{layout : 'column',
border : false,
items : [{
columnWidth : .25,

layout : 'form',
labelWidth : 65,

defaultType : 'textfield',
border : false,
items : [{fieldLabel :'银行名称',name:'bankName',id:'bankName',allowBlank:true,anchor:'99%',xtype : 'textfield',readOnly:true,hidden:true}
,{fieldLabel :'银行名称',name:'bankName1',id:'bankName1',allowBlank:true,anchor:'99%',xtype : 'textfield',readOnly:true,hidden:true}]
},{
columnWidth : .25,

layout : 'form',
labelWidth : 65,

defaultType : 'textfield',
border : false,
items : [{fieldLabel :'收款帐户',name:'receivableAccounts',id:'receivableAccounts',allowBlank:true,anchor:'98%',xtype : 'textfield',cls:'changInput',readOnly:true,hidden:true}
,{fieldLabel :'付款帐户',name:'paymentAccount',id:'paymentAccount',allowBlank:true,anchor:'98%',xtype : 'textfield',cls:'changInput',readOnly:true,hidden:true}]
},{
columnWidth : .25,

layout : 'form',
labelWidth : 65,

defaultType : 'textfield',
border : false,
items : [{fieldLabel :'收款人',name:'receivablePersonName',id:'receivablePersonName',allowBlank:true,anchor:'98%',xtype : 'textfield',readOnly:true,hidden:true}
,{fieldLabel :'付款人',name:'paymentPersonName',id:'paymentPersonName',allowBlank:true,anchor:'98%',xtype : 'textfield',readOnly:true,hidden:true}]
},{
columnWidth : .25,

layout : 'form',
labelWidth : 65,

defaultType : 'textfield',
border : false,
items : [{fieldLabel :'开户银行',name:'openBankName',id:'openBankName',allowBlank:true,anchor:'98%',xtype : 'textfield',readOnly:true,hidden:true}
,{fieldLabel :'开户银行',name:'openBankName1',id:'openBankName1',allowBlank:true,anchor:'98%',xtype : 'textfield',readOnly:true,hidden:true}]
}]},{
layout : 'column',
border : false,
items : [{
columnWidth : .50,

layout : 'form',
labelWidth : 65,

defaultType : 'textfield',
border : false,
items : [{fieldLabel :'收款人',name:'collectionName',id:'collectionName',allowBlank:true,anchor:'99%',xtype : 'textfield',hidden:true}]
},{
columnWidth : .50,

layout : 'form',
labelWidth : 65,

defaultType : 'textfield',
border : false,
items : [{fieldLabel :'付款人',name:'paymentName',id:'paymentName',allowBlank:true,anchor:'98%',xtype : 'textfield',hidden:true}]
}
]}..............

  • 写回答

4条回答 默认 最新

  • chenhailong118 2012-05-05 22:31
    关注

    很简单的。。。

    我们项目都是这样干的,在Sencha Architect工具设计组件(自定义的)
    然后将组件加到我们想要的页面上就行

    这个工具是可视化的,所以操作起来确实很方面

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 matlab有关常微分方程的问题求解决
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable