@cc-component/cc-ex-component 1.2.1 → 1.2.2

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.
@@ -67,7 +67,7 @@ export class ReferenceComponent extends Component {
67
67
  this._refresh_bind_data_all = false;
68
68
  }
69
69
 
70
- isComDebug = true
70
+ isComDebug = false
71
71
 
72
72
  @property({ type: CollectorNodeData, readonly: false })
73
73
  private _nodes: CollectorNodeData[] = [];
@@ -84,9 +84,7 @@ export function Bind<T extends Component>(dataPath: string, param?: IBindingData
84
84
  dataPath: dataPath, type: null, reset: param?.reset, event: param?.event,
85
85
  itemSize: null,
86
86
  cellForItemAt: null,
87
- numberOfItems: function (): number {
88
- throw new Error('Function not implemented.');
89
- }
87
+ numberOfItems: null,
90
88
  }
91
89
 
92
90
  bindingMap.get(className)!.set(propertyKey, data);
@@ -311,7 +309,7 @@ function updateStatus(data: IBindingData, com: Component, value: any, self: any)
311
309
  com_btn.node.active = value ?? true;
312
310
 
313
311
  //事件
314
- com_btn.node.off(Button.EventType.CLICK, com_btn['btnCall'], self);
312
+ com_btn.node.off(Button.EventType.CLICK, com_btn['btnCall']);
315
313
  tempData.skip = true;
316
314
  const btnCall = (btn) => {
317
315
  tempData.value = btn.node.active
@@ -320,7 +318,7 @@ function updateStatus(data: IBindingData, com: Component, value: any, self: any)
320
318
  self[`onClick_${sx}`]?.(btn)
321
319
  }
322
320
  com_btn['btnCall'] = btnCall
323
- com_btn.node.on(Button.EventType.CLICK, com_btn['btnCall'], self);
321
+ com_btn.node.on(Button.EventType.CLICK, com_btn['btnCall']);
324
322
  break;
325
323
  case 'cc.ProgressBar':
326
324
  if (data.reset) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-ex-component",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",