Fixed #1836 - For Divider

pull/1846/head
mertsincan 2021-12-01 16:32:52 +03:00
parent f13403488f
commit beb8a060e1
1 changed files with 53 additions and 8 deletions

View File

@ -1,16 +1,61 @@
import { VNode } from 'vue'; import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
interface DividerProps { type DividerHorizontalAlignType = 'left' | 'center' | 'right';
align?: string;
layout?: string; type DividerVerticalAlignType = 'top' | 'center' | 'bottom';
type?: string;
type DividerAlignType = DividerHorizontalAlignType | DividerVerticalAlignType | undefined;
type DividerLayoutType = 'horizontal' | 'vertical';
type DividerType = 'solid' | 'dashed' | 'dotted';
export interface DividerProps {
/**
* Alignment of the content, options are "left", "center", "right" for horizontal layout and "top", "center", "bottom" for vertical.
* @see DividerAlignType
*/
align?: DividerAlignType;
/**
* Specifies the orientation, valid values are "horizontal" and "vertical".
* @see DividerLayoutType
* Default value is 'horizontal'.
*/
layout?: DividerLayoutType;
/**
* Border style type.
* @see DividerType
* Default value is 'solid'.
*/
type?: DividerType;
} }
declare class Divider { export interface DividerSlots {
$props: DividerProps; /**
$slots: { * Default content slot.
'': VNode[]; */
default: () => VNode[];
}
export declare type DividerEmits = {
}
declare class Divider extends ClassComponent<DividerProps, DividerSlots, DividerEmits> { }
declare module '@vue/runtime-core' {
interface GlobalComponents {
Divider: GlobalComponentConstructor<Divider>
} }
} }
/**
*
* Divider is used to separate contents.
*
* Demos:
*
* - [Divider](https://www.primefaces.org/primevue/showcase/#/divider)
*
*/
export default Divider; export default Divider;