Skip to content

Commit

Permalink
fix(Divider): type missing (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahshan-teng authored Mar 23, 2023
1 parent 7119e36 commit 0958cdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Divider/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ toc: 'content'
| textClassName | 分割线文字类名 | string | - |
| textPosition | 分割线文字位置,可选`left` `center` `right` | string | `center` |
| textStyle | 分割线文字样式 | string | - |
| text | 分割线文字 | string \| slot | - |

4 changes: 2 additions & 2 deletions src/Divider/props.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { IBaseProps } from '../_util/base';


export interface IDividerProps extends IBaseProps {
lineColor: string;
lineHeight: number;
lineType: 'solid' | 'dashed' | 'dotted';
lineWidth: number;
text: string;
textStyle: string;
textClassName: string;
textPosition: 'left' | 'center' | 'right';
direction: 'horizontal' | 'vertical';
Expand All @@ -16,4 +17,3 @@ export const DividerDefaultProps: Partial<IDividerProps> = {
direction: 'horizontal',
lineType: 'solid',
};

0 comments on commit 0958cdd

Please sign in to comment.