问题已解决    原来是items嵌套的太多了    新代码希望可以帮助到别人Ext.define("SMS.view.addUserWin", {
extend : 'Ext.window.Window',
alias : 'widget.addUserWin',
requires : ['Ext.form.*'],
initComponent : function() {
var addUserForm = Ext.widget('form', {
width : 580,
id : 'addForm',
height : 300,
bodyPadding : 5,
frame : true,
items : [{
frame : true,
layout : 'column',
style : 'border:0px solid black; border-top:0;',
items : [{
xtype : 'textfield',
name : 'tps_name',
id : 'tps_name',
fieldLabel : '姓名',
width : 260,
labelAlign : 'right',
labelWidth : 70 }, { xtype : 'textfield',
name : 'tf_name',
id : 'tf_name',
width : 260,
labelAlign : 'right',
labelWidth : 70,
// align:'right',
fieldLabel : '性别'
}] }, { frame : true,
style : 'border:0px solid black; border-top:0;',
layout : 'column',
items : [{
xtype : 'textfield',
name : 'tp_name',
id : 'tp_name',
fieldLabel : '年龄',
labelAlign : 'right',
width : 260,
labelWidth : 70
}, {
xtype : 'textfield',
name : 'ta_name',
id : 'ta_name',
width : 260,
labelWidth : 70,
labelAlign : 'right',
align : 'right',
fieldLabel : '电子邮件'
}] }, { frame : true,
style : 'border:0px solid black; border-top:0;',
layout : 'column',
items : [{
xtype : 'textfield',
name : 'tp_aaa',
id : 'tp_aaa',
fieldLabel : '籍贯',
labelAlign : 'right',
width : 520,
labelWidth : 70 }]
}]
});
Ext.apply(this, {
autoHeight : true,
title : '添加用户',
closeAction : 'hide',
iconCls : 'user_icon',
layout : 'fit',
modal : true,
plain : true,
resizable : false,
items : addUserForm,
buttons : [{
text : '提交'
}, {
text : '取消',
handler : function() {
this.ownerCt.ownerCt.hide();
}
}]
});
this.callParent(arguments);
}})