Skip to content

Commit dddba01

Browse files
committed
doc: add English comments.
1 parent 4910cc4 commit dddba01

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/index.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,24 @@ export interface SplitProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
66
className?: string;
77
prefixCls?: string;
88
/**
9-
* 拖拽宽度/高度变化回调函数,宽度或者高度根据 mode 参数来确定
9+
* Drag width/height change callback function,
10+
* the width or height is determined according to the mode parameter
1011
*/
1112
onDragging?: (preSize: number, nextSize: number, paneNumber: number) => void;
12-
/** 拖拽结束的回调函数 */
13+
/** Callback function for dragging end */
1314
onDragEnd?: (preSize: number, nextSize: number, paneNumber: number) => void;
14-
/** 支持自定义拖拽工具栏 */
15+
/** Support custom drag and drop toolbar */
1516
renderBar?: (props: React.HTMLAttributes<HTMLDivElement>) => JSX.Element;
16-
/** 设置拖拽的工具条,为线条样式。 */
17+
/** Set the drag and drop toolbar as a line style. */
1718
lineBar?: boolean;
18-
/** 设置拖拽的工具条,是否可见 */
19+
/** Set the dragged toolbar, whether it is visible or not */
1920
visiable?: boolean | number[];
2021
/**
21-
* 设置拖拽的工具条,禁用
22+
* Set the drag and drop toolbar, disable
2223
*/
2324
disable?: boolean | number[];
2425
/**
25-
* 类型,可选值为 `horizontal` `vertical`
26+
* type, optional `horizontal` or `vertical`
2627
*/
2728
mode?: 'horizontal' | 'vertical';
2829
}

0 commit comments

Comments
 (0)