shineout 3.3.3-fix.1 → 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 +19 -38
- 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,
|
|
@@ -48428,13 +48413,11 @@ var ListOption = function ListOption(props) {
|
|
|
48428
48413
|
|
|
48429
48414
|
|
|
48430
48415
|
|
|
48431
|
-
|
|
48432
48416
|
var list_List = function List(props) {
|
|
48433
48417
|
var _jssStyle$select;
|
|
48434
48418
|
var jssStyle = props.jssStyle,
|
|
48435
48419
|
data = props.data,
|
|
48436
48420
|
size = props.size,
|
|
48437
|
-
header = props.header,
|
|
48438
48421
|
keygen = props.keygen,
|
|
48439
48422
|
datum = props.datum,
|
|
48440
48423
|
multiple = props.multiple,
|
|
@@ -48442,7 +48425,6 @@ var list_List = function List(props) {
|
|
|
48442
48425
|
_props$itemsInView = props.itemsInView,
|
|
48443
48426
|
itemsInView = _props$itemsInView === void 0 ? 10 : _props$itemsInView,
|
|
48444
48427
|
lineHeightProp = props.lineHeight,
|
|
48445
|
-
loading = props.loading,
|
|
48446
48428
|
controlType = props.controlType,
|
|
48447
48429
|
hideCreateOption = props.hideCreateOption,
|
|
48448
48430
|
optionListRef = props.optionListRef,
|
|
@@ -48544,16 +48526,6 @@ var list_List = function List(props) {
|
|
|
48544
48526
|
}
|
|
48545
48527
|
}
|
|
48546
48528
|
});
|
|
48547
|
-
var renderLoading = function renderLoading() {
|
|
48548
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
48549
|
-
children: "loading"
|
|
48550
|
-
});
|
|
48551
|
-
};
|
|
48552
|
-
var renderHeader = function renderHeader() {
|
|
48553
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
48554
|
-
children: "header"
|
|
48555
|
-
});
|
|
48556
|
-
};
|
|
48557
48529
|
var renderItem = function renderItem(item, index, key) {
|
|
48558
48530
|
return /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
48559
48531
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(list_option, {
|
|
@@ -48580,7 +48552,6 @@ var list_List = function List(props) {
|
|
|
48580
48552
|
});
|
|
48581
48553
|
};
|
|
48582
48554
|
var renderList = function renderList() {
|
|
48583
|
-
if (loading) return renderLoading();
|
|
48584
48555
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_list, {
|
|
48585
48556
|
virtualRef: virtualRef,
|
|
48586
48557
|
data: data,
|
|
@@ -48605,9 +48576,9 @@ var list_List = function List(props) {
|
|
|
48605
48576
|
};
|
|
48606
48577
|
}
|
|
48607
48578
|
}, []);
|
|
48608
|
-
return /*#__PURE__*/(0,jsx_runtime.
|
|
48579
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
48609
48580
|
className: rootClass,
|
|
48610
|
-
children:
|
|
48581
|
+
children: renderList()
|
|
48611
48582
|
});
|
|
48612
48583
|
};
|
|
48613
48584
|
/* harmony default export */ var select_list = (list_List);
|
|
@@ -50501,6 +50472,15 @@ function Select(props0) {
|
|
|
50501
50472
|
}
|
|
50502
50473
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(select_list, objectSpread2_default()({}, listProps));
|
|
50503
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
|
+
});
|
|
50504
50484
|
var renderTreeList = function renderTreeList() {
|
|
50505
50485
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(list_tree, {
|
|
50506
50486
|
jssStyle: jssStyle,
|
|
@@ -50512,7 +50492,7 @@ function Select(props0) {
|
|
|
50512
50492
|
height: height,
|
|
50513
50493
|
defaultExpandAll: defaultExpandAll,
|
|
50514
50494
|
defaultExpanded: defaultExpanded,
|
|
50515
|
-
onExpand:
|
|
50495
|
+
onExpand: onExpandWrap,
|
|
50516
50496
|
childrenKey: childrenKey,
|
|
50517
50497
|
closePop: closePop,
|
|
50518
50498
|
renderItem: renderItem,
|
|
@@ -50600,6 +50580,7 @@ function Select(props0) {
|
|
|
50600
50580
|
popupGap: 4,
|
|
50601
50581
|
popupElRef: popupRef,
|
|
50602
50582
|
parentElRef: targetRef,
|
|
50583
|
+
updateKey: absoluteListUpdateKey,
|
|
50603
50584
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(animation_list, {
|
|
50604
50585
|
onRef: popupRef,
|
|
50605
50586
|
show: open,
|
|
@@ -57397,7 +57378,7 @@ var emptyRef = {
|
|
|
57397
57378
|
});
|
|
57398
57379
|
};
|
|
57399
57380
|
var renderTable = function renderTable() {
|
|
57400
|
-
var _props$summary, _sticky$top, _props$data3, _props$data4;
|
|
57381
|
+
var _props$summary, _sticky$top, _props$data3, _props$style, _props$data4;
|
|
57401
57382
|
var Group = /*#__PURE__*/(0,jsx_runtime.jsx)(table_colgroup, {
|
|
57402
57383
|
colgroup: colgroup,
|
|
57403
57384
|
columns: columns,
|
|
@@ -57469,7 +57450,7 @@ var emptyRef = {
|
|
|
57469
57450
|
css: sticky === null || sticky === void 0 ? void 0 : sticky.css,
|
|
57470
57451
|
parent: tableRef === null || tableRef === void 0 ? void 0 : tableRef.current
|
|
57471
57452
|
};
|
|
57472
|
-
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;
|
|
57473
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));
|
|
57474
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));
|
|
57475
57456
|
if (isRenderBaseTable) {
|
|
@@ -63731,7 +63712,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
63731
63712
|
|
|
63732
63713
|
|
|
63733
63714
|
/* harmony default export */ var src_0 = ({
|
|
63734
|
-
version: '3.3.
|
|
63715
|
+
version: '3.3.4-fix.1'
|
|
63735
63716
|
});
|
|
63736
63717
|
}();
|
|
63737
63718
|
/******/ return __webpack_exports__;
|