Skip to content

Commit

Permalink
release(tab): v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Nov 7, 2023
1 parent 20b38bd commit 4b29d04
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.json
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
},
"tab": {
"react": true,
"version": "0.1.3",
"version": "0.2.1",
"style": true,
"icon": false,
"test": true,
Expand Down
2 changes: 1 addition & 1 deletion src/tab/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tab",
"version": "0.2.0",
"version": "0.2.1",
"description": "Easy tabs",
"luna": {
"react": true
Expand Down
3 changes: 2 additions & 1 deletion src/tab/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Tab from './index'
import { useForceUpdate, useNonInitialEffect } from '../share/hooks'

interface ITabProps {
className?: string
height?: number
onSelect?: (id: string) => void
onDeselect?: () => void
Expand Down Expand Up @@ -44,7 +45,7 @@ const LunaTab: FC<PropsWithChildren<ITabProps>> = (props) => {
}, [props.height])

return (
<div ref={tabRef}>
<div className={props.className || ''} ref={tabRef}>
{Children.map(props.children, (child) => {
if (isValidElement(child)) {
return cloneElement(child as ReactElement, {
Expand Down

0 comments on commit 4b29d04

Please sign in to comment.