shineout 3.9.12-beta.5 → 3.9.12-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +1 -1
- package/dist/shineout.js +39 -5
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
522
522
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
523
523
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
524
524
|
var _default = exports.default = {
|
|
525
|
-
version: '3.9.12-beta.
|
|
525
|
+
version: '3.9.12-beta.7'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12408,7 +12408,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12408
12408
|
};
|
|
12409
12409
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12410
12410
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12411
|
-
/* harmony default export */ var version = ('3.9.12-beta.
|
|
12411
|
+
/* harmony default export */ var version = ('3.9.12-beta.7');
|
|
12412
12412
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12413
12413
|
|
|
12414
12414
|
|
|
@@ -19959,7 +19959,7 @@ var formItemStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
19959
19959
|
}
|
|
19960
19960
|
},
|
|
19961
19961
|
wrapperHideRequired: {
|
|
19962
|
-
'& $label::before': {
|
|
19962
|
+
'& > $label::before': {
|
|
19963
19963
|
display: 'none'
|
|
19964
19964
|
}
|
|
19965
19965
|
},
|
|
@@ -63709,8 +63709,42 @@ var useSlider = function useSlider(props) {
|
|
|
63709
63709
|
// Check if the new value would be disabled
|
|
63710
63710
|
var newValue = getValueFromRate(newRate[context.dragIndex], scale, step);
|
|
63711
63711
|
if (isDisabled(newValue)) {
|
|
63712
|
-
//
|
|
63713
|
-
|
|
63712
|
+
// Binary search for the closest allowed boundary in the drag direction
|
|
63713
|
+
var currentRate = v;
|
|
63714
|
+
var lo, hi, boundaryRate;
|
|
63715
|
+
if (rate > currentRate) {
|
|
63716
|
+
// Dragging forward: find the largest non-disabled rate in [currentRate, rate]
|
|
63717
|
+
lo = currentRate;
|
|
63718
|
+
hi = rate;
|
|
63719
|
+
for (var i = 0; i < 20; i++) {
|
|
63720
|
+
var mid = (lo + hi) / 2;
|
|
63721
|
+
if (isDisabled(getValueFromRate(mid, scale, step))) {
|
|
63722
|
+
hi = mid;
|
|
63723
|
+
} else {
|
|
63724
|
+
lo = mid;
|
|
63725
|
+
}
|
|
63726
|
+
}
|
|
63727
|
+
boundaryRate = lo;
|
|
63728
|
+
} else {
|
|
63729
|
+
// Dragging backward: find the smallest non-disabled rate in [rate, currentRate]
|
|
63730
|
+
lo = rate;
|
|
63731
|
+
hi = currentRate;
|
|
63732
|
+
for (var _i = 0; _i < 20; _i++) {
|
|
63733
|
+
var _mid = (lo + hi) / 2;
|
|
63734
|
+
if (isDisabled(getValueFromRate(_mid, scale, step))) {
|
|
63735
|
+
lo = _mid;
|
|
63736
|
+
} else {
|
|
63737
|
+
hi = _mid;
|
|
63738
|
+
}
|
|
63739
|
+
}
|
|
63740
|
+
boundaryRate = hi;
|
|
63741
|
+
}
|
|
63742
|
+
var boundaryValue = getValueFromRate(boundaryRate, scale, step);
|
|
63743
|
+
var currentValue = getValueFromRate(v, scale, step);
|
|
63744
|
+
if (isDisabled(boundaryValue) || boundaryValue === currentValue) {
|
|
63745
|
+
return r;
|
|
63746
|
+
}
|
|
63747
|
+
newRate[context.dragIndex] = boundaryRate;
|
|
63714
63748
|
}
|
|
63715
63749
|
if (newRate[0] > newRate[1]) {
|
|
63716
63750
|
context.dragIndex = context.dragIndex === 0 ? 1 : 0;
|
|
@@ -75577,7 +75611,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
75577
75611
|
|
|
75578
75612
|
|
|
75579
75613
|
/* harmony default export */ var src_0 = ({
|
|
75580
|
-
version: '3.9.12-beta.
|
|
75614
|
+
version: '3.9.12-beta.7'
|
|
75581
75615
|
});
|
|
75582
75616
|
}();
|
|
75583
75617
|
/******/ return __webpack_exports__;
|