@cc-component/cc-ex-component 1.6.0 → 1.6.1

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.
@@ -433,6 +433,7 @@ export class ${className}Window extends ViewModel(${this.baseWindowName}) {${sx.
433
433
  if (node.getComponent("cc.ParticleSystem2D")) return "ParticleSystem2D";
434
434
  if (node.getComponent("sp.Skeleton")) return "sp.Skeleton";
435
435
  const com = node.getComponents(Component).pop()
436
+ if (!com) return "Node";
436
437
  return js.getClassName(com).replace('cc.', '');
437
438
  }
438
439
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-ex-component",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",