shineout 3.7.7 → 3.7.8-alpha.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/README-zh_CN.md +1 -1
- package/README.md +1 -1
- package/cjs/index.js +1 -1
- package/dist/shineout.js +128 -59
- 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 +7 -7
package/README-zh_CN.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<p align="center">
|
|
12
12
|
<a href="https://www.npmjs.com/package/shineout"><img src="https://img.shields.io/npm/v/shineout.svg?style=flat-square"></a>
|
|
13
13
|
<a href="https://www.npmjs.com/package/shineout"><img src="https://img.shields.io/npm/dm/shineout.svg?style=flat-square"></a>
|
|
14
|
-
<img src="https://img.shields.io/badge/React-%3E%3D16.
|
|
14
|
+
<img src="https://img.shields.io/badge/React-%3E%3D16.14.0-green.svg?style=flat-square">
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
17
|
## ✨ 特性
|
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ English | [简体中文](./README-zh_CN.md)
|
|
|
11
11
|
<p align="center">
|
|
12
12
|
<a href="https://www.npmjs.com/package/shineout"><img src="https://img.shields.io/npm/v/shineout.svg?style=flat-square"></a>
|
|
13
13
|
<a href="https://www.npmjs.com/package/shineout"><img src="https://img.shields.io/npm/dm/shineout.svg?style=flat-square"></a>
|
|
14
|
-
<img src="https://img.shields.io/badge/React-%3E%3D16.
|
|
14
|
+
<img src="https://img.shields.io/badge/React-%3E%3D16.14.0-green.svg?style=flat-square">
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
17
|
## ✨ Features
|
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.7.
|
|
525
|
+
version: '3.7.8-alpha.1'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12234
12234
|
};
|
|
12235
12235
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12236
12236
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12237
|
-
/* harmony default export */ var version = ('3.7.
|
|
12237
|
+
/* harmony default export */ var version = ('3.7.8-alpha.1');
|
|
12238
12238
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12239
12239
|
|
|
12240
12240
|
|
|
@@ -23692,7 +23692,6 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
23692
23692
|
height: 32,
|
|
23693
23693
|
padding: "".concat(src.selectHeaderPaddingY, " ").concat(src.selectHeaderPaddingX),
|
|
23694
23694
|
borderBottom: "1px solid ".concat(src.selectHeaderBorderColor),
|
|
23695
|
-
marginBottom: 4,
|
|
23696
23695
|
'& $columnsCheckbox': {
|
|
23697
23696
|
marginRight: 0,
|
|
23698
23697
|
marginLeft: 4,
|
|
@@ -30411,20 +30410,20 @@ var usePopup = function usePopup(props) {
|
|
|
30411
30410
|
}
|
|
30412
30411
|
};
|
|
30413
30412
|
var handleMouseEnter = use_persist_fn(function (e) {
|
|
30414
|
-
var _targetEvents$onMouse, _targetRef$current;
|
|
30413
|
+
var _targetEvents$onMouse, _targetRef$current, _popupRef$current2;
|
|
30415
30414
|
targetEvents === null || targetEvents === void 0 || (_targetEvents$onMouse = targetEvents.onMouseEnter) === null || _targetEvents$onMouse === void 0 || _targetEvents$onMouse.call(targetEvents, e);
|
|
30416
30415
|
if (trigger !== 'hover') return;
|
|
30417
30416
|
var isParentContainsCurrent = (_targetRef$current = targetRef.current) === null || _targetRef$current === void 0 ? void 0 : _targetRef$current.contains(e.target);
|
|
30418
|
-
if (isParentContainsCurrent) {
|
|
30417
|
+
if (isParentContainsCurrent || popupRef !== null && popupRef !== void 0 && (_popupRef$current2 = popupRef.current) !== null && _popupRef$current2 !== void 0 && _popupRef$current2.contains(e.target)) {
|
|
30419
30418
|
handleHoverToggle(true);
|
|
30420
30419
|
}
|
|
30421
30420
|
});
|
|
30422
30421
|
var handleMouseLeave = use_persist_fn(function (e) {
|
|
30423
|
-
var _targetEvents$onMouse2, _popupRef$
|
|
30422
|
+
var _targetEvents$onMouse2, _popupRef$current3;
|
|
30424
30423
|
targetEvents === null || targetEvents === void 0 || (_targetEvents$onMouse2 = targetEvents.onMouseLeave) === null || _targetEvents$onMouse2 === void 0 || _targetEvents$onMouse2.call(targetEvents, e);
|
|
30425
30424
|
if (trigger !== 'hover') return;
|
|
30426
30425
|
// @ts-ignore
|
|
30427
|
-
if (e.relatedTarget instanceof HTMLElement && (_popupRef$
|
|
30426
|
+
if (e.relatedTarget instanceof HTMLElement && (_popupRef$current3 = popupRef.current) !== null && _popupRef$current3 !== void 0 && _popupRef$current3.contains(e.relatedTarget)) {
|
|
30428
30427
|
return;
|
|
30429
30428
|
}
|
|
30430
30429
|
handleHoverToggle(false);
|
|
@@ -31081,6 +31080,23 @@ var getCurrentCSSZoom = function getCurrentCSSZoom() {
|
|
|
31081
31080
|
// height: rect.height * zoomRatio,
|
|
31082
31081
|
// }
|
|
31083
31082
|
// }
|
|
31083
|
+
|
|
31084
|
+
var getScrollPosition = function getScrollPosition(element) {
|
|
31085
|
+
if (!element) return {
|
|
31086
|
+
scrollTop: 0,
|
|
31087
|
+
scrollLeft: 0
|
|
31088
|
+
};
|
|
31089
|
+
if (element === document.documentElement || element === document.body) {
|
|
31090
|
+
return {
|
|
31091
|
+
scrollTop: document.documentElement.scrollTop || document.body.scrollTop,
|
|
31092
|
+
scrollLeft: document.documentElement.scrollLeft || document.body.scrollLeft
|
|
31093
|
+
};
|
|
31094
|
+
}
|
|
31095
|
+
return {
|
|
31096
|
+
scrollTop: element.scrollTop,
|
|
31097
|
+
scrollLeft: element.scrollLeft
|
|
31098
|
+
};
|
|
31099
|
+
};
|
|
31084
31100
|
;// CONCATENATED MODULE: ../hooks/src/common/use-position-style/index.ts
|
|
31085
31101
|
|
|
31086
31102
|
|
|
@@ -31324,17 +31340,18 @@ var usePositionStyle = function usePositionStyle(config) {
|
|
|
31324
31340
|
};
|
|
31325
31341
|
};
|
|
31326
31342
|
var getAbsoluteStyle = function getAbsoluteStyle(position) {
|
|
31327
|
-
var _scrollElRef$current
|
|
31343
|
+
var _scrollElRef$current;
|
|
31328
31344
|
if (!parentElRef.current) return {
|
|
31329
31345
|
style: hideStyle
|
|
31330
31346
|
};
|
|
31331
31347
|
var rect = context.parentRect;
|
|
31332
31348
|
var needCheck = !show || !shallow_equal(context.prevParentPosition, parentElNewPosition);
|
|
31333
|
-
var
|
|
31334
|
-
|
|
31335
|
-
|
|
31336
|
-
|
|
31337
|
-
var
|
|
31349
|
+
var _getScrollPosition = getScrollPosition(scrollElRef === null || scrollElRef === void 0 ? void 0 : scrollElRef.current),
|
|
31350
|
+
scrollTop = _getScrollPosition.scrollTop,
|
|
31351
|
+
scrollLeft = _getScrollPosition.scrollLeft;
|
|
31352
|
+
if (needCheck && scrollElRef !== null && scrollElRef !== void 0 && scrollElRef.current && (_scrollElRef$current = scrollElRef.current) !== null && _scrollElRef$current !== void 0 && _scrollElRef$current.contains(parentElRef.current)) {
|
|
31353
|
+
var _scrollElRef$current2;
|
|
31354
|
+
var visibleRect = ((_scrollElRef$current2 = scrollElRef.current) === null || _scrollElRef$current2 === void 0 ? void 0 : _scrollElRef$current2.getBoundingClientRect()) || {};
|
|
31338
31355
|
if (rect.bottom < visibleRect.top || rect.top > visibleRect.bottom + scrollTop || rect.right < visibleRect.left || rect.left > visibleRect.right + scrollLeft) {
|
|
31339
31356
|
return {
|
|
31340
31357
|
style: hideStyle
|
|
@@ -31408,7 +31425,9 @@ var usePositionStyle = function usePositionStyle(config) {
|
|
|
31408
31425
|
}
|
|
31409
31426
|
|
|
31410
31427
|
// 当父元素的滚动容器滚动时,判断是否需要更新弹出层位置,包括是否隐藏弹出层(通过hideStyle隐藏,不是show状态)
|
|
31411
|
-
|
|
31428
|
+
if (show) {
|
|
31429
|
+
context.prevParentPosition = parentElNewPosition;
|
|
31430
|
+
}
|
|
31412
31431
|
});
|
|
31413
31432
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(updateStyle, [show, position, absolute, updateKey, fixedWidth, parentElNewPosition, popupElSize]);
|
|
31414
31433
|
return {
|
|
@@ -35799,6 +35818,9 @@ function useInputAble(props) {
|
|
|
35799
35818
|
var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
|
|
35800
35819
|
timer: null,
|
|
35801
35820
|
delayChange: null
|
|
35821
|
+
// pendingCount: 0,
|
|
35822
|
+
// executedCount: 0,
|
|
35823
|
+
// checkTimer: null,
|
|
35802
35824
|
}),
|
|
35803
35825
|
context = _useRef.current;
|
|
35804
35826
|
var latest = useLatestObj({
|
|
@@ -35823,12 +35845,18 @@ function useInputAble(props) {
|
|
|
35823
35845
|
}
|
|
35824
35846
|
}, [props.value, delay, control]);
|
|
35825
35847
|
var forceDelayChange = use_persist_fn(function () {
|
|
35848
|
+
// if (context.checkTimer) {
|
|
35849
|
+
// clearTimeout(context.checkTimer);
|
|
35850
|
+
// context.checkTimer = null;
|
|
35851
|
+
// }
|
|
35826
35852
|
if (context.timer && context.delayChange) {
|
|
35827
35853
|
clearTimeout(context.timer);
|
|
35828
35854
|
context.delayChange();
|
|
35829
35855
|
context.timer = null;
|
|
35830
35856
|
context.delayChange = null;
|
|
35831
35857
|
}
|
|
35858
|
+
// context.pendingCount = 0;
|
|
35859
|
+
// context.executedCount = 0;
|
|
35832
35860
|
});
|
|
35833
35861
|
var handleChange = use_persist_fn(function (v) {
|
|
35834
35862
|
for (var _len = arguments.length, other = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -35852,14 +35880,26 @@ function useInputAble(props) {
|
|
|
35852
35880
|
context.delayChange = function () {
|
|
35853
35881
|
context.timer = null;
|
|
35854
35882
|
context.delayChange = null;
|
|
35883
|
+
// context.executedCount++;
|
|
35855
35884
|
onChange.apply(void 0, [vv].concat(other));
|
|
35856
35885
|
render();
|
|
35857
35886
|
};
|
|
35858
|
-
if (!delay) {
|
|
35887
|
+
if (!delay || props.forceSyncInputValue) {
|
|
35859
35888
|
onChange.apply(void 0, [vv].concat(other));
|
|
35860
35889
|
} else {
|
|
35890
|
+
// const currentPendingCount = ++context.pendingCount;
|
|
35861
35891
|
if (context.timer) clearTimeout(context.timer);
|
|
35862
35892
|
context.timer = setTimeout(context.delayChange, delay);
|
|
35893
|
+
|
|
35894
|
+
// 设置检查定时器,在 delay 之后检查是否有丢失的 delayChange
|
|
35895
|
+
// if (context.checkTimer) clearTimeout(context.checkTimer);
|
|
35896
|
+
// context.checkTimer = setTimeout(() => {
|
|
35897
|
+
// const missedCount = currentPendingCount - context.executedCount;
|
|
35898
|
+
// if (missedCount > 0 && context.delayChange && valuePo !== vv) {
|
|
35899
|
+
// context.delayChange();
|
|
35900
|
+
// }
|
|
35901
|
+
// context.checkTimer = null;
|
|
35902
|
+
// }, delay + 50);
|
|
35863
35903
|
}
|
|
35864
35904
|
});
|
|
35865
35905
|
return {
|
|
@@ -36736,12 +36776,14 @@ var useWithFormConfig = function useWithFormConfig(props) {
|
|
|
36736
36776
|
var formConfig = useFormConfig();
|
|
36737
36777
|
var size = (props === null || props === void 0 ? void 0 : props.size) || formConfig.size;
|
|
36738
36778
|
var disabled = formConfig.disabled || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
36739
|
-
return objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, props), size !== undefined && {
|
|
36779
|
+
return objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, props), size !== undefined && {
|
|
36740
36780
|
size: size
|
|
36741
36781
|
}), disabled !== undefined && {
|
|
36742
36782
|
disabled: disabled
|
|
36743
36783
|
}), formConfig.formName !== undefined && {
|
|
36744
36784
|
formName: formConfig.formName
|
|
36785
|
+
}), {}, {
|
|
36786
|
+
forceSyncInputValue: formConfig.forceSyncInputValue
|
|
36745
36787
|
});
|
|
36746
36788
|
};
|
|
36747
36789
|
/* harmony default export */ var use_with_form_config = (useWithFormConfig);
|
|
@@ -36820,7 +36862,8 @@ var useInputCommon = function useInputCommon(props0) {
|
|
|
36820
36862
|
onChange: onChange,
|
|
36821
36863
|
defaultValue: defaultValue,
|
|
36822
36864
|
beforeChange: beforeChange,
|
|
36823
|
-
delay: delay
|
|
36865
|
+
delay: delay,
|
|
36866
|
+
forceSyncInputValue: props.forceSyncInputValue
|
|
36824
36867
|
});
|
|
36825
36868
|
var hasValue = function hasValue(value) {
|
|
36826
36869
|
return isNumber(value) && !isNan(value) || value && value.length;
|
|
@@ -39572,9 +39615,9 @@ var useTree = function useTree(props) {
|
|
|
39572
39615
|
var _context$value;
|
|
39573
39616
|
if (mode !== MODE.MODE_0) return;
|
|
39574
39617
|
(_context$value = context.value) === null || _context$value === void 0 || _context$value.forEach(function (id) {
|
|
39575
|
-
var
|
|
39576
|
-
|
|
39577
|
-
if (children.length) {
|
|
39618
|
+
var node = context.pathMap.get(id);
|
|
39619
|
+
var children = node === null || node === void 0 ? void 0 : node.children;
|
|
39620
|
+
if (children && children.length) {
|
|
39578
39621
|
var noCheckedChildren = children.filter(function (cid) {
|
|
39579
39622
|
var _context$value2;
|
|
39580
39623
|
return !((_context$value2 = context.value) !== null && _context$value2 !== void 0 && _context$value2.includes(cid));
|
|
@@ -40058,7 +40101,8 @@ var VirtualList = function VirtualList(props) {
|
|
|
40058
40101
|
preIndex: null,
|
|
40059
40102
|
topTimer: null,
|
|
40060
40103
|
rateTimer: null,
|
|
40061
|
-
shouldUpdateHeight: true
|
|
40104
|
+
shouldUpdateHeight: true,
|
|
40105
|
+
prevWrapperRefHeight: 0
|
|
40062
40106
|
}),
|
|
40063
40107
|
context = _useRef.current;
|
|
40064
40108
|
var getContentHeight = function getContentHeight(index) {
|
|
@@ -40218,11 +40262,14 @@ var VirtualList = function VirtualList(props) {
|
|
|
40218
40262
|
context.preIndex = startIndex;
|
|
40219
40263
|
}, [startIndex]);
|
|
40220
40264
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
40221
|
-
|
|
40265
|
+
var _wrapperRef$current2;
|
|
40266
|
+
var currentWrapperRefHeight = ((_wrapperRef$current2 = wrapperRef.current) === null || _wrapperRef$current2 === void 0 ? void 0 : _wrapperRef$current2.clientHeight) || 0;
|
|
40267
|
+
if (keepScrollHeight && currentWrapperRefHeight === context.prevWrapperRefHeight) return;
|
|
40222
40268
|
if (keepScrollTop) return;
|
|
40223
40269
|
// 数据变化的时候清空掉 preIndex, 如果之前有缓存的index, setRowHeight 会有问题
|
|
40224
40270
|
setTop(0);
|
|
40225
40271
|
setStartIndex(0);
|
|
40272
|
+
context.prevWrapperRefHeight = currentWrapperRefHeight;
|
|
40226
40273
|
return function () {
|
|
40227
40274
|
context.preIndex = null;
|
|
40228
40275
|
};
|
|
@@ -41392,25 +41439,44 @@ function getResetMore(onFilter, container, doms) {
|
|
|
41392
41439
|
var hideMargin = parsePxToNumber(hideElStyle.marginLeft) + parsePxToNumber(hideElStyle.marginRight);
|
|
41393
41440
|
var num = 0;
|
|
41394
41441
|
var sumWidth = 0;
|
|
41395
|
-
|
|
41396
|
-
var
|
|
41397
|
-
var
|
|
41398
|
-
|
|
41399
|
-
|
|
41400
|
-
|
|
41401
|
-
|
|
41402
|
-
if (resetNum > 0) {
|
|
41403
|
-
var reset = "+".concat(resetNum);
|
|
41404
|
-
hideEl.childNodes[0].innerText = reset;
|
|
41405
|
-
moreWidth = hideEl.offsetWidth + hideMargin;
|
|
41406
|
-
}
|
|
41407
|
-
if (sumWidth > contentWidth - moreWidth) {
|
|
41408
|
-
num = i;
|
|
41409
|
-
break;
|
|
41410
|
-
}
|
|
41442
|
+
var itemWidthArr = items.map(function (item) {
|
|
41443
|
+
var itemStyle = getComputedStyle(item);
|
|
41444
|
+
var itemLen = item.offsetWidth + parsePxToNumber(itemStyle.marginLeft) + parsePxToNumber(itemStyle.marginRight);
|
|
41445
|
+
sumWidth += itemLen;
|
|
41446
|
+
return itemLen;
|
|
41447
|
+
});
|
|
41448
|
+
if (sumWidth <= contentWidth) {
|
|
41411
41449
|
num = -1;
|
|
41450
|
+
} else {
|
|
41451
|
+
var len = 0;
|
|
41452
|
+
for (var i = 0; i < itemWidthArr.length; i++) {
|
|
41453
|
+
var itemLen = itemWidthArr[i];
|
|
41454
|
+
// number length
|
|
41455
|
+
var resetNum = items.length - 1 - i;
|
|
41456
|
+
var moreWidth = void 0;
|
|
41457
|
+
if (resetNum <= 0) {
|
|
41458
|
+
moreWidth = 0;
|
|
41459
|
+
} else {
|
|
41460
|
+
var reset = "+".concat(resetNum);
|
|
41461
|
+
hideEl.childNodes[0].innerText = reset;
|
|
41462
|
+
// (+num) width
|
|
41463
|
+
moreWidth = hideEl.offsetWidth + hideMargin;
|
|
41464
|
+
}
|
|
41465
|
+
len += itemLen;
|
|
41466
|
+
if (len > contentWidth - moreWidth) {
|
|
41467
|
+
break;
|
|
41468
|
+
}
|
|
41469
|
+
num += 1;
|
|
41470
|
+
if (i === items.length - 1) {
|
|
41471
|
+
// not show more
|
|
41472
|
+
num = -1;
|
|
41473
|
+
}
|
|
41474
|
+
}
|
|
41475
|
+
}
|
|
41476
|
+
// at least show one
|
|
41477
|
+
if (num === 0 && itemWidthArr[0]) {
|
|
41478
|
+
num = 1;
|
|
41412
41479
|
}
|
|
41413
|
-
;
|
|
41414
41480
|
return num;
|
|
41415
41481
|
}
|
|
41416
41482
|
var More = function More(props) {
|
|
@@ -42522,8 +42588,8 @@ var Cascader = function Cascader(props0) {
|
|
|
42522
42588
|
}
|
|
42523
42589
|
}, [data]);
|
|
42524
42590
|
|
|
42525
|
-
//
|
|
42526
|
-
if (openProp && !shallowEqual(value, datum.getValue())) {
|
|
42591
|
+
// 修复外部受控打开或renderOptionList做全选的场景下,从外部修改value导致的面板勾选情况没有及时同步
|
|
42592
|
+
if ((openProp || props.renderOptionList) && !shallowEqual(value, datum.getValue())) {
|
|
42527
42593
|
datum.setValue(value);
|
|
42528
42594
|
}
|
|
42529
42595
|
;
|
|
@@ -42532,9 +42598,6 @@ var Cascader = function Cascader(props0) {
|
|
|
42532
42598
|
datum.setValue(value);
|
|
42533
42599
|
if (!open) return;
|
|
42534
42600
|
updatePathByValue();
|
|
42535
|
-
if (props.renderOptionList) {
|
|
42536
|
-
updatePath();
|
|
42537
|
-
}
|
|
42538
42601
|
}, [value, open]);
|
|
42539
42602
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
42540
42603
|
if (filterText !== undefined) {
|
|
@@ -45939,7 +46002,9 @@ var useTime = function useTime(props) {
|
|
|
45939
46002
|
_props$secondStep = props.secondStep,
|
|
45940
46003
|
secondStep = _props$secondStep === void 0 ? 1 : _props$secondStep,
|
|
45941
46004
|
staticMin = props.staticMin,
|
|
45942
|
-
staticMax = props.staticMax
|
|
46005
|
+
staticMax = props.staticMax,
|
|
46006
|
+
position = props.position,
|
|
46007
|
+
rangeDate = props.rangeDate;
|
|
45943
46008
|
var min = util.resetTimeByFormat(mi, format, options);
|
|
45944
46009
|
var max = util.resetTimeByFormat(ma, format, options);
|
|
45945
46010
|
var current = props.value || util.newDate(undefined, options);
|
|
@@ -45965,7 +46030,7 @@ var useTime = function useTime(props) {
|
|
|
45965
46030
|
disabledTime = props.disabledTime;
|
|
45966
46031
|
if (disabledTime) {
|
|
45967
46032
|
var _time = util.format(date, util.TIME_FORMAT, options);
|
|
45968
|
-
if (typeof disabledTime === 'function') return disabledTime(_time);
|
|
46033
|
+
if (typeof disabledTime === 'function') return disabledTime(_time, position, rangeDate === null || rangeDate === void 0 ? void 0 : rangeDate[0], rangeDate === null || rangeDate === void 0 ? void 0 : rangeDate[1]);
|
|
45969
46034
|
return disabledTime === _time;
|
|
45970
46035
|
}
|
|
45971
46036
|
var isDis = disabled && typeof disabled === 'function' ? disabled(date) : false;
|
|
@@ -46316,7 +46381,9 @@ var Time = function Time(props) {
|
|
|
46316
46381
|
disabledTime: props.disabledTime,
|
|
46317
46382
|
hourStep: props.hourStep,
|
|
46318
46383
|
minuteStep: props.minuteStep,
|
|
46319
|
-
secondStep: props.secondStep
|
|
46384
|
+
secondStep: props.secondStep,
|
|
46385
|
+
position: props.position,
|
|
46386
|
+
rangeDate: props.rangeDate
|
|
46320
46387
|
}),
|
|
46321
46388
|
func = _useTimePick.func,
|
|
46322
46389
|
times = _useTimePick.times;
|
|
@@ -50644,7 +50711,8 @@ var useForm = function useForm(props) {
|
|
|
50644
50711
|
colon = props.colon,
|
|
50645
50712
|
formName = props.name,
|
|
50646
50713
|
scrollParent = props.scrollParent,
|
|
50647
|
-
isControl = props.isControl
|
|
50714
|
+
isControl = props.isControl,
|
|
50715
|
+
forceSyncInputValue = props.forceSyncInputValue;
|
|
50648
50716
|
var deepSetOptions = {
|
|
50649
50717
|
removeUndefined: removeUndefined,
|
|
50650
50718
|
forceSet: true
|
|
@@ -50831,7 +50899,7 @@ var useForm = function useForm(props) {
|
|
|
50831
50899
|
var _props$onChange;
|
|
50832
50900
|
var newValue = typeof change === 'function' ? utils_immer_produce(context.value, change) : change;
|
|
50833
50901
|
context.value = newValue;
|
|
50834
|
-
(_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props,
|
|
50902
|
+
(_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, newValue);
|
|
50835
50903
|
});
|
|
50836
50904
|
var scrollToField = use_persist_fn(function (name) {
|
|
50837
50905
|
var _document;
|
|
@@ -51185,7 +51253,8 @@ var useForm = function useForm(props) {
|
|
|
51185
51253
|
disabled: disabled,
|
|
51186
51254
|
size: size,
|
|
51187
51255
|
formName: formName,
|
|
51188
|
-
colon: colon
|
|
51256
|
+
colon: colon,
|
|
51257
|
+
forceSyncInputValue: !!forceSyncInputValue
|
|
51189
51258
|
};
|
|
51190
51259
|
}, [labelWidth, labelAlign, labelVerticalAlign, keepErrorHeight, inline, disabled, size, formName, colon]);
|
|
51191
51260
|
var updateValue = function updateValue() {
|
|
@@ -51211,11 +51280,6 @@ var useForm = function useForm(props) {
|
|
|
51211
51280
|
// 默认值更新
|
|
51212
51281
|
external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect(function () {
|
|
51213
51282
|
context.removeLock = false;
|
|
51214
|
-
// 内部 onChange 改的 value, 不需要更新
|
|
51215
|
-
if (props.value === context.value) {
|
|
51216
|
-
if (!isControl) update();
|
|
51217
|
-
return;
|
|
51218
|
-
}
|
|
51219
51283
|
if (initValidate && !context.resetTime) {
|
|
51220
51284
|
var keys = Object.keys(context.validateMap).filter(function (key) {
|
|
51221
51285
|
var oldValue = deepGet(preValue || emptyObj, key);
|
|
@@ -51225,6 +51289,7 @@ var useForm = function useForm(props) {
|
|
|
51225
51289
|
validateFields(keys).catch(function () {});
|
|
51226
51290
|
}
|
|
51227
51291
|
update();
|
|
51292
|
+
if (!isControl) return;
|
|
51228
51293
|
// 默认值上位时会提前触发外部的onChange, 导致外部的多次setFormValue不能合并后生效的问题(ReactDOM.render方式渲染)
|
|
51229
51294
|
setTimeout(updateDefaultValue);
|
|
51230
51295
|
context.resetTime = 0;
|
|
@@ -55373,7 +55438,8 @@ var VirtualNode = function VirtualNode(props) {
|
|
|
55373
55438
|
className: rootClass,
|
|
55374
55439
|
dir: config.direction,
|
|
55375
55440
|
style: {
|
|
55376
|
-
paddingLeft: level * indent
|
|
55441
|
+
paddingLeft: level * indent,
|
|
55442
|
+
height: props.lineHeight
|
|
55377
55443
|
},
|
|
55378
55444
|
children: [$indents, /*#__PURE__*/(0,jsx_runtime.jsx)(tree_content, {
|
|
55379
55445
|
virtual: true,
|
|
@@ -55657,7 +55723,8 @@ var TreeVirtual = function TreeVirtual(props) {
|
|
|
55657
55723
|
onNodeClick: onNodeClick,
|
|
55658
55724
|
onToggle: onToggle,
|
|
55659
55725
|
onChange: onChange,
|
|
55660
|
-
size: datum.size
|
|
55726
|
+
size: datum.size,
|
|
55727
|
+
lineHeight: lineHeight
|
|
55661
55728
|
}, id);
|
|
55662
55729
|
};
|
|
55663
55730
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_list, {
|
|
@@ -56340,7 +56407,8 @@ var ColumnsList = function ColumnsList(props) {
|
|
|
56340
56407
|
colNum: columns,
|
|
56341
56408
|
lineHeight: lineHeight,
|
|
56342
56409
|
rowsInView: itemsInView,
|
|
56343
|
-
renderItem: renderItem
|
|
56410
|
+
renderItem: renderItem,
|
|
56411
|
+
paddingY: 4
|
|
56344
56412
|
});
|
|
56345
56413
|
};
|
|
56346
56414
|
var renderSelectAll = function renderSelectAll() {
|
|
@@ -56741,7 +56809,8 @@ function Select(props0) {
|
|
|
56741
56809
|
if (hideCreate) {
|
|
56742
56810
|
// optionListRef.current?.hoverMove(filterData.length - 1, true);
|
|
56743
56811
|
}
|
|
56744
|
-
|
|
56812
|
+
// onFilter?.(trim ? text.trim() : text, from);
|
|
56813
|
+
onFilter === null || onFilter === void 0 || onFilter(text.trim(), from);
|
|
56745
56814
|
};
|
|
56746
56815
|
var handleOptionClick = function handleOptionClick() {
|
|
56747
56816
|
if (multiple) return;
|
|
@@ -71838,7 +71907,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
71838
71907
|
|
|
71839
71908
|
|
|
71840
71909
|
/* harmony default export */ var src_0 = ({
|
|
71841
|
-
version: '3.7.
|
|
71910
|
+
version: '3.7.8-alpha.1'
|
|
71842
71911
|
});
|
|
71843
71912
|
}();
|
|
71844
71913
|
/******/ return __webpack_exports__;
|