Skip to content

Commit 961c6ec

Browse files
committed
2 parents ea1cd6d + 9b8aedf commit 961c6ec

File tree

7 files changed

+19
-21
lines changed

7 files changed

+19
-21
lines changed

example/examples/ios/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ PODS:
367367
- RNScreens (3.15.0):
368368
- React-Core
369369
- React-RCTImage
370-
- RNSVG (12.1.1):
371-
- React
370+
- RNSVG (13.0.0):
371+
- React-Core
372372
- SocketRocket (0.6.0)
373373
- Yoga (1.14.0)
374374
- YogaKit (1.18.1):
@@ -587,7 +587,7 @@ SPEC CHECKSUMS:
587587
RNCMaskedView: 0e1bc4bfa8365eba5fbbb71e07fbdc0555249489
588588
RNGestureHandler: bad495418bcbd3ab47017a38d93d290ebd406f50
589589
RNScreens: 4a1af06327774490d97342c00aee0c2bafb497b7
590-
RNSVG: 551acb6562324b1d52a4e0758f7ca0ec234e278f
590+
RNSVG: 42a0c731b11179ebbd27a3eeeafa7201ebb476ff
591591
SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608
592592
Yoga: 0b84a956f7393ef1f37f3bb213c516184e4a689d
593593
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

packages/core/src/DatePicker/README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ DatePicker
66
77
### 基础示例
88

9-
```jsx
10-
import { useState } from 'react'
9+
```jsx mdx:preview&background=#bebebe29
10+
import { Button } from '@uiw/react-native';
11+
import React,{ useState } from 'react';
1112
import { View,Text } from 'react-native';
12-
import { DatePicker } from '@uiw/react-native';
13+
import DatePicker from '@uiw/react-native/lib/DatePicker/date-picker';
1314
function Demo() {
1415
const [visible,setVisible] = useState(false)
1516
const [formatDate,setFormatDate] = useState('')
@@ -62,10 +63,10 @@ DatePeriodInput
6263

6364
### 基础示例
6465

65-
```jsx
66-
import { useState } from 'react'
67-
import { View,Text } from 'react-native';
68-
import { DatePeriodInput } from '@uiw/react-native';
66+
```jsx mdx:preview&background=#bebebe29
67+
import React,{ useState } from 'react';
68+
import { View} from 'react-native';
69+
import DatePeriodInput from '@uiw/react-native/lib/DatePicker/date-period-input';
6970
function Demo() {
7071
const [value,setValue] = useState(undefined)
7172
return (

packages/core/src/DatePicker/date-period-input/index.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const DatePeriodInput: FC<DatePeriodInputProps> = ({
8888
<Icon name="date" size={16} color={theme.colors.primary_text || '#ccc'} />
8989
<Text
9090
color={disabled ? 'disabled' : 'text'}
91-
style={{ ...theme.textVariants.p1, marginLeft: theme.spacing.x2 || 8 }}
91+
style={[p1, { marginLeft: 8 }]} //...theme.textVariants.p1
9292
>
9393
{dates[0] ? dayjs(dates[0]).format(format) : placeholder[0]}
9494
</Text>
@@ -103,8 +103,8 @@ const DatePeriodInput: FC<DatePeriodInputProps> = ({
103103
</AnimatedTouchableIcon>
104104
)}
105105
</TouchableOpacity>
106-
<View style={{ marginHorizontal: theme.spacing.x2 || 8 }}>
107-
<Text color="text" style={{ ...(theme.textVariants.p1 || p1) }}>
106+
<View style={{ marginHorizontal: 8 }}>
107+
<Text color="text" style={p1}>
108108
~
109109
</Text>
110110
</View>
@@ -126,10 +126,7 @@ const DatePeriodInput: FC<DatePeriodInputProps> = ({
126126
>
127127
<Flex style={{ alignItems: 'center' }}>
128128
<Icon size={16} name="date" color={theme.colors.primary_text || '#ccc'} />
129-
<Text
130-
color={disabled ? 'disabled' : 'text'}
131-
style={{ ...(theme.textVariants.p1 || p1), marginLeft: theme.spacing.x2 || 8 }}
132-
>
129+
<Text color={disabled ? 'disabled' : 'text'} style={[p1, { marginLeft: 8 }]}>
133130
{dates[1] ? dayjs(dates[1]).format(format) : placeholder[1]}
134131
</Text>
135132
</Flex>

packages/core/src/DatePicker/date-picker/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const DatePicker = forwardRef<DatePickerRef, DatePickerProps>((props, ref) => {
6767
return (
6868
<Modal visible={visible} onClosed={handleClose}>
6969
<SafeAreaView>
70-
<View style={{ padding: theme.spacing.x2 }}>
70+
<View style={{ padding: 8 }}>
7171
<Flex justify="between">
7272
<Flex.Item>
7373
<TouchableOpacity activeOpacity={0.5} onPress={handleClose}>

packages/core/src/Form/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ export default FormDemo
326326
| 参数 | 说明 | 类型 | 默认值 |
327327
|------|------|-----|------|
328328
| `field` | 字段名 | string | - |
329-
| `type` | 字段类型(`input` \| `textArea` \| `slider` \| `rate` \| `radio` \| `search`\| `switch`\| `checkBox`\| `stepper`\| `picker`\| `treeSelect`\ | `datePicker`\ | `cardList`) | string | - |
329+
| `type` | 字段类型(`input` \| `textArea` \| `slider` \| `rate` \| `radio` \| `search`\| `switch`\| `checkBox`\| `stepper`\| `picker`\| `treeSelect`\| `datePicker`\| `cardList`) | string | - |
330330
| `name` | 标签名 | string | - |
331331
| `validate` | 验证规则 | RulesOption['validate'] | - |
332332
| `options` | 集合 | Array<{ label: string; value: KeyType }> | - |

packages/core/src/Picker/components/WheelPicker/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default function WheelPicker({
7878
transform: [{ translateY: -itemHeight / 2 }],
7979
height: itemHeight,
8080
backgroundColor: indicatorBackgroundColor ?? theme.colors.gray100,
81-
borderRadius: theme.borderRadii.x2 || 2,
81+
borderRadius: 2,
8282
},
8383
]}
8484
/>

packages/core/src/Picker/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function Picker(props: ComPickerProps) {
141141
return (
142142
<Modal visible={visible} onClosed={handleClose}>
143143
<SafeAreaView>
144-
<View style={{ padding: theme.spacing.x2 }}>
144+
<View style={{ padding: 8 }}>
145145
<Flex justify="between">
146146
<Flex.Item>
147147
<TouchableOpacity activeOpacity={0.5} onPress={handleClose}>

0 commit comments

Comments
 (0)