Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/cascader/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import { cloneElement } from '../_util/vnode';
import warning from '../_util/warning';

const CascaderOptionType = PropTypes.shape({
value: PropTypes.string,
value: PropTypes.any,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PropTypes.oneofType(String, Number)

label: PropTypes.any,
disabled: PropTypes.bool,
children: PropTypes.array,
key: PropTypes.string,
key: PropTypes.any,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PropTypes.oneofType(String, Number)

}).loose;

const FieldNamesType = PropTypes.shape({
Expand All @@ -49,7 +49,7 @@ const CascaderProps = {
/** 可选项数据源 */
options: PropTypes.arrayOf(CascaderOptionType).def([]),
/** 默认的选中项 */
defaultValue: PropTypes.arrayOf(PropTypes.string),
defaultValue: PropTypes.arrayOf(PropTypes.any),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PropTypes.arrayOf(PropTypes.oneofType(String, Number))

/** 指定选中项 */
value: PropTypes.arrayOf(PropTypes.string),
Copy link
Member

@tangjinzhou tangjinzhou Mar 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PropTypes.arrayOf(PropTypes.oneofType(String, Number))

/** 选择完成后的回调 */
Expand Down