New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rsuite-table

Package Overview
Dependencies
Maintainers
1
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rsuite-table - npm Package Compare versions

Comparing version 3.6.0 to 3.6.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 3.6.1
- Fix \_constants is not defined #103
# 3.6.0

@@ -2,0 +6,0 @@

18

lib/Table.js

@@ -83,3 +83,3 @@ 'use strict';

var _constants2 = require('./constants');
var _constants = require('./constants');

@@ -542,3 +542,3 @@ var _propTypes = require('prop-types');

var showLeftShadow = this.scrollX < 0;
var showRightShadow = width - contentWidth - _constants2.SCROLLBAR_WIDTH !== this.scrollX;
var showRightShadow = width - contentWidth - _constants.SCROLLBAR_WIDTH !== this.scrollX;

@@ -600,3 +600,3 @@ (0, _utils.toggleClass)(fixedLeftGroups, leftShadowClassName, showLeftShadow);

// 这里 -SCROLLBAR_WIDTH 是为了让滚动条不挡住内容部分
this.minScrollX = -(contentWidth - this.state.width) - _constants2.SCROLLBAR_WIDTH;
this.minScrollX = -(contentWidth - this.state.width) - _constants.SCROLLBAR_WIDTH;

@@ -646,3 +646,3 @@ /**

// 这里 -SCROLLBAR_WIDTH 是为了让滚动条不挡住内容部分
this.minScrollY = -(contentHeight - height) - _constants2.SCROLLBAR_WIDTH;
this.minScrollY = -(contentHeight - height) - _constants.SCROLLBAR_WIDTH;
}

@@ -657,4 +657,4 @@

// 当 Table 为 virtualized 时, wheel 事件触发每次都会进入该逻辑, 避免在滚动到底部后滚动条重置, +SCROLLBAR_WIDTH
if (Math.abs(this.scrollY) + height - headerHeight > nextContentHeight + _constants2.SCROLLBAR_WIDTH) {
this.scrollTop(nextContentHeight + _constants2.SCROLLBAR_WIDTH);
if (Math.abs(this.scrollY) + height - headerHeight > nextContentHeight + _constants.SCROLLBAR_WIDTH) {
this.scrollTop(nextContentHeight + _constants.SCROLLBAR_WIDTH);
}

@@ -897,3 +897,3 @@ }

var maxHeight = tableRowsMaxHeight[index];
var nextRowHeight = maxHeight ? maxHeight + _constants2.CELL_PADDING_HEIGHT : rowHeight;
var nextRowHeight = maxHeight ? maxHeight + _constants.CELL_PADDING_HEIGHT : rowHeight;
var shouldRenderExpandedRow = this.shouldRenderExpandedRow(_rowData);

@@ -1464,4 +1464,4 @@ var depth = 0;

// 滚动条的高度
var scrollbarHeight = Math.max((height - headerHeight) / (contentHeight + _constants2.SCROLLBAR_WIDTH) * (height - headerHeight), _constants2.SCROLLBAR_MIN_WIDTH);
y = Math.max(0, top / (contentHeight + _constants2.SCROLLBAR_WIDTH) * (height - headerHeight) - scrollbarHeight);
var scrollbarHeight = Math.max((height - headerHeight) / (contentHeight + _constants.SCROLLBAR_WIDTH) * (height - headerHeight), _constants.SCROLLBAR_MIN_WIDTH);
y = Math.max(0, top / (contentHeight + _constants.SCROLLBAR_WIDTH) * (height - headerHeight) - scrollbarHeight);
}

@@ -1468,0 +1468,0 @@ _this3.scrollbarY.resetScrollBarPosition(y);

{
"name": "rsuite-table",
"version": "3.6.0",
"version": "3.6.1",
"description": "A React table component",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -1047,3 +1047,3 @@ // @flow

? { right: 0 }
: { left: width - fixedRightCellGroupWidth - _constants.SCROLLBAR_WIDTH }
: { left: width - fixedRightCellGroupWidth - SCROLLBAR_WIDTH }
}

@@ -1050,0 +1050,0 @@ height={props.isHeaderRow ? props.headerHeight : props.height}

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc