rows.js 699 B

123456789101112131415161718192021222324252627
  1. import _ from 'lodash'
  2. import {rows} from '../Defaults'
  3. import {baseConfig} from "./base";
  4. export default function () {
  5. Ext.define('Yvan.Rows', {
  6. extend: 'Ext.container.Container',
  7. xtype: 'rows',
  8. constructor(config) {
  9. const self = this
  10. const newConfig = _.defaultsDeep({
  11. // 强制性属性
  12. layout: 'anchor', border: false,
  13. defaults: {
  14. border: false, anchor: '100%',
  15. margin: '0 0 5 0',
  16. },
  17. }, baseConfig(config, 'rows-container'), config, rows)
  18. this.superclass.constructor.call(self, newConfig)
  19. },
  20. });
  21. }