Skip to content

Commit

Permalink
docs(Cascader): fix Cascader docs children dyamic loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Heising committed Oct 7, 2023
1 parent b993760 commit f268717
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cascader/_example/load.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ export default function Example() {
{
label: '选项1',
value: '1',
children: [],
children: true,
},
{
label: '选项2',
value: '2',
children: [],
children: true,
},
];

Expand Down
2 changes: 1 addition & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export type OptionData = {
} & PlainObject;

export type TreeOptionData<T = string | number> = {
children?: Array<TreeOptionData<T>>;
children?: Array<TreeOptionData<T>> | boolean;
/** option label content */
label?: string | TNode;
/** option search text */
Expand Down

0 comments on commit f268717

Please sign in to comment.