@hi-ui/hiui 3.9.0-rc.13 → 3.9.0-rc.14
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/es/table/Row.js +7 -7
- package/package.json +1 -1
package/es/table/Row.js
CHANGED
|
@@ -141,7 +141,7 @@ var Row = function Row(_ref) {
|
|
|
141
141
|
});
|
|
142
142
|
dragKey !== rowKey && setDropHightLineStatus(clienY < startClientY ? 'top' : 'bottom');
|
|
143
143
|
}, [rowKey, dropHightLineStatus, draggable]);
|
|
144
|
-
var
|
|
144
|
+
var onRowProps = onRow(isAvgRow || isSumRow ? null : rowData, index);
|
|
145
145
|
return [/*#__PURE__*/_react["default"].createElement("tr", (0, _extends2["default"])({
|
|
146
146
|
style: isFixed && rowHeight ? {
|
|
147
147
|
height: rowHeight
|
|
@@ -149,7 +149,7 @@ var Row = function Row(_ref) {
|
|
|
149
149
|
ref: innerRef,
|
|
150
150
|
id: rowKey,
|
|
151
151
|
draggable: draggable
|
|
152
|
-
},
|
|
152
|
+
}, onRowProps, {
|
|
153
153
|
onMouseMove: function onMouseMove() {
|
|
154
154
|
setDragRowKey(null);
|
|
155
155
|
setDragStatus(false);
|
|
@@ -169,11 +169,9 @@ var Row = function Row(_ref) {
|
|
|
169
169
|
if (!draggable) return;
|
|
170
170
|
setDropHightLineStatus(null);
|
|
171
171
|
},
|
|
172
|
-
className: (0, _classnames["default"])("".concat(prefix, "__row"), (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefix, "__row--error"), errorRowKeys.includes(rowData.key)), (0, _defineProperty2["default"])(_classNames, "".concat(prefix, "__row--highlight"), hoverRow === rowData.key || highlightedRowKeys.includes(rowData.key)), (0, _defineProperty2["default"])(_classNames, "".concat(prefix, "__row--total"), isSumRow), (0, _defineProperty2["default"])(_classNames, "".concat(prefix, "__row--draggable"), draggable), (0, _defineProperty2["default"])(_classNames, "".concat(prefix, "__row--draging"), draggable && dragRowKey === rowKey), (0, _defineProperty2["default"])(_classNames, "".concat(prefix, "__row--draggable__border--top"), draggable && typeof dargInfo.current.dropKey !== 'undefined' && dropHightLineStatus === 'top'), (0, _defineProperty2["default"])(_classNames, "".concat(prefix, "__row--draggable__border--bottom"), draggable && typeof dargInfo.current.dropKey !== 'undefined' && dropHightLineStatus === 'bottom'), (0, _defineProperty2["default"])(_classNames, "".concat(prefix, "__row--avg"), isAvgRow), _classNames)),
|
|
173
|
-
key: "row",
|
|
174
172
|
onDoubleClick: function onDoubleClick(e) {
|
|
175
|
-
if (
|
|
176
|
-
|
|
173
|
+
if (onRowProps && onRowProps.onDoubleClick) {
|
|
174
|
+
onRowProps.onDoubleClick(e);
|
|
177
175
|
}
|
|
178
176
|
|
|
179
177
|
if (highlightRowOnDoubleClick === false) {
|
|
@@ -187,7 +185,9 @@ var Row = function Row(_ref) {
|
|
|
187
185
|
} else {
|
|
188
186
|
setHighlightRows(highlightedRowKeys.concat(rowData.key));
|
|
189
187
|
}
|
|
190
|
-
}
|
|
188
|
+
},
|
|
189
|
+
className: (0, _classnames["default"])("".concat(prefix, "__row"), (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefix, "__row--error"), errorRowKeys.includes(rowData.key)), (0, _defineProperty2["default"])(_classNames, "".concat(prefix, "__row--highlight"), hoverRow === rowData.key || highlightedRowKeys.includes(rowData.key)), (0, _defineProperty2["default"])(_classNames, "".concat(prefix, "__row--total"), isSumRow), (0, _defineProperty2["default"])(_classNames, "".concat(prefix, "__row--draggable"), draggable), (0, _defineProperty2["default"])(_classNames, "".concat(prefix, "__row--draging"), draggable && dragRowKey === rowKey), (0, _defineProperty2["default"])(_classNames, "".concat(prefix, "__row--draggable__border--top"), draggable && typeof dargInfo.current.dropKey !== 'undefined' && dropHightLineStatus === 'top'), (0, _defineProperty2["default"])(_classNames, "".concat(prefix, "__row--draggable__border--bottom"), draggable && typeof dargInfo.current.dropKey !== 'undefined' && dropHightLineStatus === 'bottom'), (0, _defineProperty2["default"])(_classNames, "".concat(prefix, "__row--avg"), isAvgRow), _classNames)),
|
|
190
|
+
key: "row"
|
|
191
191
|
}), rowSelection && isFixed !== 'right' && !isSumRow && !isAvgRow && /*#__PURE__*/_react["default"].createElement("td", {
|
|
192
192
|
style: {
|
|
193
193
|
width: checkboxColWidth
|
package/package.json
CHANGED