Browse Source

studio design

yuliang 3 năm trước cách đây
mục cha
commit
3bec0e557c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/controls/component.js

+ 1 - 1
src/controls/component.js

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