ant-design-vue
Version:
An enterprise-class UI design language and Vue-based implementation
10 lines • 497 B
JavaScript
import { warning } from '../../vc-util/warning';
export function legacyPropsWarning(props) {
var picker = props.picker,
disabledHours = props.disabledHours,
disabledMinutes = props.disabledMinutes,
disabledSeconds = props.disabledSeconds;
if (picker === 'time' && (disabledHours || disabledMinutes || disabledSeconds)) {
warning(false, "'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.");
}
}