index.tsx 640 B

12345678910111213141516171819202122
  1. import React from 'react'
  2. import { View, Text } from '@tarojs/components'
  3. import { TabBarLayout } from '@/layouts/tab-bar-layout'
  4. import { Input } from '@/components/ui/input'
  5. import { Label } from '@/components/ui/label'
  6. const HomePage: React.FC = () => {
  7. return (
  8. <TabBarLayout activeKey="home">
  9. <View className="p-4">
  10. <Text className="text-2xl font-bold text-gray-900">首页</Text>
  11. <View className="mt-4">
  12. <Text className="text-gray-600">欢迎来到首页!</Text>
  13. <Label>abc</Label>
  14. <Input />
  15. </View>
  16. </View>
  17. </TabBarLayout>
  18. )
  19. }
  20. export default HomePage