Skip to content

Commit

Permalink
fix: 修复 table sticky 没有透传问题
Browse files Browse the repository at this point in the history
  • Loading branch information
leehaoChen committed Apr 8, 2024
1 parent bcefff3 commit 65b6076
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shineout",
"version": "2.0.15-beta.3",
"version": "2.0.15-beta.4",
"description": "Shein 前端组件库",
"main": "./lib/index.js",
"module": "./es/index.js",
Expand Down
7 changes: 6 additions & 1 deletion src/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,12 @@ class Table<DataItem, Value> extends Component<OriginTableProps<DataItem, Value>

return (
<div className={className} ref={this.bindTable} style={newStyle} {...events}>
<RenderTable {...props} bordered={bordered} sticky={this.getShouldSticky()} inView={this.state.inView} />
<RenderTable
{...props}
bordered={bordered}
sticky={this.getShouldSticky() ? props.sticky : false}
inView={this.state.inView}
/>
{loading && (
<div className={tableClass('loading')}>{typeof loading === 'boolean' ? <Spin size={40} /> : loading}</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as utils from './utils'

export default { utils, version: '2.0.15-beta.2' }
export default { utils, version: '2.0.15-beta.4' }
export { utils }
export { setLocale } from './locale'
export { color, style } from './utils/expose'
Expand Down

0 comments on commit 65b6076

Please sign in to comment.