提交 d3b9ca09 authored 作者: 王绍森's avatar 王绍森

删除多余属性

上级 32e17c5a
...@@ -43,7 +43,6 @@ export class ListViewDiy extends Component { ...@@ -43,7 +43,6 @@ export class ListViewDiy extends Component {
rowHasChanged: (row1, row2) => row1 !== row2, rowHasChanged: (row1, row2) => row1 !== row2,
}), }),
dataSource: [], dataSource: [],
height: document.documentElement.clientHeight * 3 / 4,
hasSearched: false, // 是否已经搜索过, hasSearched: false, // 是否已经搜索过,
...this.defaultPagination(), ...this.defaultPagination(),
} }
...@@ -53,11 +52,6 @@ export class ListViewDiy extends Component { ...@@ -53,11 +52,6 @@ export class ListViewDiy extends Component {
static RefreshData = 'RefreshData' static RefreshData = 'RefreshData'
componentDidMount() { componentDidMount() {
const hei = document.documentElement.clientHeight - ReactDOM.findDOMNode(this.lv).parentNode.offsetTop;
this.setState({
height: hei,
});
if (this.props.mountedSearch) { if (this.props.mountedSearch) {
this.queryData(); this.queryData();
} }
...@@ -125,7 +119,7 @@ export class ListViewDiy extends Component { ...@@ -125,7 +119,7 @@ export class ListViewDiy extends Component {
render() { render() {
const { listViewData, isLoading, isRefreshing, height, hasSearched, dataSource, } = this.state; const { listViewData, isLoading, isRefreshing, hasSearched, dataSource, } = this.state;
const { renderRow, ListSeparator, pageSize = 10, NoResult, renderHeader } = this.props; const { renderRow, ListSeparator, pageSize = 10, NoResult, renderHeader } = this.props;
const renderFooter = () => { const renderFooter = () => {
if (!hasSearched) return null; if (!hasSearched) return null;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论