[ci] format
This commit is contained in:
parent
86273b5881
commit
e8b3c886a7
1 changed files with 4 additions and 3 deletions
|
@ -26,9 +26,10 @@ export const ComponentNode = createComponent({
|
||||||
factory(result: any, { treeNode }: { treeNode: TreeNode }) {
|
factory(result: any, { treeNode }: { treeNode: TreeNode }) {
|
||||||
if (treeNode.type === 'text') return render`${treeNode.content}`;
|
if (treeNode.type === 'text') return render`${treeNode.content}`;
|
||||||
const slots = {
|
const slots = {
|
||||||
default: () => render`${treeNode.children.map((child) =>
|
default: () =>
|
||||||
renderComponent(result, 'ComponentNode', ComponentNode, { treeNode: child })
|
render`${treeNode.children.map((child) =>
|
||||||
)}`,
|
renderComponent(result, 'ComponentNode', ComponentNode, { treeNode: child })
|
||||||
|
)}`,
|
||||||
};
|
};
|
||||||
if (treeNode.type === 'component') {
|
if (treeNode.type === 'component') {
|
||||||
return renderComponent(
|
return renderComponent(
|
||||||
|
|
Loading…
Reference in a new issue