Skip to content

Commit

Permalink
fix: grid (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
zuolung authored Nov 2, 2021
1 parent 5d92fea commit 5385d13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vantui/src/components/grid-item/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { View, Block, Text } from '@tarojs/components'
import { View, Text } from '@tarojs/components'
import { useState, useEffect, useCallback } from 'react'
import { GridItemProps } from '../../../types/grid-item'
import * as utils from '../wxs/utils'
Expand Down Expand Up @@ -118,7 +118,7 @@ export default function Index(
})}
>
{others.children || (
<Block>
<>
<View className="van-grid-item__icon icon-class">
{icon ? (
<VanIcon
Expand All @@ -136,7 +136,7 @@ export default function Index(
<View className="van-grid-item__text text-class">
{text ? <Text>{text}</Text> : parentState.renderText}
</View>
</Block>
</>
)}
</View>
</View>
Expand Down

0 comments on commit 5385d13

Please sign in to comment.