这是我的代码。我想将选项卡 2(xtype: 'index_xx') 设置为我的默认选项卡,并且我使用了 'activeItem: 1' 但它不起作用,tks 帮助
Ext.define('Sencha.view.PadMain', {
extend: 'Ext.tab.Panel',
xtype: 'padmain_xx',
requires: [
'Sencha.view.Index',
'Sencha.view.Article'
],
config: {
tabBar: {
docked: 'left',
cls:'pad_menu',
activeItem: 1 , //<--------------
scrollable: {
direction: 'vertical',
indicators: false
},
width:200
},
items: [
{ title: ' ',cls:'top_bar'},
{ xtype: 'index_xx'},
{ xtype: 'article_xx'}
]
}
});