@taole/dev-helper 0.0.19 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,6 +34,8 @@
34
34
  if (!this._openAppTag) {
35
35
  // 放进去一个wx-open-launch-app, 宽高占满父容器
36
36
  this._openAppTag = document.createElement('wx-open-launch-app');
37
+ this._openAppTag.style.background = "transparent";
38
+ this._openAppTag.style.opacity = 0;
37
39
  this._updateTagAttr();
38
40
 
39
41
  var contentEle = document.createElement('div');
@@ -115,7 +117,7 @@
115
117
  _genTemplate() {
116
118
  if (!this._template) {
117
119
  this._template = document.createElement('template');
118
- this._template.innerHTML = '<style>:host {display: block;width: 100%;height: 100%;overflow: hidden;}</style>';
120
+ this._template.innerHTML = '<style>:host {display: block;width: 100%;height: 100%;overflow: hidden;opacity: 0;background:transparent;}</style>';
119
121
  }
120
122
  }
121
123
  _updateTagAttr() {
@@ -28,6 +28,8 @@ function defineTag() {
28
28
  if (!this._openAppTag) {
29
29
  // 放进去一个wx-open-launch-app, 宽高占满父容器
30
30
  this._openAppTag = document.createElement('wx-open-launch-app');
31
+ this._openAppTag.style.background = "transparent";
32
+ this._openAppTag.style.opacity = 0;
31
33
  this._updateTagAttr();
32
34
 
33
35
  var contentEle = document.createElement('div');
@@ -109,7 +111,7 @@ function defineTag() {
109
111
  _genTemplate() {
110
112
  if (!this._template) {
111
113
  this._template = document.createElement('template');
112
- this._template.innerHTML = '<style>:host {display: block;width: 100%;height: 100%;overflow: hidden;}</style>';
114
+ this._template.innerHTML = '<style>:host {display: block;width: 100%;height: 100%;overflow: hidden;opacity: 0;background:transparent;}</style>';
113
115
  }
114
116
  }
115
117
  _updateTagAttr() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taole/dev-helper",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "npx -y rimraf dist && rollup -c",