提交 93a0e870 authored 作者: tb53863844's avatar tb53863844

修改bug

上级 595bb0bc
...@@ -145,7 +145,7 @@ export default class Neo4jD3Com extends React.Component { ...@@ -145,7 +145,7 @@ export default class Neo4jD3Com extends React.Component {
neo4jData:neo4jData, neo4jData:neo4jData,
nodeRadius: 25, nodeRadius: 25,
onNodeDoubleClick: function(node) { onNodeDoubleClick: function(node) {
switch(node.id) { /* switch(node.id) {
case '25': case '25':
// Google // Google
window.open(node.properties.url, '_blank'); window.open(node.properties.url, '_blank');
...@@ -155,7 +155,7 @@ export default class Neo4jD3Com extends React.Component { ...@@ -155,7 +155,7 @@ export default class Neo4jD3Com extends React.Component {
data = neo4jd3.randomD3Data(node, maxNodes); data = neo4jd3.randomD3Data(node, maxNodes);
neo4jd3.updateWithD3Data(data); neo4jd3.updateWithD3Data(data);
break; break;
} } */
}, },
onRelationshipDoubleClick: function(relationship) { onRelationshipDoubleClick: function(relationship) {
console.log('double click on relationship: ' + JSON.stringify(relationship)); console.log('double click on relationship: ' + JSON.stringify(relationship));
...@@ -168,7 +168,7 @@ export default class Neo4jD3Com extends React.Component { ...@@ -168,7 +168,7 @@ export default class Neo4jD3Com extends React.Component {
return ( return (
<div id="zhishi"> <div id="zhishi">
<div id={"id_"+this.state.uid} style={{height:500}}> </div> <div id={"id_"+this.state.uid} style={{height:this.props.json.height||500}}> </div>
</div> </div>
); );
......
...@@ -1468,8 +1468,8 @@ export default class tableCom extends Component { ...@@ -1468,8 +1468,8 @@ export default class tableCom extends Component {
if (json.comName == 'Graph') { if (json.comName == 'Graph') {
return ( return (
<Neo4jD3Com <Neo4jD3Com
style={{ height: json.height || 500 }}
key={this.props.uuid} key={this.props.uuid}
json={json}
option={this.state.option || []}/> option={this.state.option || []}/>
); );
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论