shineout 3.7.9-beta.3 → 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 +25 -9
- 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
|
|
|
@@ -63098,7 +63098,8 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
63098
63098
|
setRowHeight: setRowHeight,
|
|
63099
63099
|
scrollToIndex: scrollToIndex,
|
|
63100
63100
|
scrollColumnByLeft: scrollColumnByLeft,
|
|
63101
|
-
scrollColumnIntoView: scrollColumnIntoView
|
|
63101
|
+
scrollColumnIntoView: scrollColumnIntoView,
|
|
63102
|
+
rowSpanInfo: rowSpanInfo
|
|
63102
63103
|
};
|
|
63103
63104
|
};
|
|
63104
63105
|
/* harmony default export */ var use_table_virtual = (useTableVirtual);
|
|
@@ -64386,6 +64387,7 @@ var Tr = function Tr(props) {
|
|
|
64386
64387
|
return expandInstance;
|
|
64387
64388
|
}
|
|
64388
64389
|
if (col.type === 'checkbox') {
|
|
64390
|
+
var selectData = props.selectData || data;
|
|
64389
64391
|
var instance = /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
64390
64392
|
className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.iconWrapper,
|
|
64391
64393
|
children: props.radio ? /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_radio_radio, {
|
|
@@ -64397,9 +64399,9 @@ var Tr = function Tr(props) {
|
|
|
64397
64399
|
disabled: props.disabled,
|
|
64398
64400
|
onChange: function onChange(value) {
|
|
64399
64401
|
if (value) {
|
|
64400
|
-
props.datum.add(
|
|
64402
|
+
props.datum.add(selectData);
|
|
64401
64403
|
} else {
|
|
64402
|
-
props.datum.remove(
|
|
64404
|
+
props.datum.remove(selectData);
|
|
64403
64405
|
}
|
|
64404
64406
|
}
|
|
64405
64407
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_checkbox_checkbox, {
|
|
@@ -64411,11 +64413,11 @@ var Tr = function Tr(props) {
|
|
|
64411
64413
|
checked: props.isSelect,
|
|
64412
64414
|
onChange: function onChange(_value, check) {
|
|
64413
64415
|
if (check) {
|
|
64414
|
-
props.datum.add(
|
|
64416
|
+
props.datum.add(selectData, props.treeCheckAll ? {
|
|
64415
64417
|
childrenKey: props.treeColumnsName
|
|
64416
64418
|
} : undefined);
|
|
64417
64419
|
} else {
|
|
64418
|
-
props.datum.remove(
|
|
64420
|
+
props.datum.remove(selectData, props.treeCheckAll ? {
|
|
64419
64421
|
childrenKey: props.treeColumnsName
|
|
64420
64422
|
} : undefined);
|
|
64421
64423
|
}
|
|
@@ -64607,6 +64609,17 @@ var Tr = function Tr(props) {
|
|
|
64607
64609
|
var rowIndex = index + currentIndex;
|
|
64608
64610
|
var originKey = getKey(props.keygen, item, rowIndex);
|
|
64609
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
|
+
}
|
|
64610
64623
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tr, {
|
|
64611
64624
|
originKey: originKey,
|
|
64612
64625
|
row: rowData[index],
|
|
@@ -64634,7 +64647,8 @@ var Tr = function Tr(props) {
|
|
|
64634
64647
|
striped: props.striped,
|
|
64635
64648
|
radio: props.radio,
|
|
64636
64649
|
hover: hover,
|
|
64637
|
-
isSelect: props.datum.check(
|
|
64650
|
+
isSelect: props.datum.check(selectData),
|
|
64651
|
+
selectData: selectData,
|
|
64638
64652
|
handleCellHover: handleCellHover
|
|
64639
64653
|
// to update
|
|
64640
64654
|
,
|
|
@@ -65321,7 +65335,9 @@ var emptyRef = {
|
|
|
65321
65335
|
currentIndex: virtualInfo.startIndex,
|
|
65322
65336
|
data: virtualInfo.data,
|
|
65323
65337
|
setRowHeight: virtualInfo.setRowHeight,
|
|
65324
|
-
scrolling: scrolling
|
|
65338
|
+
scrolling: scrolling,
|
|
65339
|
+
virtualRowSpanInfo: virtualInfo.rowSpanInfo,
|
|
65340
|
+
fullData: treeData
|
|
65325
65341
|
}))]
|
|
65326
65342
|
}), showFoot ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
65327
65343
|
className: footWrapperClass,
|
|
@@ -71889,7 +71905,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
71889
71905
|
|
|
71890
71906
|
|
|
71891
71907
|
/* harmony default export */ var src_0 = ({
|
|
71892
|
-
version: '3.7.9-beta.
|
|
71908
|
+
version: '3.7.9-beta.4'
|
|
71893
71909
|
});
|
|
71894
71910
|
}();
|
|
71895
71911
|
/******/ return __webpack_exports__;
|