parent
0054b7741d
commit
d052aa82d0
@ -0,0 +1,21 @@ |
||||
.empty { |
||||
width: 750rpx; |
||||
text-align: center; |
||||
color: #6c757d; |
||||
position: relative; |
||||
|
||||
Image { |
||||
display: block; |
||||
margin: auto; |
||||
width: 400px; |
||||
margin-bottom: 10px; |
||||
} |
||||
|
||||
View { |
||||
position: absolute; |
||||
left: 0; |
||||
right: 0; |
||||
bottom: 40px; |
||||
margin: auto; |
||||
} |
||||
} |
@ -0,0 +1,19 @@ |
||||
import {FC} from "react"; |
||||
import {Image, View} from "@tarojs/components"; |
||||
import emptyImg from '@/static/img/empty.png' |
||||
import styles from './empty.module.scss' |
||||
|
||||
interface Props { |
||||
name: string |
||||
} |
||||
|
||||
const Empty: FC<Props> = ({name}) => { |
||||
return ( |
||||
<View className={styles.empty}> |
||||
<Image src={emptyImg} mode='widthFix'/> |
||||
<View>{name}</View> |
||||
</View> |
||||
) |
||||
} |
||||
|
||||
export default Empty |
Loading…
Reference in new issue