style: pretty-quick
parent
83f7c6ed41
commit
382f603301
|
@ -198,7 +198,7 @@ export declare class Cascader extends AntdComponent {
|
|||
* @type Array<string | number>
|
||||
*/
|
||||
value?: Array<string | number>;
|
||||
}
|
||||
};
|
||||
/**
|
||||
* remove focus
|
||||
*/
|
||||
|
|
|
@ -35,5 +35,5 @@ export declare class Comment extends AntdComponent {
|
|||
* @type any ( string | slot)
|
||||
*/
|
||||
datetime?: VNodeChild | JSX.Element;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -18,14 +18,20 @@ export declare class DropdownButton extends AntdComponent {
|
|||
* the dropdown menu
|
||||
* @type () => Menu
|
||||
*/
|
||||
overlay?: () => Menu
|
||||
overlay?: () => Menu;
|
||||
|
||||
/**
|
||||
* placement of pop menu: bottomLeft bottomCenter bottomRight topLeft topCenter topRight
|
||||
* @default 'bottomLeft'
|
||||
* @type string
|
||||
*/
|
||||
placement?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
||||
placement?:
|
||||
| 'topLeft'
|
||||
| 'topCenter'
|
||||
| 'topRight'
|
||||
| 'bottomLeft'
|
||||
| 'bottomCenter'
|
||||
| 'bottomRight';
|
||||
|
||||
/**
|
||||
* size of the button, the same as Button
|
||||
|
@ -57,5 +63,5 @@ export declare class DropdownButton extends AntdComponent {
|
|||
* Icon (appears on the right) (1.5.0)
|
||||
*/
|
||||
icon?: VNodeChild | JSX.Element;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ export declare class Dropdown extends AntdComponent {
|
|||
* the dropdown menu
|
||||
* @type () => Menu
|
||||
*/
|
||||
overlay?: () => Menu
|
||||
overlay?: () => Menu;
|
||||
|
||||
/**
|
||||
* Class name of the dropdown root element
|
||||
|
@ -59,6 +59,12 @@ export declare class Dropdown extends AntdComponent {
|
|||
* @default 'bottomLeft'
|
||||
* @type string
|
||||
*/
|
||||
placement?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
||||
}
|
||||
placement?:
|
||||
| 'topLeft'
|
||||
| 'topCenter'
|
||||
| 'topRight'
|
||||
| 'bottomLeft'
|
||||
| 'bottomCenter'
|
||||
| 'bottomRight';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -83,6 +83,5 @@ export declare class Col extends AntdComponent {
|
|||
* @type { span: ColSpanType, offset: ColSpanType } | ColSpanType
|
||||
*/
|
||||
xxl?: { span: ColSpanType; offset: ColSpanType } | ColSpanType;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -42,5 +42,5 @@ export declare class Row extends AntdComponent {
|
|||
* @type string
|
||||
*/
|
||||
justify?: 'start' | 'end' | 'center' | 'space-around' | 'space-between';
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -83,5 +83,5 @@ export declare class InputNumber extends AntdComponent {
|
|||
* @type number | string
|
||||
*/
|
||||
value?: number | string;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -19,5 +19,5 @@ export declare class InputGroup extends AntdComponent {
|
|||
* @type string
|
||||
*/
|
||||
size?: 'small' | 'large' | 'default';
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -13,5 +13,5 @@ export declare class InputSearch extends AntdComponent {
|
|||
* @type any (boolean | slot)
|
||||
*/
|
||||
enterButton?: boolean | VNodeChild | JSX.Element;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -81,5 +81,5 @@ export declare class Input extends AntdComponent {
|
|||
* allow to remove input content with clear icon
|
||||
*/
|
||||
allowClear?: boolean;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,12 +5,11 @@
|
|||
import { AntdComponent } from '../component';
|
||||
|
||||
export declare class Password extends AntdComponent {
|
||||
$props:{
|
||||
$props: {
|
||||
/**
|
||||
* Whether show toggle button
|
||||
* @default true
|
||||
*/
|
||||
visibilityToggle?: boolean;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -71,5 +71,5 @@ export declare class Mentions extends AntdComponent {
|
|||
* @default () => HTMLElement
|
||||
*/
|
||||
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,5 +11,5 @@ export declare class Option extends AntdComponent {
|
|||
* @type string
|
||||
*/
|
||||
value?: string;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -24,5 +24,5 @@ export declare class MenuItem extends AntdComponent {
|
|||
* @type string
|
||||
*/
|
||||
title?: string;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -106,5 +106,5 @@ export declare class Menu extends AntdComponent {
|
|||
* @type boolean
|
||||
*/
|
||||
inlineCollapsed?: boolean;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -30,5 +30,5 @@ export declare class SubMenu extends AntdComponent {
|
|||
* Sub-menu class name (1.5.0)
|
||||
*/
|
||||
popupClassName?: string;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -70,6 +70,5 @@ export declare class PageHeader extends AntdComponent {
|
|||
* Specify a callback that will be called when a user clicks backIcon.
|
||||
*/
|
||||
onBack(): () => void;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
import { AntdComponent } from './component';
|
||||
import { VNodeChild } from 'vue';
|
||||
interface PaginationRenderProps {
|
||||
page: number
|
||||
type: 'page' | 'prev' | 'next'
|
||||
originalElement: any
|
||||
page: number;
|
||||
type: 'page' | 'prev' | 'next';
|
||||
originalElement: any;
|
||||
}
|
||||
export declare class Pagination extends AntdComponent {
|
||||
$props: {
|
||||
|
@ -95,6 +95,6 @@ export declare class Pagination extends AntdComponent {
|
|||
* to customize item innerHTML
|
||||
* @type Function
|
||||
*/
|
||||
itemRender?: (props:PaginationRenderProps) => VNodeChild | JSX.Element;
|
||||
}
|
||||
itemRender?: (props: PaginationRenderProps) => VNodeChild | JSX.Element;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -46,6 +46,5 @@ export declare class Popconfirm extends AntdComponent {
|
|||
* @type boolean
|
||||
*/
|
||||
disabled?: boolean;
|
||||
} & TooltipCommon
|
||||
|
||||
} & TooltipCommon;
|
||||
}
|
||||
|
|
|
@ -18,5 +18,5 @@ export declare class Popover extends AntdComponent {
|
|||
* @type any (string | slot | VNode)
|
||||
*/
|
||||
title?: VNodeChild | JSX.Element;
|
||||
} & TooltipCommon
|
||||
} & TooltipCommon;
|
||||
}
|
||||
|
|
|
@ -92,5 +92,5 @@ export declare class Progress extends AntdComponent {
|
|||
* @type number
|
||||
*/
|
||||
width?: number;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,11 +6,11 @@ import { RadioProps, Radio } from './radio';
|
|||
|
||||
declare class RadioButtonProps extends RadioProps {
|
||||
/**
|
||||
* Type of radio button
|
||||
* @type string
|
||||
*/
|
||||
* Type of radio button
|
||||
* @type string
|
||||
*/
|
||||
type?: 'primary' | 'danger' | 'dashed' | 'ghost' | 'default';
|
||||
}
|
||||
export declare class RadioButton extends Radio {
|
||||
$props: RadioButtonProps
|
||||
$props: RadioButtonProps;
|
||||
}
|
||||
|
|
|
@ -53,6 +53,6 @@ export declare class RadioGroup extends AntdComponent {
|
|||
/**
|
||||
* The callback function that is triggered when the state changes.
|
||||
*/
|
||||
onChange?:(e:Event)=>void
|
||||
}
|
||||
onChange?: (e: Event) => void;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ export declare class RadioProps {
|
|||
export declare class Radio extends AntdComponent {
|
||||
static Group: typeof RadioGroup;
|
||||
static Button: typeof RadioButton;
|
||||
$props: RadioProps
|
||||
$props: RadioProps;
|
||||
/**
|
||||
* remove focus
|
||||
*/
|
||||
|
|
|
@ -62,8 +62,7 @@ export declare class Rate extends AntdComponent {
|
|||
value?: number;
|
||||
|
||||
tooltips?: Array<string>;
|
||||
|
||||
}
|
||||
};
|
||||
/**
|
||||
* remove focus
|
||||
*/
|
||||
|
|
|
@ -18,6 +18,5 @@ export declare class OptionGroup extends AntdComponent {
|
|||
* @type any (string | slot)
|
||||
*/
|
||||
label?: VNodeChild | JSX.Element;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -36,6 +36,5 @@ export declare class Option extends AntdComponent {
|
|||
* @type string
|
||||
*/
|
||||
class?: string;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -48,10 +48,7 @@ export declare class Slider extends AntdComponent {
|
|||
* @type object
|
||||
*/
|
||||
marks?: {
|
||||
[key: number]: string
|
||||
| VNodeChild
|
||||
| { style: object; label: string | VNodeChild }
|
||||
| Function;
|
||||
[key: number]: string | VNodeChild | { style: object; label: string | VNodeChild } | Function;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -133,7 +130,7 @@ export declare class Slider extends AntdComponent {
|
|||
* @param value
|
||||
*/
|
||||
onChange?: (value?: any) => void;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* remove focus
|
||||
|
|
|
@ -6,7 +6,7 @@ import { AntdComponent } from '../component';
|
|||
import { VNodeChild, CSSProperties } from 'vue';
|
||||
|
||||
export declare class StatisticCountdown extends AntdComponent {
|
||||
$props:{
|
||||
$props: {
|
||||
/**
|
||||
* Format as moment
|
||||
* @default 'HH:mm:ss'
|
||||
|
@ -39,5 +39,5 @@ export declare class StatisticCountdown extends AntdComponent {
|
|||
* Set value css style
|
||||
*/
|
||||
valueStyle?: CSSProperties;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -58,5 +58,5 @@ export declare class Statistic extends AntdComponent {
|
|||
* @type string or number
|
||||
*/
|
||||
value?: string | number;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
||||
|
||||
import { AntdComponent } from '../component';
|
||||
import {VNodeChild} from 'vue';
|
||||
import { VNodeChild } from 'vue';
|
||||
export declare class Step extends AntdComponent {
|
||||
$props: {
|
||||
/**
|
||||
|
@ -32,5 +32,5 @@ export declare class Step extends AntdComponent {
|
|||
title?: VNodeChild | JSX.Element;
|
||||
disabled?: boolean;
|
||||
subTitle?: VNodeChild | JSX.Element;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -57,5 +57,5 @@ export declare class Steps extends AntdComponent {
|
|||
* @type boolean | Funtion
|
||||
*/
|
||||
progressDot?: boolean | Function;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -59,8 +59,7 @@ export declare class Switch extends AntdComponent {
|
|||
* @type any (string | slot)
|
||||
*/
|
||||
unCheckedChildren?: VNodeChild | JSX.Element;
|
||||
|
||||
}
|
||||
};
|
||||
/**
|
||||
* remove focus
|
||||
*/
|
||||
|
|
|
@ -25,5 +25,5 @@ export declare class TabPane extends AntdComponent {
|
|||
* @type any (string | slot)
|
||||
*/
|
||||
tab?: VNodeChild | JSX.Element;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -73,5 +73,5 @@ export declare class Tabs extends AntdComponent {
|
|||
* @type number
|
||||
*/
|
||||
tabBarGutter?: number;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -207,7 +207,7 @@ export declare class TimePicker extends AntdComponent {
|
|||
* @param open
|
||||
*/
|
||||
onOpenChange?: (open?: boolean) => void;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* remove focus
|
||||
|
|
|
@ -6,7 +6,7 @@ import { VNodeChild } from 'vue';
|
|||
import { AntdComponent } from '../component';
|
||||
|
||||
export declare class TimelineItem extends AntdComponent {
|
||||
$props:{
|
||||
$props: {
|
||||
/**
|
||||
* Set the circle's color to blue, red, green or other custom colors
|
||||
* @default 'blue'
|
||||
|
@ -19,6 +19,5 @@ export declare class TimelineItem extends AntdComponent {
|
|||
* @type any (string | slot)
|
||||
*/
|
||||
dot?: VNodeChild | JSX.Element;
|
||||
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ import { TimelineItem } from './timeline-item';
|
|||
export declare class Timeline extends AntdComponent {
|
||||
static Item: typeof TimelineItem;
|
||||
|
||||
$props:{
|
||||
$props: {
|
||||
/**
|
||||
* Set the last ghost node's existence or its content
|
||||
* @default false
|
||||
|
@ -37,5 +37,5 @@ export declare class Timeline extends AntdComponent {
|
|||
* @type string
|
||||
*/
|
||||
mode?: 'left' | 'alternate' | 'right';
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue