shineout 3.3.3 → 3.3.4
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'
|
|
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');
|
|
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,
|
|
@@ -48429,13 +48414,11 @@ var ListOption = function ListOption(props) {
|
|
|
48429
48414
|
|
|
48430
48415
|
|
|
48431
48416
|
|
|
48432
|
-
|
|
48433
48417
|
var list_List = function List(props) {
|
|
48434
48418
|
var _jssStyle$select;
|
|
48435
48419
|
var jssStyle = props.jssStyle,
|
|
48436
48420
|
data = props.data,
|
|
48437
48421
|
size = props.size,
|
|
48438
|
-
header = props.header,
|
|
48439
48422
|
keygen = props.keygen,
|
|
48440
48423
|
datum = props.datum,
|
|
48441
48424
|
multiple = props.multiple,
|
|
@@ -48443,7 +48426,6 @@ var list_List = function List(props) {
|
|
|
48443
48426
|
_props$itemsInView = props.itemsInView,
|
|
48444
48427
|
itemsInView = _props$itemsInView === void 0 ? 10 : _props$itemsInView,
|
|
48445
48428
|
lineHeightProp = props.lineHeight,
|
|
48446
|
-
loading = props.loading,
|
|
48447
48429
|
controlType = props.controlType,
|
|
48448
48430
|
hideCreateOption = props.hideCreateOption,
|
|
48449
48431
|
optionListRef = props.optionListRef,
|
|
@@ -48545,16 +48527,6 @@ var list_List = function List(props) {
|
|
|
48545
48527
|
}
|
|
48546
48528
|
}
|
|
48547
48529
|
});
|
|
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
48530
|
var renderItem = function renderItem(item, index, key) {
|
|
48559
48531
|
return /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
48560
48532
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(list_option, {
|
|
@@ -48581,7 +48553,6 @@ var list_List = function List(props) {
|
|
|
48581
48553
|
});
|
|
48582
48554
|
};
|
|
48583
48555
|
var renderList = function renderList() {
|
|
48584
|
-
if (loading) return renderLoading();
|
|
48585
48556
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_list, {
|
|
48586
48557
|
virtualRef: virtualRef,
|
|
48587
48558
|
data: data,
|
|
@@ -48606,9 +48577,9 @@ var list_List = function List(props) {
|
|
|
48606
48577
|
};
|
|
48607
48578
|
}
|
|
48608
48579
|
}, []);
|
|
48609
|
-
return /*#__PURE__*/(0,jsx_runtime.
|
|
48580
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
48610
48581
|
className: rootClass,
|
|
48611
|
-
children:
|
|
48582
|
+
children: renderList()
|
|
48612
48583
|
});
|
|
48613
48584
|
};
|
|
48614
48585
|
/* harmony default export */ var select_list = (list_List);
|
|
@@ -50502,6 +50473,15 @@ function Select(props0) {
|
|
|
50502
50473
|
}
|
|
50503
50474
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(select_list, objectSpread2_default()({}, listProps));
|
|
50504
50475
|
};
|
|
50476
|
+
var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(''),
|
|
50477
|
+
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
50478
|
+
absoluteListUpdateKey = _useState6[0],
|
|
50479
|
+
setAbsoluteListUpdateKey = _useState6[1];
|
|
50480
|
+
// 当树形数据展开时,需要更新 AbsoluteList 的位置
|
|
50481
|
+
var onExpandWrap = usePersistFn(function (value) {
|
|
50482
|
+
onExpand === null || onExpand === void 0 || onExpand(value);
|
|
50483
|
+
setAbsoluteListUpdateKey(value === null || value === void 0 ? void 0 : value.join(','));
|
|
50484
|
+
});
|
|
50505
50485
|
var renderTreeList = function renderTreeList() {
|
|
50506
50486
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(list_tree, {
|
|
50507
50487
|
jssStyle: jssStyle,
|
|
@@ -50513,7 +50493,7 @@ function Select(props0) {
|
|
|
50513
50493
|
height: height,
|
|
50514
50494
|
defaultExpandAll: defaultExpandAll,
|
|
50515
50495
|
defaultExpanded: defaultExpanded,
|
|
50516
|
-
onExpand:
|
|
50496
|
+
onExpand: onExpandWrap,
|
|
50517
50497
|
childrenKey: childrenKey,
|
|
50518
50498
|
closePop: closePop,
|
|
50519
50499
|
renderItem: renderItem,
|
|
@@ -50601,6 +50581,7 @@ function Select(props0) {
|
|
|
50601
50581
|
popupGap: 4,
|
|
50602
50582
|
popupElRef: popupRef,
|
|
50603
50583
|
parentElRef: targetRef,
|
|
50584
|
+
updateKey: absoluteListUpdateKey,
|
|
50604
50585
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(animation_list, {
|
|
50605
50586
|
onRef: popupRef,
|
|
50606
50587
|
show: open,
|
|
@@ -57398,7 +57379,7 @@ var emptyRef = {
|
|
|
57398
57379
|
});
|
|
57399
57380
|
};
|
|
57400
57381
|
var renderTable = function renderTable() {
|
|
57401
|
-
var _props$summary, _sticky$top, _props$data3, _props$data4;
|
|
57382
|
+
var _props$summary, _sticky$top, _props$data3, _props$style, _props$data4;
|
|
57402
57383
|
var Group = /*#__PURE__*/(0,jsx_runtime.jsx)(table_colgroup, {
|
|
57403
57384
|
colgroup: colgroup,
|
|
57404
57385
|
columns: columns,
|
|
@@ -57470,7 +57451,7 @@ var emptyRef = {
|
|
|
57470
57451
|
css: sticky === null || sticky === void 0 ? void 0 : sticky.css,
|
|
57471
57452
|
parent: tableRef === null || tableRef === void 0 ? void 0 : tableRef.current
|
|
57472
57453
|
};
|
|
57473
|
-
var isRenderBaseTable = !virtual && !isScrollY && !props.sticky && ((_props$data3 = props.data) === null || _props$data3 === void 0 ? void 0 : _props$data3.length);
|
|
57454
|
+
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
57455
|
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
57456
|
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
57457
|
if (isRenderBaseTable) {
|
|
@@ -63732,7 +63713,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
63732
63713
|
|
|
63733
63714
|
|
|
63734
63715
|
/* harmony default export */ var src_0 = ({
|
|
63735
|
-
version: '3.3.
|
|
63716
|
+
version: '3.3.4'
|
|
63736
63717
|
});
|
|
63737
63718
|
}();
|
|
63738
63719
|
/******/ return __webpack_exports__;
|