浏览代码

银河平台V2.0 - designer

luoyifan 2 年之前
父节点
当前提交
96a30b693a
共有 2 个文件被更改,包括 33 次插入13 次删除
  1. 32 12
      dist/yvan-ext.js
  2. 1 1
      dist/yvan-ext.js.map

+ 32 - 12
dist/yvan-ext.js

@@ -61774,7 +61774,7 @@ define(['exports'], function (exports) { 'use strict';
             }, vjsonOption, that.vjson);
             new Ext.container.Viewport(config);
         };
-        Scope.prototype.renderDesign = function (element, option) {
+        Scope.prototype.showDesigner = function (designer, option) {
             var that = this;
             var vmodel = lodash.defaultsDeep({
                 data: {
@@ -61790,15 +61790,6 @@ define(['exports'], function (exports) { 'use strict';
                 viewModel: this.viewModel,
                 yvanScope: this,
                 referenceHolder: true,
-                renderTo: element,
-                frame: false,
-                layout: 'border',
-                width: '100%',
-                height: '100%',
-                border: false,
-                defaults: {
-                    border: false
-                },
                 listeners: {
                     afterrender: function (sender) {
                         var _a;
@@ -61812,8 +61803,9 @@ define(['exports'], function (exports) { 'use strict';
                         invokeMethod((_a = that.vjson.listeners) === null || _a === void 0 ? void 0 : _a.afterrender, that, arguments);
                     },
                 },
-            }, option, that.vjson);
-            new Ext.container.Viewport(config);
+            }, that.vjson);
+            designer.removeAll(true);
+            designer.add(config);
         };
         /**
          * 关闭对话框(或标签页)
@@ -61909,6 +61901,7 @@ define(['exports'], function (exports) { 'use strict';
         }
         return (hash & 0x7FFFFFFF) + "";
     }
+    //# sourceMappingURL=Scope.js.map
 
     (function (FuncDomain) {
         FuncDomain["SCOPE"] = "scope";
@@ -136454,6 +136447,32 @@ define(['exports'], function (exports) { 'use strict';
     }
     //# sourceMappingURL=dict.js.map
 
+    function initDesigner () {
+        Ext.define('com.yvan.studio.designer', {
+            extend: 'Ext.panel.Panel',
+            alias: 'widget.designer',
+            xtype: 'designer',
+            layout: 'fit',
+            items: [],
+            constructor: function (config) {
+                var self = this;
+                var newConfig = lodash.defaultsDeep({
+                // 强制性属性
+                }, config);
+                this.superclass.constructor.call(self, newConfig);
+            },
+            initComponent: function () {
+                var me = this;
+                me.on({
+                    afterrender: function () {
+                    }
+                });
+                this.superclass.initComponent.call(me);
+            }
+        });
+    }
+    //# sourceMappingURL=designer.js.map
+
     var FixClass = /** @class */ (function () {
         function FixClass() {
         }
@@ -136714,6 +136733,7 @@ define(['exports'], function (exports) { 'use strict';
         initSqlComplex();
         initParamComplex();
         initDict();
+        initDesigner();
     }
     //# sourceMappingURL=init.js.map
 

文件差异内容过多而无法显示
+ 1 - 1
dist/yvan-ext.js.map