@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.
package/assets/core/ViewModel.ts
CHANGED
|
@@ -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:
|
|
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']
|
|
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']
|
|
321
|
+
com_btn.node.on(Button.EventType.CLICK, com_btn['btnCall']);
|
|
324
322
|
break;
|
|
325
323
|
case 'cc.ProgressBar':
|
|
326
324
|
if (data.reset) {
|