Skip to content

Commit

Permalink
feat(pulltorefresh): update icon
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud committed Nov 8, 2024
1 parent 16b173e commit 97bb51b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/packages/pulltorefresh/pulltorefresh.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { sleep } from '@/utils/sleep'
import { BasicComponent, ComponentDefaults, Timeout } from '@/utils/typings'
import { PullToRefreshType } from './types'
import pxTransform from '@/utils/px-transform'
import { harmonyAndRn, rn } from '@/utils/platform-taro'
import { rn } from '@/utils/platform-taro'

export type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete'

Expand Down Expand Up @@ -77,10 +77,8 @@ export const PullToRefresh: FunctionComponent<Partial<PullToRefreshProps>> = (
const renderIcons = (status: string) => {
return (
<>
{(status === 'pulling' || status === 'complete') &&
(!harmonyAndRn() ? <Loading /> : null)}
{(status === 'canRelease' || status === 'refreshing') &&
(!harmonyAndRn() ? <More /> : null)}
{(status === 'pulling' || status === 'complete') && <Loading />}
{(status === 'canRelease' || status === 'refreshing') && <More />}
</>
)
}
Expand Down

0 comments on commit 97bb51b

Please sign in to comment.