Skip to content

Commit

Permalink
docs: fix list example of checkbox selection value (DouyinFE#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangmo8 authored Apr 15, 2022
1 parent 1e9d1b5 commit 5f0912f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ fastlane/readme.md

### VisualStudioCode ###
# .vscode/
.history

# metro
tmp
Expand Down
2 changes: 1 addition & 1 deletion content/show/list/index-en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ import { List, Input, Button, Checkbox, Radio, RadioGroup, CheckboxGroup } from
];

const [page, onPageChange] = useState(1);
const [checkboxVal, setCV] = useState(data[0]);
const [checkboxVal, setCV] = useState([...data[0]]);
const [radioVal, setRV] = useState(data[0]);

let pageSize = 8;
Expand Down
2 changes: 1 addition & 1 deletion content/show/list/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ import { List, Input, Button, Checkbox, Radio, RadioGroup, CheckboxGroup } from
];

const [page, onPageChange] = useState(1);
const [checkboxVal, setCV] = useState(data[0]);
const [checkboxVal, setCV] = useState([...data[0]]);
const [radioVal, setRV] = useState(data[0]);

let pageSize = 8;
Expand Down

0 comments on commit 5f0912f

Please sign in to comment.