Skip to content

Commit

Permalink
fix(pull-refresh): use success props when status is success
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed Jul 21, 2022
1 parent 21f450f commit 189f8ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/varlet-ui/src/pull-refresh/PullRefresh.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export default defineComponent({
const controlStyle = computed(() => ({
transform: `translate3d(0px, ${distance.value}px, 0px) translate(-50%, 0)`,
transition: isEnd.value ? `transform ${props.animationDuration}ms` : undefined,
background: props.successBgColor || props.bgColor,
color: props.successColor || props.color,
background: isSuccess.value ? props.successBgColor : props.bgColor,
color: isSuccess.value ? props.successColor : props.color,
}))
const isSuccess = computed(() => refreshStatus.value === 'success')
Expand Down

0 comments on commit 189f8ab

Please sign in to comment.