12 lines
432 B
JavaScript
12 lines
432 B
JavaScript
import { warning } from '../../vc-util/warning';
|
|
export function legacyPropsWarning(props) {
|
|
const {
|
|
picker,
|
|
disabledHours,
|
|
disabledMinutes,
|
|
disabledSeconds
|
|
} = props;
|
|
if (picker === 'time' && (disabledHours || disabledMinutes || disabledSeconds)) {
|
|
warning(false, `'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.`);
|
|
}
|
|
} |