Bläddra i källkod

仓库布局 remove / add / edit / save

luoyifan 2 år sedan
förälder
incheckning
d0a2ca14b8
2 ändrade filer med 9 tillägg och 17 borttagningar
  1. 8 16
      dist/yvan-ext.js
  2. 1 1
      dist/yvan-ext.js.map

+ 8 - 16
dist/yvan-ext.js

@@ -14046,20 +14046,6 @@ define(['exports', 'axios', 'qs', 'lodash', 'jquery', 'moment', 'recast', 'xlsx'
                 var editorUiInit = EditorUi.prototype.init;
                 EditorUi.prototype.init = function () {
                     editorUiInit.apply(this, arguments);
-                    // this.actions.get('export').setEnabled(false);
-                    // Updates action states which require a backend
-                    // if (!Editor.useLocalStorage) {
-                    //     mxUtils.post(OPEN_URL, '', mxUtils.bind(this, function (req) {
-                    //         var enabled = req.getStatus() != 404;
-                    //         this.actions.get('open').setEnabled(enabled || Graph.fileSupport);
-                    //         this.actions.get('import').setEnabled(enabled || Graph.fileSupport);
-                    //         this.actions.get('save').setEnabled(enabled);
-                    //         this.actions.get('saveAs').setEnabled(enabled);
-                    //         this.actions.get('export').setEnabled(enabled);
-                    //     }));
-                    // }
-                    // this.actions.get('save').setEnabled(enabled);
-                    console.log('EditorUi=editorUi', this);
                     this.actions.get('save').funct = that.onFileSave.bind(that);
                     this.actions.get('saveAs').funct = that.onFileSaveAs.bind(that);
                     this.actions.get('open').visible = false;
@@ -14068,6 +14054,7 @@ define(['exports', 'axios', 'qs', 'lodash', 'jquery', 'moment', 'recast', 'xlsx'
                     this.actions.get('print').visible = false;
                     this.actions.get('pageSetup').visible = false;
                     this.actions.get('help').visible = false;
+                    this.actions.get('export').visible = false;
                     this.actions.get('about').visible = false;
                     this.menus.menus.help.setEnabled(false);
                     that.editorUi = this;
@@ -14096,8 +14083,12 @@ define(['exports', 'axios', 'qs', 'lodash', 'jquery', 'moment', 'recast', 'xlsx'
             });
         };
         WidgetDesign.prototype.onDestroy = function () {
-        };
-        WidgetDesign.prototype.onFileLoad = function () {
+            var _a;
+            try {
+                (_a = this.editorUi) === null || _a === void 0 ? void 0 : _a.destroy();
+            }
+            catch (e) {
+            }
         };
         WidgetDesign.prototype.onFileSaveAs = function () {
             var _this = this;
@@ -14124,6 +14115,7 @@ define(['exports', 'axios', 'qs', 'lodash', 'jquery', 'moment', 'recast', 'xlsx'
                 layoutCode: layoutCode, layoutName: layoutName, layoutContent: layoutContent
             }).then(function (res) {
                 msg$1(res.msg);
+                handles$1.whLayout.reload();
             }).finally(function () {
                 _this.setLoading(false);
             });

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 1
dist/yvan-ext.js.map