@alifd/next
Version:
A configurable component library for web built on React.
21 lines (20 loc) • 940 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var config_provider_1 = tslib_1.__importDefault(require("../config-provider"));
var range_1 = tslib_1.__importDefault(require("./view/range"));
exports.default = config_provider_1.default.config(range_1.default, {
transform: function (props, deprecated) {
if ('hasTips' in props) {
deprecated('hasTips', 'hasTip', 'Range');
var hasTips = props.hasTips, others = tslib_1.__rest(props, ["hasTips"]);
props = tslib_1.__assign({ hasTip: hasTips }, others);
}
if ('tipFormatter' in props) {
deprecated('tipFormatter', 'tipRender', 'Range');
var tipFormatter = props.tipFormatter, others = tslib_1.__rest(props, ["tipFormatter"]);
props = tslib_1.__assign({ tipRender: tipFormatter }, others);
}
return props;
},
});
;