Skip to content

Commit 85e14e3

Browse files
committed
docs(Form): 文档更新
1 parent 378da76 commit 85e14e3

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

packages/core/src/Form/README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,9 @@ const FormDemo = () => {
201201

202202
<!--DemoStart-->
203203
```jsx
204-
import { SafeAreaView,View,Text } from 'react-native';
205-
import { Form,Button,Flex } from '@uiw/react-native';
204+
import React from 'react'
205+
import { SafeAreaView } from 'react-native';
206+
import { Form, Button } from '@uiw/react-native';
206207

207208
class FormDemo extends React.Component {
208209
render(){
@@ -222,14 +223,7 @@ class FormDemo extends React.Component {
222223
<Form
223224
form={form}
224225
schema={schema}
225-
initialValues={{ name: '王滴滴', rate: 4 }}
226-
watch={{
227-
name: (value: unknown) => console.log('value', value),
228-
}}
229-
customComponentList={{
230-
render: <Slider />,
231-
}}
232-
changeValidate={true}
226+
initialValues={{ name: '王滴滴' }}
233227
/>
234228
<Button
235229
type="primary"

0 commit comments

Comments
 (0)