Skip to content

Commit

Permalink
fix: 修复power-scroll-view export 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
三少 committed Jan 5, 2022
1 parent cecf9be commit 334ed89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/vantui/src/power-scroll-view/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const sleep = (t: number) =>
const DEFAULT_HEAD_HEIGHT = 50
const TEXT_STATUS = ['pulling', 'loosing', 'success']

export const PullRefresh: React.FC<PowerScrollViewProps> = (props) => {
export const PowerScrollView: React.FC<PowerScrollViewProps> = (props) => {
const {
headHeight = DEFAULT_HEAD_HEIGHT,
successDuration = 500,
Expand Down Expand Up @@ -525,4 +525,4 @@ export const PullRefresh: React.FC<PowerScrollViewProps> = (props) => {
)
}

export default PullRefresh
export default PowerScrollView
8 changes: 5 additions & 3 deletions packages/vantui/src/px-transform/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { pxTransform } from '@tarojs/taro'
import { pxTransform as TaroPxTransform } from '@tarojs/taro'

export { pxTransform }
export default pxTransform
export function pxTransform(size: number, designWidth?: number | undefined) {
TaroPxTransform(size, designWidth)
}
export default TaroPxTransform

0 comments on commit 334ed89

Please sign in to comment.