@hw-component/table 1.9.89 → 1.9.90
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.
|
@@ -13,7 +13,6 @@ var useHeaderStyle = function useHeaderStyle(_ref) {
|
|
|
13
13
|
var setHeaderStyle = function setHeaderStyle() {
|
|
14
14
|
var _bodyRef$current, _titleContentRef$curr, _rightNodeRef$current;
|
|
15
15
|
var headerWidth = ((_bodyRef$current = bodyRef.current) === null || _bodyRef$current === void 0 ? void 0 : _bodyRef$current.clientWidth) || 0;
|
|
16
|
-
console.log(headerWidth, "headerWidth");
|
|
17
16
|
var titleWidth = ((_titleContentRef$curr = titleContentRef.current) === null || _titleContentRef$curr === void 0 ? void 0 : _titleContentRef$curr.clientWidth) || 0;
|
|
18
17
|
var rightNodeWidth = ((_rightNodeRef$current = rightNodeRef.current) === null || _rightNodeRef$current === void 0 ? void 0 : _rightNodeRef$current.clientWidth) || 0;
|
|
19
18
|
if (rightNodeWidth + titleWidth >= headerWidth) {
|
|
@@ -14,7 +14,6 @@ var useHeaderStyle = function useHeaderStyle(_ref) {
|
|
|
14
14
|
var setHeaderStyle = function setHeaderStyle() {
|
|
15
15
|
var _bodyRef$current, _titleContentRef$curr, _rightNodeRef$current;
|
|
16
16
|
var headerWidth = ((_bodyRef$current = bodyRef.current) === null || _bodyRef$current === void 0 ? void 0 : _bodyRef$current.clientWidth) || 0;
|
|
17
|
-
console.log(headerWidth, "headerWidth");
|
|
18
17
|
var titleWidth = ((_titleContentRef$curr = titleContentRef.current) === null || _titleContentRef$curr === void 0 ? void 0 : _titleContentRef$curr.clientWidth) || 0;
|
|
19
18
|
var rightNodeWidth = ((_rightNodeRef$current = rightNodeRef.current) === null || _rightNodeRef$current === void 0 ? void 0 : _rightNodeRef$current.clientWidth) || 0;
|
|
20
19
|
if (rightNodeWidth + titleWidth >= headerWidth) {
|
package/package.json
CHANGED
|
@@ -10,7 +10,6 @@ export const useHeaderStyle = ({bodyRef,titleContentRef,rightNodeRef}:HeaderStyl
|
|
|
10
10
|
const [style, setStyle] = useState({});
|
|
11
11
|
const setHeaderStyle = () => {
|
|
12
12
|
const headerWidth = bodyRef.current?.clientWidth || 0;
|
|
13
|
-
console.log(headerWidth,"headerWidth")
|
|
14
13
|
const titleWidth = titleContentRef.current?.clientWidth || 0;
|
|
15
14
|
const rightNodeWidth = rightNodeRef.current?.clientWidth || 0;
|
|
16
15
|
if (rightNodeWidth + titleWidth >= headerWidth) {
|