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 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用