react-lineage-dag
Advanced tools
Comparing version 2.0.11 to 2.0.12
{ | ||
"name": "react-lineage-dag", | ||
"version": "2.0.11", | ||
"version": "2.0.12", | ||
"description": "表格/字段血缘React组件", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -10,3 +10,3 @@ 'use strict'; | ||
tables, relations, columns, emptyContent, operator, | ||
_titleRender, _enableHoverChain | ||
_titleRender, _enableHoverChain, _emptyContent, _emptyWidth | ||
} = data; | ||
@@ -22,3 +22,5 @@ | ||
_titleRender, | ||
_enableHoverChain | ||
_enableHoverChain, | ||
_emptyContent, | ||
_emptyWidth | ||
}, item); | ||
@@ -25,0 +27,0 @@ }), |
@@ -5,2 +5,3 @@ import {Node} from 'butterfly-dag'; | ||
import * as _ from 'lodash'; | ||
import emptyDom from './empty'; | ||
@@ -248,8 +249,10 @@ export default class TableNode extends Node { | ||
const _emptyContent = _.get(this.options, '_emptyContent'); | ||
const noDataTree = emptyDom({ | ||
content: _emptyContent, | ||
width: this.options._emptyWidth | ||
}); | ||
container.append(noDataTree); | ||
this.height = $(container).outerHeight(); | ||
if (_emptyContent) { | ||
const noDataTree = emptyDom({ | ||
content: _emptyContent, | ||
width: this.options._emptyWidth | ||
}); | ||
container.append(noDataTree); | ||
this.height = $(container).outerHeight(); | ||
} | ||
} | ||
@@ -256,0 +259,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
252903
30
4453