TreeTabPanel.js 941 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Ext.define('erp.view.common.main.TreeTabPanel',{
  2. extend: 'Ext.tab.Panel',
  3. alias: 'widget.erpTreeTabPanel',
  4. id: 'tree-tab',
  5. region: 'west',
  6. split: true,
  7. collapsible :true, //可以伸缩
  8. toggleCollapse: function() {
  9. if (this.collapsed) {
  10. this.expand(this.animCollapse);
  11. } else {
  12. this.title = $I18N.common.main.navigation;
  13. this.collapse(this.collapseDirection, this.animCollapse);
  14. }
  15. return this;
  16. },
  17. //hideCollapseTool :true,
  18. //header :false,
  19. title: '<font color=#A1A1A1;>' + $I18N.common.main.navigation + '</font>',
  20. /* plugins:[{
  21. ptype: 'tabcollapsed',
  22. }],*/
  23. width : '20%',
  24. minSize : 130,
  25. maxSize : 300,
  26. defaults: {
  27. autoScroll:true
  28. },
  29. activeTab: 0,
  30. border: false,
  31. items: [{
  32. title: $I18N.common.main.integrationManage,
  33. xtype: 'erpTreePanel'
  34. },{
  35. title: $I18N.common.main.navigationchart,
  36. xtype:'erpFlowPanel'
  37. }],
  38. initComponent : function(){
  39. this.callParent(arguments);
  40. }
  41. });