Skip to content

Commit

Permalink
fix: add autoHeight className
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahim-Chan committed May 8, 2020
1 parent 389fe89 commit d1a7df7
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/components/list-view/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,16 +271,16 @@ class ListView extends Component<Props, State> {
>
<View
// style={trStyle}
className="bodyView"
id="bodyView"
className='bodyView'
id='bodyView'
>
<View style={blockStyle}>
<View
style={{ height: `${damping}px`, marginTop: `-${damping}px` }}
className="pullDownBlock"
className='pullDownBlock'
>
<View className="tip">
{!downLoading && <View id="tip-dampText">{dampText}</View>}
<View className='tip'>
{!downLoading && <View id='tip-dampText'>{dampText}</View>}
{downLoading &&
(this.props.customizeLoading ? (
this.props.renderCustomizeLoading
Expand All @@ -303,13 +303,13 @@ class ListView extends Component<Props, State> {
/>
{/* default page */}
{footerLoading && (
<View className="loading">{footerLoadingText}</View>
<View className='loading'>{footerLoadingText}</View>
)}
{/* custom footer loading page*/}
{customFooterLoading && this.props.renderFooterLoading}
{/* default footer loaded page*/}
{footerLoaded && (
<View className="loaded">{footerLoadedText}</View>
<View className='loaded'>{footerLoadedText}</View>
)}
{/* custom footer loaded page*/}
{customFooterLoaded && this.props.renderFooterLoaded}
Expand Down Expand Up @@ -342,16 +342,16 @@ class ListView extends Component<Props, State> {
>
<View
// style={trStyle}
className="bodyView"
id="bodyView"
className='bodyView'
id='bodyView'
>
<View style={blockStyle}>
<View
style={{ height: `${damping}px`, marginTop: `-${damping}px` }}
className="pullDownBlock"
className='pullDownBlock'
>
<View className="tip">
{!downLoading && <View id="tip-dampText">{dampText}</View>}
<View className='tip'>
{!downLoading && <View id='tip-dampText'>{dampText}</View>}
{downLoading &&
(this.props.customizeLoading ? (
this.props.renderCustomizeLoading
Expand All @@ -374,13 +374,13 @@ class ListView extends Component<Props, State> {
/>
{/* default page */}
{footerLoading && (
<View className="loading">{footerLoadingText}</View>
<View className='loading'>{footerLoadingText}</View>
)}
{/* custom footer loading page*/}
{customFooterLoading && this.props.renderFooterLoading}
{/* default footer loaded page*/}
{footerLoaded && (
<View className="loaded">{footerLoadedText}</View>
<View className='loaded'>{footerLoadedText}</View>
)}
{/* custom footer loaded page*/}
{customFooterLoaded && this.props.renderFooterLoaded}
Expand Down

0 comments on commit d1a7df7

Please sign in to comment.