@nutui/nutui-react
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
21 lines (20 loc) • 421 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "bound", {
enumerable: true,
get: function() {
return bound;
}
});
function bound(position, min, max) {
var ret = position;
if (min !== undefined) {
ret = Math.max(position, min);
}
if (max !== undefined) {
ret = Math.min(ret, max);
}
return ret;
}
;