feat:add HeadView in panel
This commit is contained in:
@@ -56,6 +56,7 @@ public class ShaderPlugin extends DoricJavaPlugin {
|
||||
@Override
|
||||
public Object call() throws Exception {
|
||||
RootNode rootNode = getDoricContext().getRootNode();
|
||||
rootNode.setId(jsObject.getProperty("id").asString().value());
|
||||
rootNode.render(jsObject.getProperty("props").asObject());
|
||||
return null;
|
||||
}
|
||||
|
@@ -187,7 +187,7 @@ public abstract class ViewNode<T extends View> extends DoricContextHolder {
|
||||
do {
|
||||
ids.push(viewNode.mId);
|
||||
viewNode = viewNode.mSuperNode;
|
||||
} while (viewNode != null && !(viewNode instanceof RootNode));
|
||||
} while (viewNode != null);
|
||||
|
||||
return ids.toArray(new String[0]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user