18 lines
568 B
JavaScript
18 lines
568 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.legacyPropsWarning = legacyPropsWarning;
|
|
var _warning = require("../../vc-util/warning");
|
|
function legacyPropsWarning(props) {
|
|
const {
|
|
picker,
|
|
disabledHours,
|
|
disabledMinutes,
|
|
disabledSeconds
|
|
} = props;
|
|
if (picker === 'time' && (disabledHours || disabledMinutes || disabledSeconds)) {
|
|
(0, _warning.warning)(false, `'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.`);
|
|
}
|
|
} |