@sheinx/hooks 3.3.0-beta.8 → 3.3.0-beta.9
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.
@@ -258,7 +258,7 @@ var usePositionStyle = exports.usePositionStyle = function usePositionStyle(conf
|
|
258
258
|
setStyle(newStyle);
|
259
259
|
}
|
260
260
|
});
|
261
|
-
(0, _react.useEffect)(updateStyle, [show, position, absolute, updateKey]);
|
261
|
+
(0, _react.useEffect)(updateStyle, [show, position, absolute, updateKey, fixedWidth]);
|
262
262
|
return style;
|
263
263
|
};
|
264
264
|
var _default = exports.default = usePositionStyle;
|
@@ -239,8 +239,8 @@ export interface TableColumnItem<DataItem> {
|
|
239
239
|
*/
|
240
240
|
style?: React.CSSProperties;
|
241
241
|
/**
|
242
|
-
* @cn
|
243
|
-
* @en Click event of column
|
242
|
+
* @cn 可展开元素点击事件仅当(仅该列为行展开列,并且传入 expandKeys 的时候生效)
|
243
|
+
* @en Click event of expandable element only when (only this column is row-expand column and expandKeys is passed in)
|
244
244
|
*/
|
245
245
|
onClick?: (d: DataItem, isExpand: boolean) => void;
|
246
246
|
/**
|
@@ -248,7 +248,7 @@ export var usePositionStyle = function usePositionStyle(config) {
|
|
248
248
|
setStyle(newStyle);
|
249
249
|
}
|
250
250
|
});
|
251
|
-
useEffect(updateStyle, [show, position, absolute, updateKey]);
|
251
|
+
useEffect(updateStyle, [show, position, absolute, updateKey, fixedWidth]);
|
252
252
|
return style;
|
253
253
|
};
|
254
254
|
export default usePositionStyle;
|
@@ -239,8 +239,8 @@ export interface TableColumnItem<DataItem> {
|
|
239
239
|
*/
|
240
240
|
style?: React.CSSProperties;
|
241
241
|
/**
|
242
|
-
* @cn
|
243
|
-
* @en Click event of column
|
242
|
+
* @cn 可展开元素点击事件仅当(仅该列为行展开列,并且传入 expandKeys 的时候生效)
|
243
|
+
* @en Click event of expandable element only when (only this column is row-expand column and expandKeys is passed in)
|
244
244
|
*/
|
245
245
|
onClick?: (d: DataItem, isExpand: boolean) => void;
|
246
246
|
/**
|