Skip to content

Commit

Permalink
chore: update select demo
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Nov 30, 2022
1 parent d764620 commit 104d2f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/select/_example/custom-selected.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const CustomSelected = () => {
clearable
defaultValue={'1'}
style={{ width: '300px', marginRight: '20px' }}
valueDisplay={({ value }) => `选中${value}`}
valueDisplay={({ value }) => (value ? `选中${value}` : null)}
>
{options.map((v, i) => (
<Select.Option value={v.value} key={i}>
Expand Down

0 comments on commit 104d2f4

Please sign in to comment.