shineout 3.3.3 → 3.3.4-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 +26 -46
- 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.3.
|
|
479
|
+
version: '3.3.4-fix.1'
|
|
480
480
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11968,7 +11968,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11968
11968
|
};
|
|
11969
11969
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11970
11970
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11971
|
-
/* harmony default export */ var version = ('3.3.
|
|
11971
|
+
/* harmony default export */ var version = ('3.3.4-fix.1');
|
|
11972
11972
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11973
11973
|
|
|
11974
11974
|
|
|
@@ -26551,22 +26551,6 @@ var treeStyle = {
|
|
|
26551
26551
|
cursor: 'pointer',
|
|
26552
26552
|
padding: "0 ".concat(src.treePaddingX),
|
|
26553
26553
|
borderRadius: src.treeContentBorderRadius,
|
|
26554
|
-
position: 'relative',
|
|
26555
|
-
'&[data-expanded="true"]::before': {
|
|
26556
|
-
content: '""',
|
|
26557
|
-
position: 'absolute',
|
|
26558
|
-
top: 24,
|
|
26559
|
-
bottom: 0,
|
|
26560
|
-
left: -12,
|
|
26561
|
-
width: 1,
|
|
26562
|
-
background: '#ebebeb'
|
|
26563
|
-
},
|
|
26564
|
-
'&[dir=ltr][data-expanded="true"]::before': {
|
|
26565
|
-
left: -12
|
|
26566
|
-
},
|
|
26567
|
-
'&[dir=rtl][data-expanded="true"]::before': {
|
|
26568
|
-
right: -12
|
|
26569
|
-
},
|
|
26570
26554
|
'$contentDisabled &': {
|
|
26571
26555
|
'& $text': {
|
|
26572
26556
|
color: src.treeContentDisabledFontColor
|
|
@@ -26597,7 +26581,8 @@ var treeStyle = {
|
|
|
26597
26581
|
color: src.treeFontColor,
|
|
26598
26582
|
fontWeight: src.treeFontWeight,
|
|
26599
26583
|
paddingTop: src.treeTextPaddingY,
|
|
26600
|
-
paddingBottom: src.treeTextPaddingY
|
|
26584
|
+
paddingBottom: src.treeTextPaddingY,
|
|
26585
|
+
whiteSpace: 'nowrap'
|
|
26601
26586
|
},
|
|
26602
26587
|
// textDisabled: {
|
|
26603
26588
|
// color: Token.treeItemDisabledFontColor,
|
|
@@ -31849,19 +31834,18 @@ function useInputAble(props) {
|
|
|
31849
31834
|
var render = useRender(syncValue);
|
|
31850
31835
|
var shouldUseState = delay || !control;
|
|
31851
31836
|
var value = shouldUseState ? stateValue : valuePo;
|
|
31852
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
31853
|
-
if (
|
|
31837
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
31838
|
+
if (delay && control && props.value !== stateValue) {
|
|
31839
|
+
changeStateValue(props.value);
|
|
31840
|
+
} else if (context.timer) {
|
|
31854
31841
|
clearTimeout(context.timer);
|
|
31855
31842
|
context.timer = null;
|
|
31856
31843
|
}
|
|
31857
|
-
|
|
31858
|
-
changeStateValue(props.value);
|
|
31859
|
-
}
|
|
31860
|
-
}, [props.value, delay]);
|
|
31844
|
+
}, [props.value, delay, control]);
|
|
31861
31845
|
var forceDelayChange = use_persist_fn(function () {
|
|
31862
|
-
if (context.
|
|
31846
|
+
if (context.delayChange) context.delayChange();
|
|
31847
|
+
if (context.timer) {
|
|
31863
31848
|
clearTimeout(context.timer);
|
|
31864
|
-
context.delayChange();
|
|
31865
31849
|
context.timer = null;
|
|
31866
31850
|
context.delayChange = null;
|
|
31867
31851
|
}
|
|
@@ -48429,13 +48413,11 @@ var ListOption = function ListOption(props) {
|
|
|
48429
48413
|
|
|
48430
48414
|
|
|
48431
48415
|
|
|
48432
|
-
|
|
48433
48416
|
var list_List = function List(props) {
|
|
48434
48417
|
var _jssStyle$select;
|
|
48435
48418
|
var jssStyle = props.jssStyle,
|
|
48436
48419
|
data = props.data,
|
|
48437
48420
|
size = props.size,
|
|
48438
|
-
header = props.header,
|
|
48439
48421
|
keygen = props.keygen,
|
|
48440
48422
|
datum = props.datum,
|
|
48441
48423
|
multiple = props.multiple,
|
|
@@ -48443,7 +48425,6 @@ var list_List = function List(props) {
|
|
|
48443
48425
|
_props$itemsInView = props.itemsInView,
|
|
48444
48426
|
itemsInView = _props$itemsInView === void 0 ? 10 : _props$itemsInView,
|
|
48445
48427
|
lineHeightProp = props.lineHeight,
|
|
48446
|
-
loading = props.loading,
|
|
48447
48428
|
controlType = props.controlType,
|
|
48448
48429
|
hideCreateOption = props.hideCreateOption,
|
|
48449
48430
|
optionListRef = props.optionListRef,
|
|
@@ -48545,16 +48526,6 @@ var list_List = function List(props) {
|
|
|
48545
48526
|
}
|
|
48546
48527
|
}
|
|
48547
48528
|
});
|
|
48548
|
-
var renderLoading = function renderLoading() {
|
|
48549
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
48550
|
-
children: "loading"
|
|
48551
|
-
});
|
|
48552
|
-
};
|
|
48553
|
-
var renderHeader = function renderHeader() {
|
|
48554
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
48555
|
-
children: "header"
|
|
48556
|
-
});
|
|
48557
|
-
};
|
|
48558
48529
|
var renderItem = function renderItem(item, index, key) {
|
|
48559
48530
|
return /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
48560
48531
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(list_option, {
|
|
@@ -48581,7 +48552,6 @@ var list_List = function List(props) {
|
|
|
48581
48552
|
});
|
|
48582
48553
|
};
|
|
48583
48554
|
var renderList = function renderList() {
|
|
48584
|
-
if (loading) return renderLoading();
|
|
48585
48555
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_list, {
|
|
48586
48556
|
virtualRef: virtualRef,
|
|
48587
48557
|
data: data,
|
|
@@ -48606,9 +48576,9 @@ var list_List = function List(props) {
|
|
|
48606
48576
|
};
|
|
48607
48577
|
}
|
|
48608
48578
|
}, []);
|
|
48609
|
-
return /*#__PURE__*/(0,jsx_runtime.
|
|
48579
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
48610
48580
|
className: rootClass,
|
|
48611
|
-
children:
|
|
48581
|
+
children: renderList()
|
|
48612
48582
|
});
|
|
48613
48583
|
};
|
|
48614
48584
|
/* harmony default export */ var select_list = (list_List);
|
|
@@ -50502,6 +50472,15 @@ function Select(props0) {
|
|
|
50502
50472
|
}
|
|
50503
50473
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(select_list, objectSpread2_default()({}, listProps));
|
|
50504
50474
|
};
|
|
50475
|
+
var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(''),
|
|
50476
|
+
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
50477
|
+
absoluteListUpdateKey = _useState6[0],
|
|
50478
|
+
setAbsoluteListUpdateKey = _useState6[1];
|
|
50479
|
+
// 当树形数据展开时,需要更新 AbsoluteList 的位置
|
|
50480
|
+
var onExpandWrap = usePersistFn(function (value) {
|
|
50481
|
+
onExpand === null || onExpand === void 0 || onExpand(value);
|
|
50482
|
+
setAbsoluteListUpdateKey(value === null || value === void 0 ? void 0 : value.join(','));
|
|
50483
|
+
});
|
|
50505
50484
|
var renderTreeList = function renderTreeList() {
|
|
50506
50485
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(list_tree, {
|
|
50507
50486
|
jssStyle: jssStyle,
|
|
@@ -50513,7 +50492,7 @@ function Select(props0) {
|
|
|
50513
50492
|
height: height,
|
|
50514
50493
|
defaultExpandAll: defaultExpandAll,
|
|
50515
50494
|
defaultExpanded: defaultExpanded,
|
|
50516
|
-
onExpand:
|
|
50495
|
+
onExpand: onExpandWrap,
|
|
50517
50496
|
childrenKey: childrenKey,
|
|
50518
50497
|
closePop: closePop,
|
|
50519
50498
|
renderItem: renderItem,
|
|
@@ -50601,6 +50580,7 @@ function Select(props0) {
|
|
|
50601
50580
|
popupGap: 4,
|
|
50602
50581
|
popupElRef: popupRef,
|
|
50603
50582
|
parentElRef: targetRef,
|
|
50583
|
+
updateKey: absoluteListUpdateKey,
|
|
50604
50584
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(animation_list, {
|
|
50605
50585
|
onRef: popupRef,
|
|
50606
50586
|
show: open,
|
|
@@ -57398,7 +57378,7 @@ var emptyRef = {
|
|
|
57398
57378
|
});
|
|
57399
57379
|
};
|
|
57400
57380
|
var renderTable = function renderTable() {
|
|
57401
|
-
var _props$summary, _sticky$top, _props$data3, _props$data4;
|
|
57381
|
+
var _props$summary, _sticky$top, _props$data3, _props$style, _props$data4;
|
|
57402
57382
|
var Group = /*#__PURE__*/(0,jsx_runtime.jsx)(table_colgroup, {
|
|
57403
57383
|
colgroup: colgroup,
|
|
57404
57384
|
columns: columns,
|
|
@@ -57470,7 +57450,7 @@ var emptyRef = {
|
|
|
57470
57450
|
css: sticky === null || sticky === void 0 ? void 0 : sticky.css,
|
|
57471
57451
|
parent: tableRef === null || tableRef === void 0 ? void 0 : tableRef.current
|
|
57472
57452
|
};
|
|
57473
|
-
var isRenderBaseTable = !virtual && !isScrollY && !props.sticky && ((_props$data3 = props.data) === null || _props$data3 === void 0 ? void 0 : _props$data3.length);
|
|
57453
|
+
var isRenderBaseTable = !virtual && !isScrollY && !props.sticky && ((_props$data3 = props.data) === null || _props$data3 === void 0 ? void 0 : _props$data3.length) && !((_props$style = props.style) !== null && _props$style !== void 0 && _props$style.height) && !props.height;
|
|
57474
57454
|
var headWrapperClass = classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.headWrapper, isScrollY && scrollBarWidth && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.scrollY));
|
|
57475
57455
|
var footWrapperClass = classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.footWrapper, isScrollY && scrollBarWidth && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.scrollY));
|
|
57476
57456
|
if (isRenderBaseTable) {
|
|
@@ -63732,7 +63712,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
63732
63712
|
|
|
63733
63713
|
|
|
63734
63714
|
/* harmony default export */ var src_0 = ({
|
|
63735
|
-
version: '3.3.
|
|
63715
|
+
version: '3.3.4-fix.1'
|
|
63736
63716
|
});
|
|
63737
63717
|
}();
|
|
63738
63718
|
/******/ return __webpack_exports__;
|