feat:enable click on ListItem
This commit is contained in:
@@ -230,7 +230,6 @@ export function jsCallEntityMethod(contextId: string, methodName: string, args?:
|
||||
hookBeforeNativeCall(context)
|
||||
const ret = Reflect.apply(Reflect.get(context.entity, methodName), context.entity, argumentsList)
|
||||
hookAfterNativeCall(context)
|
||||
loge(methodName, ret)
|
||||
return ret
|
||||
} else {
|
||||
loge(`Cannot find method for context id:${contextId},method name is:${methodName}`)
|
||||
|
@@ -18,6 +18,7 @@ import { View, Property, LayoutSpec, Superview } from "./view";
|
||||
import { Model } from "../util/types";
|
||||
import { O_TRUNC } from "constants";
|
||||
import { Stack } from "./layout";
|
||||
import { loge } from "../util/log";
|
||||
export function listItem(item: View) {
|
||||
return (new ListItem).also((it) => {
|
||||
it.layoutConfig = {
|
||||
|
Reference in New Issue
Block a user