panel.js 429 B

12345678910111213141516
  1. import _ from 'lodash'
  2. import {baseConfig} from "./base";
  3. import {panel} from "../Defaults";
  4. export default function () {
  5. /**
  6. *
  7. */
  8. const ct = Ext.panel.Panel.prototype.constructor
  9. Ext.panel.Panel.override({
  10. constructor: function (config) {
  11. const newConfig = _.defaultsDeep({}, config, baseConfig(config, "rows-container"), panel)
  12. ct.call(this, newConfig)
  13. }
  14. });
  15. }