Browse Source

feat: update

wxyyxc1992 5 years ago
parent
commit
b1b4575d17

+ 3
- 0
commit.sh View File

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

+ 1
- 1
dist/cjs/board/Drawboard/index.js View File

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

+ 6
- 2
dist/cjs/board/Whiteboard/index.js View File

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

+ 1
- 1
dist/index.js
File diff suppressed because it is too large
View File


+ 1
- 1
src/board/Drawboard/index.ts View File

98
       this.target.style.display = 'block';
98
       this.target.style.display = 'block';
99
     }
99
     }
100
 
100
 
101
-    this.boardHolder.style.opacity = 'visible';
101
+    this.boardHolder.style.visibility = 'visible';
102
     this.boardHolder.style.zIndex = '9999';
102
     this.boardHolder.style.zIndex = '9999';
103
 
103
 
104
     if (this.toolbar) {
104
     if (this.toolbar) {

+ 6
- 2
src/board/Whiteboard/index.ts View File

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