SysPanel = function(config) {
    config = config || {};
    Ext.apply(config, {
        title:"Panel",
        width:100,
        height:100
    });
    SysPanel.superclass.constructor.call(this, config);
};

Ext.extend(SysPanel, Ext.form.Panel, {

});  


Ext.define('SysTreeStore', {
    extend: 'Ext.data.TreeStore',
    constructor: function (config) {
        var me = this;
        config = config || {};
        me.callParent([Ext.apply({
            storeId: 'MyTreeStore',
            fields: ["id", "text", "leaf", "expanded"],
            proxy:
            new Ext.data.HttpProxy
            (
                {
                    type: 'ajax',
                    url: cmdUrl,
                    extraParams: paramsTree
                }
            )
        }, config)]);
    }
});
      

转载于:https://www.cnblogs.com/CoolHu/archive/2012/11/28/2792803.html

更多推荐