Skip to content

Commit

Permalink
fix(Form): Form 组件文档 demo 中 Switch 组件使用问题 (#2774)
Browse files Browse the repository at this point in the history
* fix(Form): Form 组件文档 demo 中 Switch 组件使用问题

* fix: test error

---------

Co-authored-by: oasis-cloud <[email protected]>
  • Loading branch information
zhangminggeek and oasis-cloud authored Nov 20, 2024
1 parent bd4b46c commit 2ab6b1e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/packages/form/demos/h5/demo7.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const Demo7 = () => {
<Form.Item label="Input" name="form_input">
<Input placeholder="placeholder" />
</Form.Item>
<Form.Item label="Switch" name="switch">
<Form.Item label="Switch" name="switch" valuePropName="checked">
<Switch />
</Form.Item>
<Form.Item label="Checkbox" name="checkbox">
Expand Down
2 changes: 1 addition & 1 deletion src/packages/form/demos/taro/demo7.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const Demo7 = () => {
<Form.Item label="Input" name="form_input">
<Input placeholder="placeholder" />
</Form.Item>
<Form.Item label="Switch" name="switch">
<Form.Item label="Switch" name="switch" valuePropName="checked">
<Switch />
</Form.Item>
<Form.Item label="Checkbox" name="checkbox">
Expand Down
1 change: 0 additions & 1 deletion src/packages/textarea/textarea.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const defaultProps = {
defaultValue: '',
showCount: false,
maxLength: 140,
placeholder: '',
readOnly: false,
disabled: false,
autoSize: false,
Expand Down
1 change: 0 additions & 1 deletion src/packages/textarea/textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const defaultProps = {
showCount: false,
rows: 2,
maxLength: 140,
placeholder: '',
readOnly: false,
disabled: false,
autoSize: false,
Expand Down

0 comments on commit 2ab6b1e

Please sign in to comment.