shineout 3.9.3-beta.3 → 3.9.3-beta.5
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 +16 -27
- 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.5'
|
|
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.5');
|
|
12406
12406
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12407
12407
|
|
|
12408
12408
|
|
|
@@ -26541,12 +26541,13 @@ var switchStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
26541
26541
|
backgroundColor: src.switchDisabledCircleCheckedFill
|
|
26542
26542
|
},
|
|
26543
26543
|
'$wrapperDisabled &': {
|
|
26544
|
+
boxShadow: 'none',
|
|
26544
26545
|
backgroundColor: src.switchCheckedDisabledCircleFill
|
|
26545
26546
|
},
|
|
26546
26547
|
borderRadius: '50%',
|
|
26547
26548
|
position: 'absolute',
|
|
26548
26549
|
backgroundColor: src.switchCircleFill,
|
|
26549
|
-
|
|
26550
|
+
boxShadow: src.switchCircleShadow,
|
|
26550
26551
|
transition: "left ".concat(switch_transition, ", right ").concat(switch_transition)
|
|
26551
26552
|
},
|
|
26552
26553
|
content: {
|
|
@@ -64645,6 +64646,7 @@ var useColumns = function useColumns(props) {
|
|
|
64645
64646
|
columnInfo: {
|
|
64646
64647
|
handleScroll: handleScroll
|
|
64647
64648
|
},
|
|
64649
|
+
currentColIndex: startIndex,
|
|
64648
64650
|
expandHideCol: context.expandHideCol
|
|
64649
64651
|
};
|
|
64650
64652
|
};
|
|
@@ -66758,7 +66760,6 @@ function useComponentMemo(getValue, condition, shouldUpdate) {
|
|
|
66758
66760
|
;// CONCATENATED MODULE: ../base/src/table/td.tsx
|
|
66759
66761
|
|
|
66760
66762
|
|
|
66761
|
-
|
|
66762
66763
|
function Td(props) {
|
|
66763
66764
|
var col = props.col,
|
|
66764
66765
|
colSpan = props.colSpan,
|
|
@@ -66766,12 +66767,11 @@ function Td(props) {
|
|
|
66766
66767
|
className = props.className,
|
|
66767
66768
|
direction = props.direction,
|
|
66768
66769
|
role = props.role,
|
|
66769
|
-
data = props.data,
|
|
66770
66770
|
onClick = props.onClick,
|
|
66771
66771
|
onMouseEnter = props.onMouseEnter,
|
|
66772
66772
|
onMouseLeave = props.onMouseLeave,
|
|
66773
66773
|
renderContent = props.renderContent;
|
|
66774
|
-
|
|
66774
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("td", {
|
|
66775
66775
|
colSpan: colSpan,
|
|
66776
66776
|
rowSpan: rowSpan,
|
|
66777
66777
|
onMouseEnter: onMouseEnter,
|
|
@@ -66783,20 +66783,6 @@ function Td(props) {
|
|
|
66783
66783
|
onClick: onClick,
|
|
66784
66784
|
children: renderContent(props.col, props.data)
|
|
66785
66785
|
}, col.key);
|
|
66786
|
-
if (props.virtual === 'lazy') {
|
|
66787
|
-
var _props$style, _props$style2;
|
|
66788
|
-
return useComponentMemo(function () {
|
|
66789
|
-
return $td;
|
|
66790
|
-
}, [data, className, (_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.left, (_props$style2 = props.style) === null || _props$style2 === void 0 ? void 0 : _props$style2.right, col.type, col.treeColumnsName], function (prev, next) {
|
|
66791
|
-
if (col.type || col.treeColumnsName) {
|
|
66792
|
-
return true;
|
|
66793
|
-
}
|
|
66794
|
-
return prev.some(function (_, index) {
|
|
66795
|
-
return !shallowEqual(prev === null || prev === void 0 ? void 0 : prev[index], next === null || next === void 0 ? void 0 : next[index]);
|
|
66796
|
-
}) || !props.scrolling;
|
|
66797
|
-
});
|
|
66798
|
-
}
|
|
66799
|
-
return $td;
|
|
66800
66786
|
}
|
|
66801
66787
|
;// CONCATENATED MODULE: ../base/src/table/tr.tsx
|
|
66802
66788
|
|
|
@@ -67198,8 +67184,9 @@ var Tr = function Tr(props) {
|
|
|
67198
67184
|
/* harmony default export */ var tbody = (function (props) {
|
|
67199
67185
|
var _props$columns = props.columns,
|
|
67200
67186
|
columns = _props$columns === void 0 ? [] : _props$columns,
|
|
67201
|
-
_props$
|
|
67202
|
-
|
|
67187
|
+
_props$currentRowInde = props.currentRowIndex,
|
|
67188
|
+
currentRowIndex = _props$currentRowInde === void 0 ? 0 : _props$currentRowInde,
|
|
67189
|
+
currentColIndex = props.currentColIndex,
|
|
67203
67190
|
_props$hover = props.hover,
|
|
67204
67191
|
hover = _props$hover === void 0 ? true : _props$hover;
|
|
67205
67192
|
var _useTableExpand = use_table_expand({
|
|
@@ -67212,7 +67199,7 @@ var Tr = function Tr(props) {
|
|
|
67212
67199
|
var _useTableRow = use_table_row({
|
|
67213
67200
|
columns: props.columns,
|
|
67214
67201
|
data: props.data,
|
|
67215
|
-
currentIndex:
|
|
67202
|
+
currentIndex: currentRowIndex,
|
|
67216
67203
|
hover: hover
|
|
67217
67204
|
}),
|
|
67218
67205
|
rowData = _useTableRow.rowData,
|
|
@@ -67224,7 +67211,7 @@ var Tr = function Tr(props) {
|
|
|
67224
67211
|
});
|
|
67225
67212
|
var renderRow = function renderRow(item, index) {
|
|
67226
67213
|
var _props$rowEvents;
|
|
67227
|
-
var rowIndex = index +
|
|
67214
|
+
var rowIndex = index + currentRowIndex;
|
|
67228
67215
|
var originKey = getKey(props.keygen, item, rowIndex);
|
|
67229
67216
|
var trRenderKey = props.loader || (_props$rowEvents = props.rowEvents) !== null && _props$rowEvents !== void 0 && _props$rowEvents.draggable ? originKey : "".concat(originKey, "-").concat(rowIndex);
|
|
67230
67217
|
|
|
@@ -67293,7 +67280,7 @@ var Tr = function Tr(props) {
|
|
|
67293
67280
|
if (props.virtual === 'lazy') {
|
|
67294
67281
|
return useComponentMemo(function () {
|
|
67295
67282
|
return $tbody;
|
|
67296
|
-
}, [props.data
|
|
67283
|
+
}, [currentRowIndex, currentColIndex, props.data], function (prev, next) {
|
|
67297
67284
|
return prev.some(function (_, index) {
|
|
67298
67285
|
return !shallowEqual(prev === null || prev === void 0 ? void 0 : prev[index], next === null || next === void 0 ? void 0 : next[index]);
|
|
67299
67286
|
}) || !props.scrolling;
|
|
@@ -67540,7 +67527,8 @@ function Table(props) {
|
|
|
67540
67527
|
}),
|
|
67541
67528
|
columns = _useTableColumns.columns,
|
|
67542
67529
|
expandHideCol = _useTableColumns.expandHideCol,
|
|
67543
|
-
columnInfo = _useTableColumns.columnInfo
|
|
67530
|
+
columnInfo = _useTableColumns.columnInfo,
|
|
67531
|
+
currentColIndex = _useTableColumns.currentColIndex;
|
|
67544
67532
|
var _useTableLayout = use_table_layout({
|
|
67545
67533
|
theadRef: theadRef,
|
|
67546
67534
|
tbodyRef: tbodyRef,
|
|
@@ -67986,7 +67974,8 @@ function Table(props) {
|
|
|
67986
67974
|
}),
|
|
67987
67975
|
ref: tbodyRef,
|
|
67988
67976
|
children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tbody, objectSpread2_default()(objectSpread2_default()({}, bodyCommonProps), {}, {
|
|
67989
|
-
|
|
67977
|
+
currentRowIndex: virtualInfo.startIndex,
|
|
67978
|
+
currentColIndex: currentColIndex,
|
|
67990
67979
|
data: virtualInfo.data,
|
|
67991
67980
|
setRowHeight: virtualInfo.setRowHeight,
|
|
67992
67981
|
scrolling: scrolling,
|
|
@@ -74658,7 +74647,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
74658
74647
|
|
|
74659
74648
|
|
|
74660
74649
|
/* harmony default export */ var src_0 = ({
|
|
74661
|
-
version: '3.9.3-beta.
|
|
74650
|
+
version: '3.9.3-beta.5'
|
|
74662
74651
|
});
|
|
74663
74652
|
}();
|
|
74664
74653
|
/******/ return __webpack_exports__;
|