@cc-component/cc-ex-component 2.1.3 → 2.1.4

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.
@@ -109,8 +109,10 @@ export class BaseWindow extends BaseReference {
109
109
  resetMaskSize() {
110
110
  if (!this.maskOpacity) return
111
111
  const widget = this.maskOpacity.node.getComponent(Widget);
112
- widget.left = -view.getVisibleSize().width
113
- widget.right = -view.getVisibleSize().width
112
+ if (widget) {
113
+ widget.left = -view.getVisibleSize().width
114
+ widget.right = -view.getVisibleSize().width
115
+ }
114
116
  }
115
117
  }
116
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-ex-component",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",