shineout 3.1.6 → 3.1.8
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 +16 -18
- 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'
|
|
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');
|
|
11953
11953
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11954
11954
|
|
|
11955
11955
|
|
|
@@ -33881,18 +33881,14 @@ function castImmutable(value) {
|
|
|
33881
33881
|
}
|
|
33882
33882
|
|
|
33883
33883
|
;// CONCATENATED MODULE: ../hooks/src/utils/immer.ts
|
|
33884
|
-
// import { produce as produce2, getSnapshot } from '@shined/reactive/vanilla';
|
|
33885
33884
|
|
|
33886
|
-
// export const produce = ((...args: any) => {
|
|
33887
|
-
// return produce2.apply(null, args);
|
|
33888
|
-
// }) as typeof produce2;
|
|
33889
33885
|
|
|
33890
|
-
|
|
33891
|
-
|
|
33892
|
-
|
|
33893
|
-
|
|
33894
|
-
|
|
33895
|
-
return immer_produce(
|
|
33886
|
+
var utils_immer_produce = function produce() {
|
|
33887
|
+
setAutoFreeze(false);
|
|
33888
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
33889
|
+
args[_key] = arguments[_key];
|
|
33890
|
+
}
|
|
33891
|
+
return immer_produce.apply(null, args);
|
|
33896
33892
|
};
|
|
33897
33893
|
;// CONCATENATED MODULE: ../hooks/src/utils/clone.ts
|
|
33898
33894
|
|
|
@@ -44106,7 +44102,7 @@ var useForm = function useForm(props) {
|
|
|
44106
44102
|
external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect(function () {
|
|
44107
44103
|
context.removeLock = false;
|
|
44108
44104
|
if (props.value === context.lastValue) return;
|
|
44109
|
-
context.value = props.value || emptyObj;
|
|
44105
|
+
context.value = deepClone(props.value) || emptyObj;
|
|
44110
44106
|
if (initValidate && !context.resetTime) {
|
|
44111
44107
|
var keys = Object.keys(context.validateMap).filter(function (key) {
|
|
44112
44108
|
var oldValue = deepGet(context.lastValue || emptyObj, key);
|
|
@@ -53624,7 +53620,7 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
53624
53620
|
clientWidth: 0
|
|
53625
53621
|
}),
|
|
53626
53622
|
context = _useRef.current;
|
|
53627
|
-
var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(
|
|
53623
|
+
var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(undefined),
|
|
53628
53624
|
_React$useState2 = slicedToArray_default()(_React$useState, 2),
|
|
53629
53625
|
isScrollX = _React$useState2[0],
|
|
53630
53626
|
setIsScrollX = _React$useState2[1];
|
|
@@ -53632,7 +53628,7 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
53632
53628
|
_React$useState4 = slicedToArray_default()(_React$useState3, 2),
|
|
53633
53629
|
deltaXSum = _React$useState4[0],
|
|
53634
53630
|
setDeltaXSum = _React$useState4[1];
|
|
53635
|
-
var _React$useState5 = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(
|
|
53631
|
+
var _React$useState5 = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(undefined),
|
|
53636
53632
|
_React$useState6 = slicedToArray_default()(_React$useState5, 2),
|
|
53637
53633
|
isScrollY = _React$useState6[0],
|
|
53638
53634
|
setIsScrollY = _React$useState6[1];
|
|
@@ -53892,7 +53888,8 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
53892
53888
|
syncScrollWidth();
|
|
53893
53889
|
if (scrollRef.current) {
|
|
53894
53890
|
cancelFunc = addResizeObserver(scrollRef.current, handleResize, {
|
|
53895
|
-
direction: true
|
|
53891
|
+
direction: true,
|
|
53892
|
+
timer: 10
|
|
53896
53893
|
});
|
|
53897
53894
|
}
|
|
53898
53895
|
return function () {
|
|
@@ -53912,8 +53909,8 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
53912
53909
|
}
|
|
53913
53910
|
}, [colgroup]);
|
|
53914
53911
|
return {
|
|
53915
|
-
isScrollX: isScrollX,
|
|
53916
|
-
isScrollY: isScrollY,
|
|
53912
|
+
isScrollX: !!isScrollX,
|
|
53913
|
+
isScrollY: !!isScrollY,
|
|
53917
53914
|
floatLeft: floatLeft,
|
|
53918
53915
|
floatRight: floatRight,
|
|
53919
53916
|
scrollBarWidth: scrollBarWidth,
|
|
@@ -58396,6 +58393,7 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
58396
58393
|
jssStyle: jssStyle,
|
|
58397
58394
|
renderItem: renderItem
|
|
58398
58395
|
}, treeProps), {}, {
|
|
58396
|
+
childrenKey: props.childrenKey,
|
|
58399
58397
|
line: line,
|
|
58400
58398
|
mode: mode,
|
|
58401
58399
|
data: tiledData,
|
|
@@ -62039,7 +62037,7 @@ var upload_interface = __webpack_require__(4412);
|
|
|
62039
62037
|
|
|
62040
62038
|
|
|
62041
62039
|
/* harmony default export */ var src_0 = ({
|
|
62042
|
-
version: '3.1.
|
|
62040
|
+
version: '3.1.8'
|
|
62043
62041
|
});
|
|
62044
62042
|
}();
|
|
62045
62043
|
/******/ return __webpack_exports__;
|