shineout 3.7.9-beta.2 → 3.7.9-beta.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 +27 -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.7.9-beta.
|
|
525
|
+
version: '3.7.9-beta.4'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12234
12234
|
};
|
|
12235
12235
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12236
12236
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12237
|
-
/* harmony default export */ var version = ('3.7.9-beta.
|
|
12237
|
+
/* harmony default export */ var version = ('3.7.9-beta.4');
|
|
12238
12238
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12239
12239
|
|
|
12240
12240
|
|
|
@@ -61306,6 +61306,7 @@ var events = ['scroll', 'pageshow', 'load', 'resize'];
|
|
|
61306
61306
|
// };
|
|
61307
61307
|
|
|
61308
61308
|
var Sticky = function Sticky(props) {
|
|
61309
|
+
var _props$style;
|
|
61309
61310
|
if (props.target) {
|
|
61310
61311
|
sticky_devUseWarning.deprecated('target', 'scrollContainer', 'Sticky');
|
|
61311
61312
|
}
|
|
@@ -61661,7 +61662,7 @@ var Sticky = function Sticky(props) {
|
|
|
61661
61662
|
}
|
|
61662
61663
|
var StickyEl = show && parentVisible ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
61663
61664
|
style: objectSpread2_default()(objectSpread2_default()({
|
|
61664
|
-
zIndex: defaultZIndex
|
|
61665
|
+
zIndex: ((_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.zIndex) || defaultZIndex
|
|
61665
61666
|
}, style), elementSize),
|
|
61666
61667
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
61667
61668
|
className: props.className,
|
|
@@ -63097,7 +63098,8 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
63097
63098
|
setRowHeight: setRowHeight,
|
|
63098
63099
|
scrollToIndex: scrollToIndex,
|
|
63099
63100
|
scrollColumnByLeft: scrollColumnByLeft,
|
|
63100
|
-
scrollColumnIntoView: scrollColumnIntoView
|
|
63101
|
+
scrollColumnIntoView: scrollColumnIntoView,
|
|
63102
|
+
rowSpanInfo: rowSpanInfo
|
|
63101
63103
|
};
|
|
63102
63104
|
};
|
|
63103
63105
|
/* harmony default export */ var use_table_virtual = (useTableVirtual);
|
|
@@ -64385,6 +64387,7 @@ var Tr = function Tr(props) {
|
|
|
64385
64387
|
return expandInstance;
|
|
64386
64388
|
}
|
|
64387
64389
|
if (col.type === 'checkbox') {
|
|
64390
|
+
var selectData = props.selectData || data;
|
|
64388
64391
|
var instance = /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
64389
64392
|
className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.iconWrapper,
|
|
64390
64393
|
children: props.radio ? /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_radio_radio, {
|
|
@@ -64396,9 +64399,9 @@ var Tr = function Tr(props) {
|
|
|
64396
64399
|
disabled: props.disabled,
|
|
64397
64400
|
onChange: function onChange(value) {
|
|
64398
64401
|
if (value) {
|
|
64399
|
-
props.datum.add(
|
|
64402
|
+
props.datum.add(selectData);
|
|
64400
64403
|
} else {
|
|
64401
|
-
props.datum.remove(
|
|
64404
|
+
props.datum.remove(selectData);
|
|
64402
64405
|
}
|
|
64403
64406
|
}
|
|
64404
64407
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_checkbox_checkbox, {
|
|
@@ -64410,11 +64413,11 @@ var Tr = function Tr(props) {
|
|
|
64410
64413
|
checked: props.isSelect,
|
|
64411
64414
|
onChange: function onChange(_value, check) {
|
|
64412
64415
|
if (check) {
|
|
64413
|
-
props.datum.add(
|
|
64416
|
+
props.datum.add(selectData, props.treeCheckAll ? {
|
|
64414
64417
|
childrenKey: props.treeColumnsName
|
|
64415
64418
|
} : undefined);
|
|
64416
64419
|
} else {
|
|
64417
|
-
props.datum.remove(
|
|
64420
|
+
props.datum.remove(selectData, props.treeCheckAll ? {
|
|
64418
64421
|
childrenKey: props.treeColumnsName
|
|
64419
64422
|
} : undefined);
|
|
64420
64423
|
}
|
|
@@ -64606,6 +64609,17 @@ var Tr = function Tr(props) {
|
|
|
64606
64609
|
var rowIndex = index + currentIndex;
|
|
64607
64610
|
var originKey = getKey(props.keygen, item, rowIndex);
|
|
64608
64611
|
var trRenderKey = props.loader || (_props$rowEvents = props.rowEvents) !== null && _props$rowEvents !== void 0 && _props$rowEvents.draggable ? originKey : "".concat(originKey, "-").concat(rowIndex);
|
|
64612
|
+
|
|
64613
|
+
// 在虚拟列表模式下,使用 virtualRowSpanInfo 来获取正确的选择数据
|
|
64614
|
+
var selectData = item;
|
|
64615
|
+
if (props.virtualRowSpanInfo && props.fullData) {
|
|
64616
|
+
// rowSpanIndexArray[rowIndex] 表示第 rowIndex 行所属合并组的起始行索引
|
|
64617
|
+
var selectIndex = props.virtualRowSpanInfo.rowSpanIndexArray[rowIndex];
|
|
64618
|
+
selectData = props.fullData[selectIndex];
|
|
64619
|
+
} else {
|
|
64620
|
+
// 非虚拟列表模式使用原有逻辑
|
|
64621
|
+
selectData = rowSelectMergeStartData[index];
|
|
64622
|
+
}
|
|
64609
64623
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tr, {
|
|
64610
64624
|
originKey: originKey,
|
|
64611
64625
|
row: rowData[index],
|
|
@@ -64633,7 +64647,8 @@ var Tr = function Tr(props) {
|
|
|
64633
64647
|
striped: props.striped,
|
|
64634
64648
|
radio: props.radio,
|
|
64635
64649
|
hover: hover,
|
|
64636
|
-
isSelect: props.datum.check(
|
|
64650
|
+
isSelect: props.datum.check(selectData),
|
|
64651
|
+
selectData: selectData,
|
|
64637
64652
|
handleCellHover: handleCellHover
|
|
64638
64653
|
// to update
|
|
64639
64654
|
,
|
|
@@ -65320,7 +65335,9 @@ var emptyRef = {
|
|
|
65320
65335
|
currentIndex: virtualInfo.startIndex,
|
|
65321
65336
|
data: virtualInfo.data,
|
|
65322
65337
|
setRowHeight: virtualInfo.setRowHeight,
|
|
65323
|
-
scrolling: scrolling
|
|
65338
|
+
scrolling: scrolling,
|
|
65339
|
+
virtualRowSpanInfo: virtualInfo.rowSpanInfo,
|
|
65340
|
+
fullData: treeData
|
|
65324
65341
|
}))]
|
|
65325
65342
|
}), showFoot ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
65326
65343
|
className: footWrapperClass,
|
|
@@ -71888,7 +71905,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
71888
71905
|
|
|
71889
71906
|
|
|
71890
71907
|
/* harmony default export */ var src_0 = ({
|
|
71891
|
-
version: '3.7.9-beta.
|
|
71908
|
+
version: '3.7.9-beta.4'
|
|
71892
71909
|
});
|
|
71893
71910
|
}();
|
|
71894
71911
|
/******/ return __webpack_exports__;
|