diff --git a/components/modal/Modal.tsx b/components/modal/Modal.tsx index a7f11b87e..6cf4412a2 100644 --- a/components/modal/Modal.tsx +++ b/components/modal/Modal.tsx @@ -79,8 +79,8 @@ const modalProps = { maskClosable: PropTypes.looseBool, /** 强制渲染 Modal*/ forceRender: PropTypes.looseBool, - okButtonProps: PropTypes.shape(buttonTypes), - cancelButtonProps: PropTypes.shape(buttonTypes), + okButtonProps: PropTypes.shape(buttonTypes).loose, + cancelButtonProps: PropTypes.shape(buttonTypes).loose, destroyOnClose: PropTypes.looseBool, wrapClassName: PropTypes.string, maskTransitionName: PropTypes.string, diff --git a/components/skeleton/Paragraph.tsx b/components/skeleton/Paragraph.tsx index c41df854b..a2441ef5d 100644 --- a/components/skeleton/Paragraph.tsx +++ b/components/skeleton/Paragraph.tsx @@ -9,7 +9,7 @@ const skeletonParagraphProps = { rows: PropTypes.number, }; -export const SkeletonParagraphProps = PropTypes.shape(skeletonParagraphProps); +export const SkeletonParagraphProps = PropTypes.shape(skeletonParagraphProps).loose; export type ISkeletonParagraphProps = Partial>; diff --git a/components/skeleton/Title.tsx b/components/skeleton/Title.tsx index b846afc84..16ea7b379 100644 --- a/components/skeleton/Title.tsx +++ b/components/skeleton/Title.tsx @@ -6,7 +6,7 @@ const skeletonTitleProps = { width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), }; -export const SkeletonTitleProps = PropTypes.shape(skeletonTitleProps); +export const SkeletonTitleProps = PropTypes.shape(skeletonTitleProps).loose; export type ISkeletonTitleProps = Partial>; diff --git a/components/vc-image/src/Image.tsx b/components/vc-image/src/Image.tsx index 2885a4fff..8e99b5f31 100644 --- a/components/vc-image/src/Image.tsx +++ b/components/vc-image/src/Image.tsx @@ -50,7 +50,7 @@ export const ImageProps = { visible: PropTypes.bool, onVisibleChange: PropTypes.func, getContainer: PropTypes.oneOf([PropTypes.func, PropTypes.bool]), - }), + }).loose, ]).def(true), }; type ImageStatus = 'normal' | 'error' | 'loading'; diff --git a/components/vc-table/src/Table.jsx b/components/vc-table/src/Table.jsx index 7318d293a..4ec9076b9 100644 --- a/components/vc-table/src/Table.jsx +++ b/components/vc-table/src/Table.jsx @@ -49,13 +49,13 @@ export default defineComponent({ wrapper: PropTypes.any, row: PropTypes.any, cell: PropTypes.any, - }), + }).loose, body: PropTypes.shape({ wrapper: PropTypes.any, row: PropTypes.any, cell: PropTypes.any, - }), - }), + }).loose, + }).loose, expandIconAsCell: PropTypes.looseBool, expandedRowKeys: PropTypes.array, expandedRowClassName: PropTypes.func, diff --git a/components/vc-trigger/Popup.jsx b/components/vc-trigger/Popup.jsx index 0c64d1a14..7c49fa836 100644 --- a/components/vc-trigger/Popup.jsx +++ b/components/vc-trigger/Popup.jsx @@ -31,7 +31,7 @@ export default { point: PropTypes.shape({ pageX: PropTypes.number, pageY: PropTypes.number, - }), + }).loose, }, data() { this.domEl = null;