fix: types error

This commit is contained in:
tangjinzhou 2020-11-03 23:15:57 +08:00
parent df1428e33d
commit a4854084bc
4 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ const collapseProps = () => ({
const panelProps = () => ({
openAnimation: PropTypes.object,
prefixCls: PropTypes.string,
header: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.node]),
header: PropTypes.any,
headerClass: PropTypes.string,
showArrow: PropTypes.looseBool,
isActive: PropTypes.looseBool,

View File

@ -286,7 +286,7 @@ DOMWrap.props = {
prefixCls: PropTypes.string,
level: PropTypes.number,
theme: PropTypes.string,
overflowedIndicator: PropTypes.node,
overflowedIndicator: PropTypes.any,
visible: PropTypes.looseBool,
hiddenClassName: PropTypes.string,
tag: PropTypes.string.def('div'),

View File

@ -46,7 +46,7 @@ const SelectTrigger = {
isMultiple: PropTypes.looseBool,
dropdownPrefixCls: PropTypes.string,
dropdownVisibleChange: PropTypes.func,
popupElement: PropTypes.node,
popupElement: PropTypes.any,
open: PropTypes.looseBool,
},
created() {

View File

@ -18,7 +18,7 @@ export function valueProp(...args) {
if (isLabelInValue(props)) {
const err = genArrProps(
PropTypes.shape({
label: PropTypes.node,
label: PropTypes.any,
value: internalValProp,
}).loose,
)(...args);