Skip to content

Commit 91ac461

Browse files
committed
released v0.0.10 (#11)
1 parent e7b3df7 commit 91ac461

5 files changed

Lines changed: 9 additions & 7 deletions

File tree

core/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ export interface TabsProps extends React.DetailedHTMLProps<React.HTMLAttributes<
298298
export interface TabProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
299299
id: string;
300300
index?: number;
301+
/** Whether the Y axis can be dragged */
302+
dragableY?: boolean;
301303
}
302304
export declare const Tab: FC<PropsWithChildren<TabProps>>;
303305
```

core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@uiw/react-tabs-draggable",
3-
"version": "0.0.9",
3+
"version": "0.0.10",
44
"description": "Draggable tabs for React.",
55
"homepage": "https://uiwjs.github.io/react-tabs-draggable",
66
"author": "kenny wong <wowohoo@qq.com>",

core/src/Tab.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { FC, PropsWithChildren, useCallback, useRef, useState } from 'react';
1+
import { FC, PropsWithChildren, useRef } from 'react';
22
import update from 'immutability-helper';
33
import { useDataContext } from './store';
4-
import { TabsProps } from './';
54
import { useDrag, useDrop } from 'react-dnd';
65
import type { Identifier, XYCoord } from 'dnd-core';
76

@@ -12,7 +11,8 @@ export const ItemTypes = {
1211
export interface TabProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
1312
id: string;
1413
index?: number;
15-
dragableY?: boolean; //Y轴是否可上下拖动
14+
/** Whether the Y axis can be dragged */
15+
dragableY?: boolean;
1616
}
1717

1818
export interface DragItem {

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.0.9",
2+
"version": "0.0.10",
33
"packages": ["core", "www"],
44
"useWorkspaces": true
55
}

www/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "www",
33
"private": true,
4-
"version": "0.0.9",
4+
"version": "0.0.10",
55
"description": "Draggable vscode-like tabs for React.",
66
"homepage": "https://uiwjs.github.io/react-tabs-draggable",
77
"license": "MIT",
@@ -24,7 +24,7 @@
2424
"@uiw/react-github-corners": "~1.5.14",
2525
"@uiw/react-markdown-preview": "^4.1.10",
2626
"@uiw/react-shields": "~1.1.3",
27-
"@uiw/react-tabs-draggable": "0.0.9",
27+
"@uiw/react-tabs-draggable": "0.0.10",
2828
"@uiw/reset.css": "~1.0.5",
2929
"@wcj/dark-mode": "~1.0.12",
3030
"markdown-react-code-preview-loader": "^2.1.2",

0 commit comments

Comments
 (0)