|
@@ -2,20 +2,23 @@ import _ from 'lodash'
|
|
|
import $ from 'jquery'
|
|
|
import initTbFill from './tbfill'
|
|
|
import initTbSeparator from './tbseparator'
|
|
|
+import {baseConfig} from "../base";
|
|
|
+import {toolbar} from "../../Defaults";
|
|
|
|
|
|
export default function () {
|
|
|
- /**
|
|
|
- *
|
|
|
- */
|
|
|
- const ct = Ext.toolbar.Toolbar.prototype.constructor
|
|
|
- Ext.toolbar.Toolbar.override({
|
|
|
- constructor: function (config) {
|
|
|
- const newConfig = _.defaultsDeep({}, config, {
|
|
|
- cls: ['yvan_design', 'design_cols_container']
|
|
|
- })
|
|
|
- ct.call(this, newConfig)
|
|
|
- }
|
|
|
- });
|
|
|
- initTbFill();
|
|
|
- initTbSeparator();
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ const ct = Ext.toolbar.Toolbar.prototype.constructor
|
|
|
+ Ext.toolbar.Toolbar.override({
|
|
|
+ constructor: function (config) {
|
|
|
+ const newConfig = _.defaultsDeep({
|
|
|
+ // 强制性属性
|
|
|
+ }, baseConfig(config, 'row-item'), config, toolbar)
|
|
|
+
|
|
|
+ ct.call(this, newConfig)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ initTbFill();
|
|
|
+ initTbSeparator();
|
|
|
}
|