shineout 3.1.6 → 3.1.8-fix.1
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 +22 -25
- 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
|
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
476
476
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
477
477
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
478
478
|
var _default = exports.default = {
|
|
479
|
-
version: '3.1.
|
|
479
|
+
version: '3.1.8-fix.1'
|
|
480
480
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11949,7 +11949,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11949
11949
|
};
|
|
11950
11950
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11951
11951
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11952
|
-
/* harmony default export */ var version = ('3.1.
|
|
11952
|
+
/* harmony default export */ var version = ('3.1.8-fix.1');
|
|
11953
11953
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11954
11954
|
|
|
11955
11955
|
|
|
@@ -30803,19 +30803,18 @@ function useInputAble(props) {
|
|
|
30803
30803
|
var render = useRender(syncValue);
|
|
30804
30804
|
var shouldUseState = delay || !control;
|
|
30805
30805
|
var value = shouldUseState ? stateValue : valuePo;
|
|
30806
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
30807
|
-
if (context.timer) {
|
|
30808
|
-
clearTimeout(context.timer);
|
|
30809
|
-
context.timer = null;
|
|
30810
|
-
}
|
|
30806
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
30811
30807
|
if (delay && props.value !== stateValue) {
|
|
30812
30808
|
changeStateValue(props.value);
|
|
30809
|
+
} else if (context.timer) {
|
|
30810
|
+
clearTimeout(context.timer);
|
|
30811
|
+
context.timer = null;
|
|
30813
30812
|
}
|
|
30814
30813
|
}, [props.value, delay]);
|
|
30815
30814
|
var forceDelayChange = use_persist_fn(function () {
|
|
30816
|
-
if (context.
|
|
30815
|
+
if (context.delayChange) context.delayChange();
|
|
30816
|
+
if (context.timer) {
|
|
30817
30817
|
clearTimeout(context.timer);
|
|
30818
|
-
context.delayChange();
|
|
30819
30818
|
context.timer = null;
|
|
30820
30819
|
context.delayChange = null;
|
|
30821
30820
|
}
|
|
@@ -33881,18 +33880,14 @@ function castImmutable(value) {
|
|
|
33881
33880
|
}
|
|
33882
33881
|
|
|
33883
33882
|
;// CONCATENATED MODULE: ../hooks/src/utils/immer.ts
|
|
33884
|
-
// import { produce as produce2, getSnapshot } from '@shined/reactive/vanilla';
|
|
33885
|
-
|
|
33886
|
-
// export const produce = ((...args: any) => {
|
|
33887
|
-
// return produce2.apply(null, args);
|
|
33888
|
-
// }) as typeof produce2;
|
|
33889
|
-
|
|
33890
|
-
// export const current = getSnapshot;
|
|
33891
|
-
|
|
33892
33883
|
|
|
33893
33884
|
|
|
33894
|
-
var utils_immer_produce = function produce(
|
|
33895
|
-
|
|
33885
|
+
var utils_immer_produce = function produce() {
|
|
33886
|
+
setAutoFreeze(false);
|
|
33887
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
33888
|
+
args[_key] = arguments[_key];
|
|
33889
|
+
}
|
|
33890
|
+
return immer_produce.apply(null, args);
|
|
33896
33891
|
};
|
|
33897
33892
|
;// CONCATENATED MODULE: ../hooks/src/utils/clone.ts
|
|
33898
33893
|
|
|
@@ -44106,7 +44101,7 @@ var useForm = function useForm(props) {
|
|
|
44106
44101
|
external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect(function () {
|
|
44107
44102
|
context.removeLock = false;
|
|
44108
44103
|
if (props.value === context.lastValue) return;
|
|
44109
|
-
context.value = props.value || emptyObj;
|
|
44104
|
+
context.value = deepClone(props.value) || emptyObj;
|
|
44110
44105
|
if (initValidate && !context.resetTime) {
|
|
44111
44106
|
var keys = Object.keys(context.validateMap).filter(function (key) {
|
|
44112
44107
|
var oldValue = deepGet(context.lastValue || emptyObj, key);
|
|
@@ -53624,7 +53619,7 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
53624
53619
|
clientWidth: 0
|
|
53625
53620
|
}),
|
|
53626
53621
|
context = _useRef.current;
|
|
53627
|
-
var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(
|
|
53622
|
+
var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(undefined),
|
|
53628
53623
|
_React$useState2 = slicedToArray_default()(_React$useState, 2),
|
|
53629
53624
|
isScrollX = _React$useState2[0],
|
|
53630
53625
|
setIsScrollX = _React$useState2[1];
|
|
@@ -53632,7 +53627,7 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
53632
53627
|
_React$useState4 = slicedToArray_default()(_React$useState3, 2),
|
|
53633
53628
|
deltaXSum = _React$useState4[0],
|
|
53634
53629
|
setDeltaXSum = _React$useState4[1];
|
|
53635
|
-
var _React$useState5 = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(
|
|
53630
|
+
var _React$useState5 = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(undefined),
|
|
53636
53631
|
_React$useState6 = slicedToArray_default()(_React$useState5, 2),
|
|
53637
53632
|
isScrollY = _React$useState6[0],
|
|
53638
53633
|
setIsScrollY = _React$useState6[1];
|
|
@@ -53892,7 +53887,8 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
53892
53887
|
syncScrollWidth();
|
|
53893
53888
|
if (scrollRef.current) {
|
|
53894
53889
|
cancelFunc = addResizeObserver(scrollRef.current, handleResize, {
|
|
53895
|
-
direction: true
|
|
53890
|
+
direction: true,
|
|
53891
|
+
timer: 10
|
|
53896
53892
|
});
|
|
53897
53893
|
}
|
|
53898
53894
|
return function () {
|
|
@@ -53912,8 +53908,8 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
53912
53908
|
}
|
|
53913
53909
|
}, [colgroup]);
|
|
53914
53910
|
return {
|
|
53915
|
-
isScrollX: isScrollX,
|
|
53916
|
-
isScrollY: isScrollY,
|
|
53911
|
+
isScrollX: !!isScrollX,
|
|
53912
|
+
isScrollY: !!isScrollY,
|
|
53917
53913
|
floatLeft: floatLeft,
|
|
53918
53914
|
floatRight: floatRight,
|
|
53919
53915
|
scrollBarWidth: scrollBarWidth,
|
|
@@ -58396,6 +58392,7 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
58396
58392
|
jssStyle: jssStyle,
|
|
58397
58393
|
renderItem: renderItem
|
|
58398
58394
|
}, treeProps), {}, {
|
|
58395
|
+
childrenKey: props.childrenKey,
|
|
58399
58396
|
line: line,
|
|
58400
58397
|
mode: mode,
|
|
58401
58398
|
data: tiledData,
|
|
@@ -62039,7 +62036,7 @@ var upload_interface = __webpack_require__(4412);
|
|
|
62039
62036
|
|
|
62040
62037
|
|
|
62041
62038
|
/* harmony default export */ var src_0 = ({
|
|
62042
|
-
version: '3.1.
|
|
62039
|
+
version: '3.1.8-fix.1'
|
|
62043
62040
|
});
|
|
62044
62041
|
}();
|
|
62045
62042
|
/******/ return __webpack_exports__;
|