@cc-component/cc-ex-component 1.7.9 → 1.8.0

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.
@@ -294,6 +294,7 @@ export function ViewModel<T extends new (...args: any[]) => Component>(Base: T)
294
294
 
295
295
  protected onLoad(): void {
296
296
  super.onLoad()
297
+ this.onTouch()
297
298
  this.managerData()
298
299
  }
299
300
  // 在 withDataBinding 返回的 class 中
@@ -309,11 +310,11 @@ export function ViewModel<T extends new (...args: any[]) => Component>(Base: T)
309
310
 
310
311
 
311
312
  protected onEnable(): void {
312
- this.onTouch()
313
+
313
314
  }
314
315
 
315
316
  protected onDisable(): void {
316
- this.offTouch()
317
+ // this.offTouch()
317
318
  }
318
319
 
319
320
  refreshData(key: string, value: any) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-ex-component",
3
- "version": "1.7.9",
3
+ "version": "1.8.0",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",