iOS:optimze devkit

This commit is contained in:
pengfeizhou
2021-02-24 15:35:44 +08:00
committed by osborn
parent f3d66b6113
commit efdabd8309
7 changed files with 104 additions and 21 deletions

View File

@@ -47,7 +47,7 @@ class CounterView extends ViewHolder {
this.number = root.findViewByTag("tvNumber")!;
this.counter = root.findViewByTag("tvCounter")!;
}
}
}
class CounterVM extends ViewModel<CountModel, CounterView> {
onAttached(s: CountModel, vh: CounterView) {
@@ -59,7 +59,7 @@ class CounterVM extends ViewModel<CountModel, CounterView> {
}
onBind(s: CountModel, vh: CounterView) {
vh.number.text = `${s.count}`;
log("onBind\nseee");
log("onBind");
logw("onBind");
loge("onBind");
}