shineout 3.9.3-beta.1 → 3.9.3-beta.3
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 +34 -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
|
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
522
522
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
523
523
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
524
524
|
var _default = exports.default = {
|
|
525
|
-
version: '3.9.3-beta.
|
|
525
|
+
version: '3.9.3-beta.3'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12402,7 +12402,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12402
12402
|
};
|
|
12403
12403
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12404
12404
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12405
|
-
/* harmony default export */ var version = ('3.9.3-beta.
|
|
12405
|
+
/* harmony default export */ var version = ('3.9.3-beta.3');
|
|
12406
12406
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12407
12407
|
|
|
12408
12408
|
|
|
@@ -24114,7 +24114,7 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
24114
24114
|
fontSize: src.selectSmallFontSize
|
|
24115
24115
|
},
|
|
24116
24116
|
'& $optionGroupTitle': {
|
|
24117
|
-
padding: "".concat(src.
|
|
24117
|
+
padding: "calc(".concat(src.selectFontSize, " - 10px) ").concat(src.selectGroupTitlePaddingX, " 0 ").concat(src.selectGroupTitlePaddingX)
|
|
24118
24118
|
}
|
|
24119
24119
|
},
|
|
24120
24120
|
pickerLarge: {
|
|
@@ -24126,7 +24126,7 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
24126
24126
|
fontSize: src.selectLargeFontSize
|
|
24127
24127
|
},
|
|
24128
24128
|
'& $optionGroupTitle': {
|
|
24129
|
-
padding: "".concat(src.
|
|
24129
|
+
padding: "calc(".concat(src.selectFontSize, " + 2px) ").concat(src.selectGroupTitlePaddingX, " ").concat(src.selectGroupTitleLargeBottom, " ").concat(src.selectGroupTitlePaddingX)
|
|
24130
24130
|
}
|
|
24131
24131
|
},
|
|
24132
24132
|
iconWrapper: {
|
|
@@ -24343,7 +24343,7 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
24343
24343
|
optionGroupTitle: {
|
|
24344
24344
|
fontSize: src.selectGroupTitleFontSize,
|
|
24345
24345
|
lineHeight: src.lineHeightDynamic,
|
|
24346
|
-
padding: "calc(".concat(src.
|
|
24346
|
+
padding: "calc(".concat(src.selectFontSize, " - 4px) ").concat(src.selectGroupTitlePaddingX, " ").concat(src.selectGroupTitlePaddingBottom, " ").concat(src.selectGroupTitlePaddingX),
|
|
24347
24347
|
color: src.selectGroupTitleFontColor,
|
|
24348
24348
|
fontWeight: src.selectGroupTitleFontWeight
|
|
24349
24349
|
},
|
|
@@ -64429,6 +64429,10 @@ var scroll_table_Scroll = function Scroll(props) {
|
|
|
64429
64429
|
});
|
|
64430
64430
|
};
|
|
64431
64431
|
/* harmony default export */ var scroll_table = (scroll_table_Scroll);
|
|
64432
|
+
;// CONCATENATED MODULE: ../hooks/src/components/use-table/table-nested-context.tsx
|
|
64433
|
+
|
|
64434
|
+
var TableContext = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext)({});
|
|
64435
|
+
/* harmony default export */ var table_nested_context = (TableContext);
|
|
64432
64436
|
;// CONCATENATED MODULE: ../hooks/src/common/use-scrollbar-width/index.ts
|
|
64433
64437
|
|
|
64434
64438
|
|
|
@@ -67101,6 +67105,7 @@ var Tr = function Tr(props) {
|
|
|
67101
67105
|
if (expandCol && typeof expandCol.render === 'function') {
|
|
67102
67106
|
var renderFunc = expandCol.render(props.rawData, props.rowIndex);
|
|
67103
67107
|
if (typeof renderFunc === 'function') {
|
|
67108
|
+
var _props$scrollRef;
|
|
67104
67109
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("tr", {
|
|
67105
67110
|
className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.rowExpand,
|
|
67106
67111
|
ref: expandRef,
|
|
@@ -67111,7 +67116,12 @@ var Tr = function Tr(props) {
|
|
|
67111
67116
|
style: {
|
|
67112
67117
|
padding: 0
|
|
67113
67118
|
},
|
|
67114
|
-
children:
|
|
67119
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table_nested_context.Provider, {
|
|
67120
|
+
value: {
|
|
67121
|
+
parentTableWidth: (_props$scrollRef = props.scrollRef) === null || _props$scrollRef === void 0 || (_props$scrollRef = _props$scrollRef.current) === null || _props$scrollRef === void 0 ? void 0 : _props$scrollRef.clientWidth
|
|
67122
|
+
},
|
|
67123
|
+
children: renderFunc()
|
|
67124
|
+
})
|
|
67115
67125
|
})
|
|
67116
67126
|
});
|
|
67117
67127
|
}
|
|
@@ -67266,6 +67276,7 @@ var Tr = function Tr(props) {
|
|
|
67266
67276
|
rowEvents: props.rowEvents,
|
|
67267
67277
|
disabled: props.datum.disabledCheck(item),
|
|
67268
67278
|
bodyScrollWidth: props.bodyScrollWidth,
|
|
67279
|
+
scrollRef: props.scrollRef,
|
|
67269
67280
|
resizeFlag: props.resizeFlag,
|
|
67270
67281
|
treeCheckAll: props.treeCheckAll,
|
|
67271
67282
|
onCellClick: props.onCellClick,
|
|
@@ -67442,6 +67453,7 @@ function Table(props) {
|
|
|
67442
67453
|
_props$pagination = props.pagination,
|
|
67443
67454
|
pagination = _props$pagination === void 0 ? {} : _props$pagination;
|
|
67444
67455
|
var config = useConfig();
|
|
67456
|
+
var nestedContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(table_nested_context);
|
|
67445
67457
|
var isRtl = config.direction === 'rtl';
|
|
67446
67458
|
var tableClasses = props === null || props === void 0 || (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$table = _props$jssStyle.table) === null || _props$jssStyle$table === void 0 ? void 0 : _props$jssStyle$table.call(_props$jssStyle);
|
|
67447
67459
|
var tbodyRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
@@ -67802,7 +67814,8 @@ function Table(props) {
|
|
|
67802
67814
|
resizeFlag: resizeFlag,
|
|
67803
67815
|
treeCheckAll: props.treeCheckAll,
|
|
67804
67816
|
onCellClick: props.onCellClick,
|
|
67805
|
-
strictRowHeight: props.strictRowHeight
|
|
67817
|
+
strictRowHeight: props.strictRowHeight,
|
|
67818
|
+
scrollRef: scrollRef
|
|
67806
67819
|
};
|
|
67807
67820
|
var headCommonProps = {
|
|
67808
67821
|
disabled: props.disabled,
|
|
@@ -68084,6 +68097,19 @@ function Table(props) {
|
|
|
68084
68097
|
scrollElRef: scrollRef
|
|
68085
68098
|
};
|
|
68086
68099
|
}, [scrollRef]);
|
|
68100
|
+
var tableWrapperStyle = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
68101
|
+
if (nestedContext.parentTableWidth && props.width) {
|
|
68102
|
+
return objectSpread2_default()({
|
|
68103
|
+
width: nestedContext.parentTableWidth,
|
|
68104
|
+
position: 'sticky',
|
|
68105
|
+
left: 0,
|
|
68106
|
+
height: defaultHeight
|
|
68107
|
+
}, props.style);
|
|
68108
|
+
}
|
|
68109
|
+
return objectSpread2_default()({
|
|
68110
|
+
height: defaultHeight
|
|
68111
|
+
}, props.style);
|
|
68112
|
+
}, [nestedContext.parentTableWidth, defaultHeight, props.style, props.width]);
|
|
68087
68113
|
var tableWrapperClass = classnames_default()(props.className, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.rootClass, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.wrapper, props.bordered && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.bordered), verticalAlign === 'top' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.verticalAlignTop), verticalAlign === 'middle' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.verticalAlignMiddle), size === 'small' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.small), size === 'large' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.large), size === 'default' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.default));
|
|
68088
68114
|
if (!props.columns || columns.length === 0) return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
68089
68115
|
className: classnames_default()(tableWrapperClass, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.simple, props.striped && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.striped)),
|
|
@@ -68099,9 +68125,7 @@ function Table(props) {
|
|
|
68099
68125
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
68100
68126
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
|
|
68101
68127
|
className: classnames_default()(tableWrapperClass, defineProperty_default()(defineProperty_default()(defineProperty_default()({}, tableClasses.sticky, props.sticky), tableClasses.floatLeft, floatLeft), tableClasses.floatRight, floatRight)),
|
|
68102
|
-
style:
|
|
68103
|
-
height: defaultHeight
|
|
68104
|
-
}, props.style)
|
|
68128
|
+
style: tableWrapperStyle
|
|
68105
68129
|
}, selection.getTableProps()), {}, {
|
|
68106
68130
|
ref: tableRef,
|
|
68107
68131
|
dir: config.direction,
|
|
@@ -74634,7 +74658,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
74634
74658
|
|
|
74635
74659
|
|
|
74636
74660
|
/* harmony default export */ var src_0 = ({
|
|
74637
|
-
version: '3.9.3-beta.
|
|
74661
|
+
version: '3.9.3-beta.3'
|
|
74638
74662
|
});
|
|
74639
74663
|
}();
|
|
74640
74664
|
/******/ return __webpack_exports__;
|