如圖:
{
xtype:'container',
margins:'5 0 0 0',
layout:{
align:'stretch',
type:'hbox'
},
items:[
{
xtype:'fieldcontainer',
margins:'5 0 0 0',
fieldLabel:'AAAA',
combineErrors: true,
labelWidth: 130,
labelAlign: 'right',
flex:1,
defaults:'hideLabel: true',
layout:{
align:'stretch',
type:'hbox'
},
items:[
{
xtype:'textfield',
flex:1
},
{
xtype:'displayfield',
margins: '0 5 0 5',
value:'至'
},
{
xtype:'textfield',
flex:1
}
]
},
{
xtype:'fieldcontainer',
margin:'5 0 0 0',
fieldLabel:'BBBB',
combineErrors: true,
labelWidth:130,
labelAlign:'right',
flex:1,
defaults:'hideLabel: true',
layout:{
align:'stretch',
type:'hbox'
},
items:[
{
xtype:'textfield',
flex:1
},
{
xtype:'displayfield',
margins: '0 5 0 5',
value:'至'
},
{
xtype:'textfield',
flex:1
}
]
}
]
}