123456789101112131415161718 |
- import _ from 'lodash'
- import {baseConfigProcessList} from "../lib/config";
- export default function () {
- const ct = Ext.Component.prototype.constructor
- Ext.Component.override({
- constructor: function (config) {
- if(!window["IS_DESIGN_MODE"] && config) {
- const me = this
- // 任意组件 Ext.Component 构造时调用的方法, 可以用来在渲染之前加工处理 VJSON
- _.each(baseConfigProcessList, process => {
- process.call(me, me, config)
- })
- }
- ct.call(this, config)
- }
- });
- }
|