chore: update type divider (#2687)

pull/2695/head
xrkffgg 2020-08-17 13:54:25 +08:00 committed by GitHub
parent 0587798674
commit 10ca7ae8b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 18 deletions

38
types/divider.d.ts vendored
View File

@ -5,24 +5,26 @@
import { AntdComponent } from './component'; import { AntdComponent } from './component';
export declare class Divider extends AntdComponent { export declare class Divider extends AntdComponent {
/** $props: {
* whether line is dashed /**
* @default false * whether line is dashed
* @type boolean * @default false
*/ * @type boolean
dashed: boolean; */
dashed?: boolean;
/** /**
* position of title inside divider * position of title inside divider
* @default 'center' * @default 'center'
* @type string * @type string
*/ */
orientation: 'left' | 'right' | 'center'; orientation?: 'left' | 'right' | 'center';
/** /**
* direction type of divider * direction type of divider
* @default 'horizontal' * @default 'horizontal'
* @type string * @type string
*/ */
type: 'horizontal' | 'vertical'; type?: 'horizontal' | 'vertical';
};
} }