@cc-component/cc-ex-component 1.8.2 → 1.8.3

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.
@@ -1,4 +1,5 @@
1
1
  import { error, isValid, js } from "cc";
2
+ import { DEBUG } from "cc/env";
2
3
 
3
4
 
4
5
  const inject_vsearch = function (key, targetDataBinding) {
@@ -20,7 +21,7 @@ const inject_vsearch = function (key, targetDataBinding) {
20
21
  }
21
22
 
22
23
  if (instance == null) {
23
- console.error(`没有找到属性 ${key}->${tag}`);
24
+ if (DEBUG) console.error(`没有找到属性 ${key}->${tag}`);
24
25
  continue;
25
26
  }
26
27
  this[property.name] = instance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-ex-component",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",