fix: add loose to PropTypes.shape (#4001)
parent
41657eacef
commit
731a58d518
|
@ -79,8 +79,8 @@ const modalProps = {
|
||||||
maskClosable: PropTypes.looseBool,
|
maskClosable: PropTypes.looseBool,
|
||||||
/** 强制渲染 Modal*/
|
/** 强制渲染 Modal*/
|
||||||
forceRender: PropTypes.looseBool,
|
forceRender: PropTypes.looseBool,
|
||||||
okButtonProps: PropTypes.shape(buttonTypes),
|
okButtonProps: PropTypes.shape(buttonTypes).loose,
|
||||||
cancelButtonProps: PropTypes.shape(buttonTypes),
|
cancelButtonProps: PropTypes.shape(buttonTypes).loose,
|
||||||
destroyOnClose: PropTypes.looseBool,
|
destroyOnClose: PropTypes.looseBool,
|
||||||
wrapClassName: PropTypes.string,
|
wrapClassName: PropTypes.string,
|
||||||
maskTransitionName: PropTypes.string,
|
maskTransitionName: PropTypes.string,
|
||||||
|
|
|
@ -9,7 +9,7 @@ const skeletonParagraphProps = {
|
||||||
rows: PropTypes.number,
|
rows: PropTypes.number,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const SkeletonParagraphProps = PropTypes.shape(skeletonParagraphProps);
|
export const SkeletonParagraphProps = PropTypes.shape(skeletonParagraphProps).loose;
|
||||||
|
|
||||||
export type ISkeletonParagraphProps = Partial<ExtractPropTypes<typeof skeletonParagraphProps>>;
|
export type ISkeletonParagraphProps = Partial<ExtractPropTypes<typeof skeletonParagraphProps>>;
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ const skeletonTitleProps = {
|
||||||
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
||||||
};
|
};
|
||||||
|
|
||||||
export const SkeletonTitleProps = PropTypes.shape(skeletonTitleProps);
|
export const SkeletonTitleProps = PropTypes.shape(skeletonTitleProps).loose;
|
||||||
|
|
||||||
export type ISkeletonTitleProps = Partial<ExtractPropTypes<typeof skeletonTitleProps>>;
|
export type ISkeletonTitleProps = Partial<ExtractPropTypes<typeof skeletonTitleProps>>;
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ export const ImageProps = {
|
||||||
visible: PropTypes.bool,
|
visible: PropTypes.bool,
|
||||||
onVisibleChange: PropTypes.func,
|
onVisibleChange: PropTypes.func,
|
||||||
getContainer: PropTypes.oneOf([PropTypes.func, PropTypes.bool]),
|
getContainer: PropTypes.oneOf([PropTypes.func, PropTypes.bool]),
|
||||||
}),
|
}).loose,
|
||||||
]).def(true),
|
]).def(true),
|
||||||
};
|
};
|
||||||
type ImageStatus = 'normal' | 'error' | 'loading';
|
type ImageStatus = 'normal' | 'error' | 'loading';
|
||||||
|
|
|
@ -49,13 +49,13 @@ export default defineComponent({
|
||||||
wrapper: PropTypes.any,
|
wrapper: PropTypes.any,
|
||||||
row: PropTypes.any,
|
row: PropTypes.any,
|
||||||
cell: PropTypes.any,
|
cell: PropTypes.any,
|
||||||
}),
|
}).loose,
|
||||||
body: PropTypes.shape({
|
body: PropTypes.shape({
|
||||||
wrapper: PropTypes.any,
|
wrapper: PropTypes.any,
|
||||||
row: PropTypes.any,
|
row: PropTypes.any,
|
||||||
cell: PropTypes.any,
|
cell: PropTypes.any,
|
||||||
}),
|
}).loose,
|
||||||
}),
|
}).loose,
|
||||||
expandIconAsCell: PropTypes.looseBool,
|
expandIconAsCell: PropTypes.looseBool,
|
||||||
expandedRowKeys: PropTypes.array,
|
expandedRowKeys: PropTypes.array,
|
||||||
expandedRowClassName: PropTypes.func,
|
expandedRowClassName: PropTypes.func,
|
||||||
|
|
|
@ -31,7 +31,7 @@ export default {
|
||||||
point: PropTypes.shape({
|
point: PropTypes.shape({
|
||||||
pageX: PropTypes.number,
|
pageX: PropTypes.number,
|
||||||
pageY: PropTypes.number,
|
pageY: PropTypes.number,
|
||||||
}),
|
}).loose,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
this.domEl = null;
|
this.domEl = null;
|
||||||
|
|
Loading…
Reference in New Issue