Skip to content

Commit

Permalink
fix(Cascader): onChange's first parameter should be string Array ant-…
Browse files Browse the repository at this point in the history
  • Loading branch information
BANG88 authored Dec 13, 2016
1 parent dba6b70 commit 764cd94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/cascader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface CascaderProps {
/** 指定选中项 */
value?: Array<CascaderOptionType>;
/** 选择完成后的回调 */
onChange?: (value: string, selectedOptions?: Array<CascaderOptionType>) => void;
onChange?: (value: string[], selectedOptions?: Array<CascaderOptionType>) => void;
/** 选择后展示的渲染函数 */
displayRender?: (label: Array<string>, selectedOptions?: Array<CascaderOptionType>) => React.ReactNode;
/** 自定义样式 */
Expand Down

0 comments on commit 764cd94

Please sign in to comment.