u
This commit is contained in:
1 parent
7a9a22e02e
commit
ba9ce9e81b
8 files changed
+377
-248
No files matched your search
@@ -4,7 +4,6 @@ import { DatePicker } from '@yz1311/react-native-wheel-picker'
|
||||
import dayjs from 'dayjs'
|
||||
import React, { useEffect, useRef, useState } from 'react'
|
||||
import { Animated, Modal, StyleSheet, Text, TouchableOpacity, View } from 'react-native'
|
||||
import { AButton, ATab } from '@/components/common/ao'
|
||||
import { toDate } from '@/utils/time'
|
||||
|
||||
// 定义 mode 类型
|
||||
@@ -87,7 +86,7 @@ export default function ADatePicker({
|
||||
<View className="px-3 pt-2 flex flex-col gap-2">
|
||||
<View className="w-full">
|
||||
<Text>快速选择</Text>
|
||||
<ATab
|
||||
{/* <ATab
|
||||
data={[
|
||||
{
|
||||
label: '自定义',
|
||||
@@ -117,7 +116,7 @@ export default function ADatePicker({
|
||||
onChange={(key) => {
|
||||
setMode('datetime')
|
||||
}}
|
||||
/>
|
||||
/> */}
|
||||
</View>
|
||||
|
||||
<View className="w-full">
|
||||
@@ -150,8 +149,8 @@ export default function ADatePicker({
|
||||
/>
|
||||
|
||||
<View className="flex flex-row gap-4 px-3 pb-1 v">
|
||||
<AButton variant="outline" className="flex-1">取消</AButton>
|
||||
<AButton className="flex-1">确认</AButton>
|
||||
{/* <AButton variant="outline" className="flex-1">取消</AButton>
|
||||
<AButton className="flex-1">确认</AButton> */}
|
||||
</View>
|
||||
</Animated.View>
|
||||
</Modal>
|
||||
|
||||
Reference in new issue
Block a user