fix: remove transfer warning #4574

This commit is contained in:
tangjinzhou 2021-08-26 09:44:02 +08:00
parent 30a5f68fef
commit f3f3919c34
2 changed files with 4 additions and 4 deletions

View File

@ -15,8 +15,8 @@ import { withInstall } from '../_util/type';
export type TransferDirection = 'left' | 'right';
export const TransferItem = {
key: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
key: PropTypes.string,
title: PropTypes.string,
description: PropTypes.string,
disabled: PropTypes.looseBool,
};

View File

@ -14,8 +14,8 @@ import type { RadioChangeEvent } from '../radio/interface';
const defaultRender = () => null;
const TransferItem = {
key: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
key: PropTypes.string,
title: PropTypes.string,
description: PropTypes.string,
disabled: PropTypes.looseBool,
};