Merge branch 'uibench' of github.com:pragmagic/karax into uibench
This commit is contained in:
commit
ed70a0cbfc
2 changed files with 5 additions and 2 deletions
|
|
@ -6,7 +6,6 @@
|
||||||
<title>UI Benchmark: React</title>
|
<title>UI Benchmark: React</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="App"></div>
|
|
||||||
|
|
||||||
<div id="ROOT"></div>
|
<div id="ROOT"></div>
|
||||||
|
|
||||||
|
|
@ -14,4 +13,4 @@
|
||||||
<script src="nimcache/nim_uibench.js" type="text/javascript"></script>
|
<script src="nimcache/nim_uibench.js" type="text/javascript"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,10 @@ proc createTreeNode(data: TreeNodeState): VNode =
|
||||||
children.add(createTreeNode(n))
|
children.add(createTreeNode(n))
|
||||||
else:
|
else:
|
||||||
children.add(createTreeLeaf(n))
|
children.add(createTreeLeaf(n))
|
||||||
|
result = buildHtml(ul(class="TreeNode")):
|
||||||
|
for child in children:
|
||||||
|
child
|
||||||
|
|
||||||
|
|
||||||
proc treeCreateVNode(data: TreeState): VNode =
|
proc treeCreateVNode(data: TreeState): VNode =
|
||||||
kout cstring"treeCreateVNode"
|
kout cstring"treeCreateVNode"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue