Skip to content

Commit 5039213

Browse files
committed
chore: remove useless code
1 parent cc3b839 commit 5039213

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

examples/mutiple-with-maxCount.tsx

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,7 @@ export default () => {
4141
return (
4242
<>
4343
<h2>multiple with maxCount</h2>
44-
<TreeSelect
45-
style={{ width: 300 }}
46-
multiple
47-
maxCount={3}
48-
treeData={treeData}
49-
// onChange={onChange}
50-
// value={value}
51-
/>
44+
<TreeSelect style={{ width: 300 }} multiple maxCount={3} treeData={treeData} />
5245

5346
<h2>checkable with maxCount</h2>
5447
<TreeSelect
@@ -61,16 +54,6 @@ export default () => {
6154
onChange={onChange}
6255
value={value}
6356
/>
64-
<TreeSelect
65-
style={{ width: 300 }}
66-
treeData={[
67-
{ key: '0', value: '0', title: '0 label' },
68-
{ key: '1', value: '1', title: '1 label' },
69-
{ key: '2', value: '2', title: '2 label' },
70-
]}
71-
multiple
72-
maxCount={2}
73-
/>
7457
</>
7558
);
7659
};

0 commit comments

Comments
 (0)