fix: types error
parent
df1428e33d
commit
a4854084bc
|
@ -24,7 +24,7 @@ const collapseProps = () => ({
|
||||||
const panelProps = () => ({
|
const panelProps = () => ({
|
||||||
openAnimation: PropTypes.object,
|
openAnimation: PropTypes.object,
|
||||||
prefixCls: PropTypes.string,
|
prefixCls: PropTypes.string,
|
||||||
header: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.node]),
|
header: PropTypes.any,
|
||||||
headerClass: PropTypes.string,
|
headerClass: PropTypes.string,
|
||||||
showArrow: PropTypes.looseBool,
|
showArrow: PropTypes.looseBool,
|
||||||
isActive: PropTypes.looseBool,
|
isActive: PropTypes.looseBool,
|
||||||
|
|
|
@ -286,7 +286,7 @@ DOMWrap.props = {
|
||||||
prefixCls: PropTypes.string,
|
prefixCls: PropTypes.string,
|
||||||
level: PropTypes.number,
|
level: PropTypes.number,
|
||||||
theme: PropTypes.string,
|
theme: PropTypes.string,
|
||||||
overflowedIndicator: PropTypes.node,
|
overflowedIndicator: PropTypes.any,
|
||||||
visible: PropTypes.looseBool,
|
visible: PropTypes.looseBool,
|
||||||
hiddenClassName: PropTypes.string,
|
hiddenClassName: PropTypes.string,
|
||||||
tag: PropTypes.string.def('div'),
|
tag: PropTypes.string.def('div'),
|
||||||
|
|
|
@ -46,7 +46,7 @@ const SelectTrigger = {
|
||||||
isMultiple: PropTypes.looseBool,
|
isMultiple: PropTypes.looseBool,
|
||||||
dropdownPrefixCls: PropTypes.string,
|
dropdownPrefixCls: PropTypes.string,
|
||||||
dropdownVisibleChange: PropTypes.func,
|
dropdownVisibleChange: PropTypes.func,
|
||||||
popupElement: PropTypes.node,
|
popupElement: PropTypes.any,
|
||||||
open: PropTypes.looseBool,
|
open: PropTypes.looseBool,
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
|
@ -18,7 +18,7 @@ export function valueProp(...args) {
|
||||||
if (isLabelInValue(props)) {
|
if (isLabelInValue(props)) {
|
||||||
const err = genArrProps(
|
const err = genArrProps(
|
||||||
PropTypes.shape({
|
PropTypes.shape({
|
||||||
label: PropTypes.node,
|
label: PropTypes.any,
|
||||||
value: internalValProp,
|
value: internalValProp,
|
||||||
}).loose,
|
}).loose,
|
||||||
)(...args);
|
)(...args);
|
||||||
|
|
Loading…
Reference in New Issue