shineout 3.3.3-beta.4 → 3.3.3-beta.6
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 +24 -6
- 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.3-beta.
|
|
479
|
+
version: '3.3.3-beta.6'
|
|
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.3-beta.
|
|
11971
|
+
/* harmony default export */ var version = ('3.3.3-beta.6');
|
|
11972
11972
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11973
11973
|
|
|
11974
11974
|
|
|
@@ -19673,13 +19673,15 @@ var collapseWidth = src.menuCollapseWidth;
|
|
|
19673
19673
|
var transitionFunc = 'ease-out';
|
|
19674
19674
|
var menuStyle = {
|
|
19675
19675
|
wrapper: {
|
|
19676
|
-
height: '100%',
|
|
19677
19676
|
width: '100%',
|
|
19678
19677
|
backgroundColor: src.menuItemBackgroundColor,
|
|
19679
19678
|
transition: "width ".concat(animationDuration, " ").concat(transitionFunc),
|
|
19680
19679
|
color: src.menuFontColor,
|
|
19681
19680
|
display: 'flex',
|
|
19682
|
-
flexDirection: 'column'
|
|
19681
|
+
flexDirection: 'column',
|
|
19682
|
+
'&:not([data-soui-mode=horizontal])': {
|
|
19683
|
+
height: '100%'
|
|
19684
|
+
}
|
|
19683
19685
|
},
|
|
19684
19686
|
wrapperLight: {},
|
|
19685
19687
|
wrapperDark: {
|
|
@@ -56655,6 +56657,7 @@ var useTableRow = function useTableRow(props) {
|
|
|
56655
56657
|
|
|
56656
56658
|
|
|
56657
56659
|
|
|
56660
|
+
|
|
56658
56661
|
var Tr = function Tr(props) {
|
|
56659
56662
|
var _props$jssStyle, _props$jssStyle$table, _props$rowClassName;
|
|
56660
56663
|
var treeFunc = props.treeFunc;
|
|
@@ -56708,12 +56711,22 @@ var Tr = function Tr(props) {
|
|
|
56708
56711
|
columnKey: props.columns[colIndex].key
|
|
56709
56712
|
});
|
|
56710
56713
|
});
|
|
56711
|
-
(
|
|
56714
|
+
var setVirtualRowHeight = usePersistFn(function () {
|
|
56712
56715
|
if (props.setRowHeight && trRef.current) {
|
|
56713
56716
|
var expandHeight = expandRef.current ? expandRef.current.getBoundingClientRect().height : 0;
|
|
56714
56717
|
props.setRowHeight(props.rowIndex, trRef.current.getBoundingClientRect().height + expandHeight);
|
|
56715
56718
|
}
|
|
56716
|
-
}
|
|
56719
|
+
});
|
|
56720
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(setVirtualRowHeight, [props.expanded, props.rowIndex, props.bodyScrollWidth, props.resizeFlag]);
|
|
56721
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
56722
|
+
if (!trRef.current) return;
|
|
56723
|
+
var cancelObserver = addResizeObserver(trRef.current, setVirtualRowHeight, {
|
|
56724
|
+
direction: 'y'
|
|
56725
|
+
});
|
|
56726
|
+
return function () {
|
|
56727
|
+
cancelObserver();
|
|
56728
|
+
};
|
|
56729
|
+
}, []);
|
|
56717
56730
|
var renderTreeExpand = function renderTreeExpand(content) {
|
|
56718
56731
|
var treeIndent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 22;
|
|
56719
56732
|
var level = props.treeExpandLevel.get(props.originKey) || 0;
|
|
@@ -57858,6 +57871,11 @@ var Tab = function Tab(props, ref) {
|
|
|
57858
57871
|
};
|
|
57859
57872
|
var handleClick = function handleClick() {
|
|
57860
57873
|
if (disabled) return;
|
|
57874
|
+
if (isLink(tab)) {
|
|
57875
|
+
if (tab.props.onClick && typeof tab.props.onClick === 'function') {
|
|
57876
|
+
tab.props.onClick();
|
|
57877
|
+
}
|
|
57878
|
+
}
|
|
57861
57879
|
onChange === null || onChange === void 0 || onChange(id);
|
|
57862
57880
|
};
|
|
57863
57881
|
var renderCardTab = function renderCardTab() {
|
|
@@ -63654,7 +63672,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
63654
63672
|
|
|
63655
63673
|
|
|
63656
63674
|
/* harmony default export */ var src_0 = ({
|
|
63657
|
-
version: '3.3.3-beta.
|
|
63675
|
+
version: '3.3.3-beta.6'
|
|
63658
63676
|
});
|
|
63659
63677
|
}();
|
|
63660
63678
|
/******/ return __webpack_exports__;
|