first commit
This commit is contained in:
10
frontend/node_modules/rc-picker/es/utils/warnUtil.js
generated
vendored
Normal file
10
frontend/node_modules/rc-picker/es/utils/warnUtil.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import warning from "rc-util/es/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.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user