...
|
...
|
@@ -43,7 +43,12 @@ export default class CategoryList extends Component { |
|
|
}
|
|
|
}
|
|
|
_pressLeftRow(value,rowID){
|
|
|
if(value.sub.length==1){
|
|
|
this.props.pressSubCateRow(value.sub[0], 0);
|
|
|
return;
|
|
|
}
|
|
|
this.props.pressLeftRow(value,rowID);
|
|
|
this.refs.subCategoryList && this.refs.subCategoryList.scrollTo({x: 0, y: 0, animated: false});
|
|
|
if(rowID==this.props.currentCateId){
|
|
|
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
|
|
|
if(this.state.offsetx<0){
|
...
|
...
|
@@ -129,6 +134,7 @@ export default class CategoryList extends Component { |
|
|
scrollsToTop={false}
|
|
|
/>
|
|
|
<ListView
|
|
|
ref='subCategoryList'
|
|
|
style={[styles.subContentContainer, {marginLeft: this.state.offsetx}]}
|
|
|
dataSource={this.dataSource.cloneWithRows(subCateList)}
|
|
|
enableEmptySections={true}
|
...
|
...
|
|