wxyyxc1992 5 år sedan
förälder
incheckning
b1b4575d17

+ 3
- 0
commit.sh Visa fil

@@ -0,0 +1,3 @@
1
+git add --all
2
+git commit -m "feat: update"
3
+git push

+ 1
- 1
dist/cjs/board/Drawboard/index.js Visa fil

@@ -56,7 +56,7 @@ var Drawboard = (function (_super) {
56 56
             if (_this.source.imgSrc) {
57 57
                 _this.target.style.display = 'block';
58 58
             }
59
-            _this.boardHolder.style.opacity = 'visible';
59
+            _this.boardHolder.style.visibility = 'visible';
60 60
             _this.boardHolder.style.zIndex = '9999';
61 61
             if (_this.toolbar) {
62 62
                 _this.toolbar.show();

+ 6
- 2
dist/cjs/board/Whiteboard/index.js Visa fil

@@ -69,10 +69,14 @@ var Whiteboard = (function () {
69 69
         }
70 70
     };
71 71
     Whiteboard.prototype.show = function () {
72
-        this.activePage.show();
72
+        if (this.activePage) {
73
+            this.activePage.show();
74
+        }
73 75
     };
74 76
     Whiteboard.prototype.hide = function () {
75
-        this.activePage.hide();
77
+        if (this.activePage) {
78
+            this.activePage.hide();
79
+        }
76 80
     };
77 81
     Whiteboard.prototype.snap = function () {
78 82
         return {

+ 1
- 1
dist/index.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 1
src/board/Drawboard/index.ts Visa fil

@@ -98,7 +98,7 @@ export class Drawboard extends Baseboard {
98 98
       this.target.style.display = 'block';
99 99
     }
100 100
 
101
-    this.boardHolder.style.opacity = 'visible';
101
+    this.boardHolder.style.visibility = 'visible';
102 102
     this.boardHolder.style.zIndex = '9999';
103 103
 
104 104
     if (this.toolbar) {

+ 6
- 2
src/board/Whiteboard/index.ts Visa fil

@@ -118,11 +118,15 @@ export class Whiteboard {
118 118
 
119 119
   /** 展示当前的 WhitePage */
120 120
   public show() {
121
-    this.activePage.show();
121
+    if (this.activePage) {
122
+      this.activePage.show();
123
+    }
122 124
   }
123 125
 
124 126
   public hide() {
125
-    this.activePage.hide();
127
+    if (this.activePage) {
128
+      this.activePage.hide();
129
+    }
126 130
   }
127 131
 
128 132
   /** 获取当前快照 */