shineout 3.4.0-beta.6 → 3.4.0-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 +29 -10
- 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
|
@@ -492,5 +492,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
492
492
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
493
493
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
494
494
|
var _default = exports.default = {
|
|
495
|
-
version: '3.4.0-beta.
|
|
495
|
+
version: '3.4.0-beta.7'
|
|
496
496
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11991,7 +11991,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11991
11991
|
};
|
|
11992
11992
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11993
11993
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11994
|
-
/* harmony default export */ var version = ('3.4.0-beta.
|
|
11994
|
+
/* harmony default export */ var version = ('3.4.0-beta.7');
|
|
11995
11995
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11996
11996
|
|
|
11997
11997
|
|
|
@@ -28302,7 +28302,7 @@ function useForkRef() {
|
|
|
28302
28302
|
|
|
28303
28303
|
|
|
28304
28304
|
|
|
28305
|
-
var animation_list_excluded = ["display", "children", "style", "onRef", "show", "duration", "type", "className", "animation"];
|
|
28305
|
+
var animation_list_excluded = ["display", "children", "style", "onRef", "show", "duration", "type", "className", "animation", "onAnimationAfterEnter"];
|
|
28306
28306
|
|
|
28307
28307
|
|
|
28308
28308
|
|
|
@@ -28329,6 +28329,7 @@ var AnimationList = function AnimationList(props) {
|
|
|
28329
28329
|
classNamePo = props.className,
|
|
28330
28330
|
_props$animation = props.animation,
|
|
28331
28331
|
animation = _props$animation === void 0 ? true : _props$animation,
|
|
28332
|
+
onAnimationAfterEnter = props.onAnimationAfterEnter,
|
|
28332
28333
|
forwardProps = objectWithoutProperties_default()(props, animation_list_excluded);
|
|
28333
28334
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(undefined),
|
|
28334
28335
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
@@ -28446,6 +28447,7 @@ var AnimationList = function AnimationList(props) {
|
|
|
28446
28447
|
return objectSpread2_default()(objectSpread2_default()({}, s), newStyle);
|
|
28447
28448
|
});
|
|
28448
28449
|
setStatus('afterEnter');
|
|
28450
|
+
onAnimationAfterEnter === null || onAnimationAfterEnter === void 0 || onAnimationAfterEnter();
|
|
28449
28451
|
};
|
|
28450
28452
|
var beforeLeave = function beforeLeave() {
|
|
28451
28453
|
var el = ref.current;
|
|
@@ -28542,7 +28544,7 @@ var AnimationList = function AnimationList(props) {
|
|
|
28542
28544
|
cleanTimer();
|
|
28543
28545
|
context.timer = setTimeout(function () {
|
|
28544
28546
|
afterEnter();
|
|
28545
|
-
}, durationNum);
|
|
28547
|
+
}, durationNum + mm);
|
|
28546
28548
|
}
|
|
28547
28549
|
if (status === 'beforeLeave') {
|
|
28548
28550
|
cleanTimer();
|
|
@@ -49372,6 +49374,7 @@ var ListOption = function ListOption(props) {
|
|
|
49372
49374
|
isHover = props.isHover,
|
|
49373
49375
|
renderItem = props.renderItem,
|
|
49374
49376
|
dynamicVirtual = props.dynamicVirtual,
|
|
49377
|
+
isAnimationFinish = props.isAnimationFinish,
|
|
49375
49378
|
onHover = props.onHover,
|
|
49376
49379
|
onOptionClick = props.onOptionClick;
|
|
49377
49380
|
var optionRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
@@ -49409,7 +49412,10 @@ var ListOption = function ListOption(props) {
|
|
|
49409
49412
|
};
|
|
49410
49413
|
var result = renderItem(data);
|
|
49411
49414
|
var title = typeof result === 'string' ? result : '';
|
|
49412
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(
|
|
49415
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
49416
|
+
if (!isAnimationFinish) return;
|
|
49417
|
+
setVirtualRowHeight();
|
|
49418
|
+
}, [isAnimationFinish]);
|
|
49413
49419
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
49414
49420
|
if (!optionRef.current) return;
|
|
49415
49421
|
var cancelObserver = addResizeObserver(optionRef.current, setVirtualRowHeight, {
|
|
@@ -49462,6 +49468,7 @@ var list_List = function List(props) {
|
|
|
49462
49468
|
controlType = props.controlType,
|
|
49463
49469
|
hideCreateOption = props.hideCreateOption,
|
|
49464
49470
|
optionListRef = props.optionListRef,
|
|
49471
|
+
isAnimationFinish = props.isAnimationFinish,
|
|
49465
49472
|
_props$renderItem = props.renderItem,
|
|
49466
49473
|
renderItemProp = _props$renderItem === void 0 ? function (d) {
|
|
49467
49474
|
return d;
|
|
@@ -49604,6 +49611,7 @@ var list_List = function List(props) {
|
|
|
49604
49611
|
jssStyle: jssStyle,
|
|
49605
49612
|
index: index,
|
|
49606
49613
|
data: item,
|
|
49614
|
+
isAnimationFinish: isAnimationFinish,
|
|
49607
49615
|
setRowHeight: setRowHeight,
|
|
49608
49616
|
lineHeight: lineHeight,
|
|
49609
49617
|
isHover: hoverIndex === index,
|
|
@@ -51122,6 +51130,10 @@ function Select(props0) {
|
|
|
51122
51130
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
51123
51131
|
focused = _useState4[0],
|
|
51124
51132
|
setFocused = _useState4[1];
|
|
51133
|
+
var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
51134
|
+
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
51135
|
+
isAnimationFinish = _useState6[0],
|
|
51136
|
+
setIsAnimationFinish = _useState6[1];
|
|
51125
51137
|
var inputRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
|
|
51126
51138
|
var optionListRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
|
|
51127
51139
|
var _useFilter = use_filter({
|
|
@@ -51426,6 +51438,9 @@ function Select(props0) {
|
|
|
51426
51438
|
var handleRemove = function handleRemove(item) {
|
|
51427
51439
|
return datum.remove(item);
|
|
51428
51440
|
};
|
|
51441
|
+
var onAnimationAfterEnter = function onAnimationAfterEnter() {
|
|
51442
|
+
setIsAnimationFinish(true);
|
|
51443
|
+
};
|
|
51429
51444
|
|
|
51430
51445
|
// innerTitle 模式
|
|
51431
51446
|
var renderInnerTitle = use_inner_title({
|
|
@@ -51539,6 +51554,7 @@ function Select(props0) {
|
|
|
51539
51554
|
renderItem: renderItem,
|
|
51540
51555
|
controlType: controlType,
|
|
51541
51556
|
onLoadMore: onLoadMore,
|
|
51557
|
+
isAnimationFinish: isAnimationFinish,
|
|
51542
51558
|
threshold: threshold,
|
|
51543
51559
|
onControlTypeChange: setControlType,
|
|
51544
51560
|
closePop: closePop,
|
|
@@ -51554,10 +51570,10 @@ function Select(props0) {
|
|
|
51554
51570
|
}
|
|
51555
51571
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(select_list, objectSpread2_default()({}, listProps));
|
|
51556
51572
|
};
|
|
51557
|
-
var
|
|
51558
|
-
|
|
51559
|
-
absoluteListUpdateKey =
|
|
51560
|
-
setAbsoluteListUpdateKey =
|
|
51573
|
+
var _useState7 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(''),
|
|
51574
|
+
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
51575
|
+
absoluteListUpdateKey = _useState8[0],
|
|
51576
|
+
setAbsoluteListUpdateKey = _useState8[1];
|
|
51561
51577
|
// 当树形数据展开时,需要更新 AbsoluteList 的位置
|
|
51562
51578
|
var onExpandWrap = usePersistFn(function (value) {
|
|
51563
51579
|
onExpand === null || onExpand === void 0 || onExpand(value);
|
|
@@ -51672,9 +51688,12 @@ function Select(props0) {
|
|
|
51672
51688
|
onRef: popupRef,
|
|
51673
51689
|
show: open,
|
|
51674
51690
|
className: classnames_default()(styles === null || styles === void 0 ? void 0 : styles.pickerWrapper, size === 'small' && (styles === null || styles === void 0 ? void 0 : styles.pickerSmall), size === 'large' && (styles === null || styles === void 0 ? void 0 : styles.pickerLarge)),
|
|
51691
|
+
onAnimationAfterEnter: onAnimationAfterEnter,
|
|
51675
51692
|
onMouseDown: select_preventDefault,
|
|
51676
51693
|
display: 'block',
|
|
51677
|
-
type: "scale-y"
|
|
51694
|
+
type: "scale-y"
|
|
51695
|
+
// type='fade'
|
|
51696
|
+
,
|
|
51678
51697
|
duration: 'fast',
|
|
51679
51698
|
style: getListStyle(),
|
|
51680
51699
|
children: [renderHeader(), renderOptions(), renderFooter()]
|
|
@@ -64863,7 +64882,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
64863
64882
|
|
|
64864
64883
|
|
|
64865
64884
|
/* harmony default export */ var src_0 = ({
|
|
64866
|
-
version: '3.4.0-beta.
|
|
64885
|
+
version: '3.4.0-beta.7'
|
|
64867
64886
|
});
|
|
64868
64887
|
}();
|
|
64869
64888
|
/******/ return __webpack_exports__;
|