antd-mini
Version:
antd-mini 是支付宝小程序 UI 组件库,遵循 Ant Design 规范。
32 lines (28 loc) • 734 B
text/typescript
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';
}
export const DividerDefaultProps: Partial<IDividerProps> = {
textPosition: 'center',
direction: 'horizontal',
lineType: 'solid',
};
export const DividerFunctionalProps: Partial<IDividerProps> = {
lineColor: '',
lineHeight: 0,
lineType: 'solid',
lineWidth: 0,
text: '',
textStyle: '',
textClassName: '',
textPosition: 'center',
direction: 'horizontal',
};