From 832c42d641b21b17d3fa97baeeb19a7cdb858c08 Mon Sep 17 00:00:00 2001 From: zhangjiming Date: Mon, 17 Mar 2025 15:25:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E9=87=8F=E5=8F=82=E6=95=B0=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/(tabs)/(home)/save.tsx | 123 +++++++++++++++++++++++++++------------------ 1 file changed, 75 insertions(+), 48 deletions(-) diff --git a/app/(tabs)/(home)/save.tsx b/app/(tabs)/(home)/save.tsx index 1e69067..325baf1 100644 --- a/app/(tabs)/(home)/save.tsx +++ b/app/(tabs)/(home)/save.tsx @@ -1,76 +1,103 @@ import { useState } from 'react'; import { View, Text, Pressable, Image, TextInput, StyleSheet } from 'react-native'; +import { + Select, + SelectTrigger, + SelectInput, + SelectIcon, + SelectPortal, + SelectBackdrop, + SelectContent, + SelectDragIndicator, + SelectDragIndicatorWrapper, + SelectItem, +} from '@/components/ui/select'; +import { ChevronRightIcon } from '@/components/ui/icon'; +import { Button, ButtonText } from '@/components/ui/button'; export default function Save() { const [selectedLanguage, setSelectedLanguage] = useState(); return ( - - - - 测量名称 - + + + + 测量名称 + + + + + + + + - - 轨型 - - - 核校方式 - - - [styles.btn, { opacity: pressed ? 0.7 : 1 }]} - onPress={() => {}}> - 确定 - + ); } const styles = StyleSheet.create({ - model: { + form: { position: 'relative', - padding: 8, - }, - close: { - position: 'absolute', - right: 0, - top: 0, - padding: 12, - }, - title: { - textAlign: 'center', - fontSize: 16, - fontWeight: 500, - marginBottom: 20, + paddingHorizontal: 16, }, itemBox: { - backgroundColor: '#FAFAFA', height: 50, - borderRadius: 4, flexDirection: 'row', alignItems: 'center', - paddingHorizontal: 12, justifyContent: 'space-between', gap: 8, fontSize: 14, + borderBottomWidth: 1, + borderBottomColor: '#eeeeee' }, - itemTitle: {}, itemInput: { flex: 1, height: '100%', textAlign: 'right', }, - btn: { - height: 44, - borderRadius: 6, - color: '#fff', - justifyContent: 'center', - backgroundColor: '#3165D2', - marginTop: 16, - }, - btnText: { - color: '#FFF', - textAlign: 'center', - fontSize: 16, - }, });