子项样式修改
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { View, Text } from '@tarojs/components'
|
||||
import {Image, Loading, Tag} from '@antmjs/vantui'
|
||||
import {Image, Loading, Space, Tag} from '@antmjs/vantui'
|
||||
import { useState, useEffect } from 'react'
|
||||
import Taro from '@tarojs/taro'
|
||||
import { getCategoryLinks } from '@/api/home'
|
||||
@@ -58,11 +58,11 @@ export default function Category() {
|
||||
<Image className='grid-item-image' src={item.image.preview_url}></Image>
|
||||
<Text className='grid-item-title'>
|
||||
<View>{item.title}</View>
|
||||
<View>
|
||||
{ item.tag.length > 0 && item.tag.map((tag, index) => (
|
||||
<Space>
|
||||
{ item.tag && item.tag.length > 0 && item.tag.map((tag, index) => (
|
||||
<Tag type='danger' key={index}>{tag}</Tag>
|
||||
))}
|
||||
</View>
|
||||
</Space>
|
||||
</Text>
|
||||
</View>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user