Ext.define('saas.view.sys.power.TreePanel', { extend: 'Ext.tree.Panel', xtype: 'sys-power-treepanel', //工具类 FormUtil: Ext.create('saas.util.FormUtil'), BaseUtil: Ext.create('saas.util.BaseUtil'), initComponent: function () { var me = this; me.getStore().setRootNode({ text: 'root', id: '0', expanded: true, children: [{ text: '测试', iconCls: 'x-fa fa-wrench', children: [{ text: '叶子1', iconCls: 'x-fa fa-share-alt', leaf: true },{ text: '叶子2', iconCls: 'x-fa fa-flag', leaf: true },{ text: '叶子3', iconCls: 'x-fa fa-signal', leaf: true }] }] }); me.callParent(arguments); } });