File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const explanations: { [key: string]: TreeGridNode } = {
1717 content: {
1818 text: " Operator"
1919 },
20- nodeType: " connector " ,
20+ nodeType: " combine " ,
2121 sideInput: {
2222 content: {
2323 text: " Operand B"
@@ -43,7 +43,7 @@ const explanations: { [key: string]: TreeGridNode } = {
4343 content: {
4444 text: " mul"
4545 },
46- nodeType: " connector " ,
46+ nodeType: " combine " ,
4747 sideInput: {
4848 content: {
4949 text: " Dim"
@@ -55,7 +55,7 @@ const explanations: { [key: string]: TreeGridNode } = {
5555 content: {
5656 text: " add"
5757 },
58- nodeType: " connector " ,
58+ nodeType: " combine " ,
5959 sideInput:
6060 {
6161 content: {
@@ -67,7 +67,7 @@ const explanations: { [key: string]: TreeGridNode } = {
6767 content: {
6868 text: " mul"
6969 },
70- nodeType: " connector " ,
70+ nodeType: " combine " ,
7171 sideInput: {
7272 content: {
7373 text: " AdditionDim"
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ function LayerToTreeRecursive(layer: LayerConfigLayer): TreeGridNodeConnector {
9797 }
9898
9999 return {
100- nodeType : "connector " ,
100+ nodeType : "combine " ,
101101 content : {
102102 text : operator ,
103103 } ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const props = defineProps<{
88}>()
99 </script >
1010<template >
11- <template v-if =" node .nodeType == ' dot' " >
11+ <template v-if =" node .nodeType == ' dot' || node . nodeType == undefined " >
1212 <div class =" dotNode" >
1313 </div >
1414 </template >
@@ -22,7 +22,7 @@ const props = defineProps<{
2222 {{ node.content?.text }}
2323 </div >
2424 </template >
25- <template v-else-if =" node .nodeType == ' connector ' " >
25+ <template v-else-if =" node .nodeType == ' combine ' " >
2626 <div :class =" {connectorNode:true, topNode: isTopNode}" >
2727 {{ node.content?.text }}
2828 </div >
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ export type TreeGridNodeContent = {
22 text : string
33}
44
5- export type TreeNodeTypes = "big" | "header" | "connector " | "dot"
5+ export type TreeNodeTypes = "big" | "header" | "combine " | "dot"
66
77export type TreeGridNodeConnector = {
88 sideInput ?: TreeGridNode ,
9- nodeType : TreeNodeTypes ,
9+ nodeType ? : TreeNodeTypes ,
1010 content ?: TreeGridNodeContent
1111}
1212export type TreeGridNode = {
You can’t perform that action at this time.
0 commit comments