|
@@ -265,7 +265,8 @@ G6.registerNode('card-node', {
|
|
|
const isRoot = cfg.dataType === 'root';
|
|
|
const nodeUrl = cfg.nodeUrl;
|
|
|
/* the biggest rect */
|
|
|
- const container = nodeBasicMethod.createNodeBox(group, config, 243, 64, isRoot);
|
|
|
+ let count = cfg.info?Object.getOwnPropertyNames(cfg.info).length:1
|
|
|
+ const container = nodeBasicMethod.createNodeBox(group, config, 243, 64 * count , isRoot);
|
|
|
|
|
|
if (cfg.dataType !== 'root') {
|
|
|
/* the type text */
|
|
@@ -484,6 +485,7 @@ export default {
|
|
|
var elNode = {
|
|
|
id: node['name'],
|
|
|
nodeid:node['id'],
|
|
|
+ info:node['info'],
|
|
|
value:node['labor']?node['labor'] !== node['name']?node['labor']:'-':'-',
|
|
|
children: [],
|
|
|
nodeUrl:HASLINKS.includes(node['name'])?'123':null
|