你必须设置一个height或maxheight;FixedDataTable组件错误
"You must set either a height or a maxHeight" error with FixedDataTable Component
我得到错误:
Uncaught错误:不变量违反:必须设置高度或maxHeight
这是什么意思?
这是堆栈:
invariant @ invariant.js:39
_calculateState @ FixedDataTable.react.js:669
getInitialState @ FixedDataTable.react.js:305
ReactClass.createClass.Constructor @ ReactClass.js:853
ReactCompositeComponentMixin.mountComponent @ ReactCompositeComponent.js:135
ReactPerf.measure.wrapper @ ReactPerf.js:70
ReactReconciler.mountComponent @ ReactReconciler.js:38
ReactCompositeComponentMixin.mountComponent @ ReactCompositeComponent.js:247
ReactPerf.measure.wrapper @ ReactPerf.js:70
ReactReconciler.mountComponent @ ReactReconciler.js:38
ReactMultiChild.Mixin.mountChildren @ ReactMultiChild.js:192
ReactDOMComponent.Mixin._createContentMarkup @ ReactDOMComponent.js:289
我要做的就是从这个例子中拉出来。
我猜您没有传递tableHeight道具,但如果没有看到组件代码则很难判断。
相关文章:
- 分析高度属性时出现意外值{{specs.height}}.index.html
- $(document).height()在刷新时随机化值(Safari 5.1.10)
- 在刚刚调用的append函数之后,jquery.height()不会返回实际值
- Phonegap css height%不适用于android 4.2-4.3
- $(document).height和$(window).heaght都返回相同的值-使用的是正确的doctype
- $(window).height() inside iframe?
- document和window height返回相同的值
- HTML5画布y-height不正确
- TinyMCE/IE9/DIV with Width/Height/ContentEditable/如何阻止DIV选择
- 如果screen.height低于460px,请删除一个类
- jQuery Height 无法正常工作
- 使用 angularJs 修改 css.height 会导致 Internet Explorer 无法滚动到页面底部
- $('body').height()变化不可预测
- JQuery .height() returning 0
- IE11 style.maxHeight未从css设置
- 在纯JavaScript中,jQuery的.height()和.width()等价于什么
- Javascript and Css: Height does not change
- iframe.height(100);正在添加 chrome,并在火狐中设置
- Safari中的jQuery.height()错误
- 你必须设置一个height或maxheight;FixedDataTable组件错误