123456789101112131415161718192021222324252627 |
- import _ from 'lodash'
- import {rows} from '../Defaults'
- import {baseConfig} from "./base";
- export default function () {
- Ext.define('Yvan.Rows', {
- extend: 'Ext.container.Container',
- xtype: 'rows',
- constructor(config) {
- const self = this
- const newConfig = _.defaultsDeep({
- // 强制性属性
- layout: 'anchor', border: false,
- defaults: {
- border: false, anchor: '100%',
- margin: '0 0 5 0',
- },
- }, baseConfig(config, 'rows-container'), config, rows)
- this.superclass.constructor.call(self, newConfig)
- },
- });
- }
|