@aplus-frontend/antdv
Version:
Vue basic component library maintained based on ant-design-vue
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.`);
}
}