antd-mobile
Version:
<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />
22 lines (17 loc) • 369 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.convertValueToRange = convertValueToRange;
function convertValueToRange(selectionMode, value) {
if (selectionMode === undefined) {
return null;
}
if (value === null) {
return null;
}
if (Array.isArray(value)) {
return value;
}
return [value, value];
}
;