chore: update types

pull/2777/head
tanjinzhou 2020-08-31 14:59:56 +08:00
parent 382f603301
commit 5b5beb5942
96 changed files with 179 additions and 176 deletions

4
types/affix.d.ts vendored
View File

@ -2,10 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
export declare class Affix extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Pixels to offset from top when calculating position of scroll
* @default 0

4
types/alert.d.ts vendored
View File

@ -2,11 +2,11 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { VNodeChild } from 'vue';
export declare class Alert extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Called when close animation is finished
* @type Function

View File

@ -3,9 +3,10 @@
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { VNodeChild } from 'vue';
import { AntdComponent, AntdProps } from '../component';
export declare class AnchorLink {
$props: {
export declare class AnchorLink extends AntdComponent {
$props: AntdProps & {
/**
* target of hyperlink
* @type string

View File

@ -4,12 +4,12 @@
import { CSSProperties } from 'vue';
import { AnchorLink } from './anchor-link';
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export declare class Anchor extends AntdComponent {
static Link: typeof AnchorLink;
$props: {
$props: AntdProps & {
/**
* Fixed mode of Anchor
* @default true

View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { CSSProperties } from 'vue';
export declare type Value = { key: string };
@ -10,7 +10,7 @@ export declare type Value = { key: string };
export declare type SelectValue = string | number | Value | Array<Value | string | number>;
export declare class AutoComplete extends AntdComponent {
$props: {
$props: AntdProps & {
dropdownMenuStyle: CSSProperties;
/**
* Show clear button, effective in multiple mode only.

4
types/avatar.d.ts vendored
View File

@ -3,10 +3,10 @@
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { VNodeChild } from 'vue';
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
export declare class Avatar extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* the Icon type for an icon avatar, see Icon Component
* @type any (VNode | slot)

4
types/back-top.d.ts vendored
View File

@ -2,10 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
export declare class BackTop extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* specifies the scrollable area dom node
* @default () => window

4
types/badge.d.ts vendored
View File

@ -2,11 +2,11 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { VNodeChild, CSSProperties } from 'vue';
export declare class Badge extends AntdComponent {
$props: {
$props: AntdProps & {
color?: string;
/**

View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
export declare class BreadcrumbItem {
$props: {
$props: AntdProps & {
/**
* add navigation
* @default ''

View File

@ -5,7 +5,7 @@
import { VNode } from 'vue';
import { BreadcrumbItem } from './breadcrumb-item';
import { BreadcrumbSeparator } from './breadcrumb-separator';
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export interface Route {
path?: String;
@ -17,7 +17,7 @@ export declare class Breadcrumb extends AntdComponent {
static Item: typeof BreadcrumbItem;
static Separator: typeof BreadcrumbSeparator;
$props: {
$props: AntdProps & {
/**
* The routing stack information of router
* @type Route[]

View File

@ -2,10 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export declare class ButtonGroup extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* can be set to small large or omitted
* @default 'default'

View File

@ -4,12 +4,12 @@
import { ButtonGroup } from './button-group';
import { VNodeChild } from 'vue';
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export declare class Button extends AntdComponent {
static Group: typeof ButtonGroup;
$props: {
$props: AntdProps & {
/**
* can be set to primary ghost dashed danger(added in 2.7) or omitted (meaning default)
* @default 'default'

4
types/calendar.d.ts vendored
View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { Moment } from 'moment';
import { VNodeChild } from 'vue';
@ -14,7 +14,7 @@ export interface RenderHeader {
}
export declare class Calendar extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* render custom header in panel
* @param headerRender

4
types/card.d.ts vendored
View File

@ -3,7 +3,7 @@
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { VNodeChild, CSSProperties } from 'vue';
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { Meta } from './meta';
export type CardSize = 'default' | 'small';
@ -12,7 +12,7 @@ export declare class Card extends AntdComponent {
static Grid: any;
static Meta: typeof Meta;
$props: {
$props: AntdProps & {
tabBarExtraContent: any;
/**
* The action list, shows at the bottom of the Card.

4
types/carousel.d.ts vendored
View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
export type DotPosition = 'top' | 'bottom' | 'left' | 'right';
export interface Settings {
@ -51,7 +51,7 @@ export interface ResponsiveObject {
settings: 'unslick' | Settings;
}
export declare class Carousel extends AntdComponent {
$props: {
$props: AntdProps & {
accessibility?: boolean;
adaptiveHeight?: boolean;
arrows?: boolean;

4
types/cascader.d.ts vendored
View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { VNode, VNodeChild, CSSProperties } from 'vue';
export interface CascaderOptionType {
@ -48,7 +48,7 @@ export interface ShowSearchType {
}
export declare class Cascader extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* whether allow clear
* @default true

View File

@ -3,7 +3,7 @@
// Definitions: https://github.com/vueComponent/ant-design-vue/types
export declare class CheckboxGroup {
$props: {
$props: AntdProps & {
/**
* Default selected value
* @type string[]

View File

@ -3,12 +3,12 @@
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { CheckboxGroup } from './checkbox-group';
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export declare class Checkbox extends AntdComponent {
static Group: typeof CheckboxGroup;
$props: {
$props: AntdProps & {
/**
* get focus when component mounted
* @default false

View File

@ -2,10 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export declare class CollapsePanel extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* If true, panel cannot be opened or closed
* @default false

View File

@ -2,12 +2,12 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { CollapsePanel } from './collapse-panel';
export type ExpandIconPosition = 'left' | 'right';
export declare class Collapse extends AntdComponent {
static Panel: typeof CollapsePanel;
$props: {
$props: AntdProps & {
expandIconPosition?: ExpandIconPosition;
/**
* If true, Collapse renders as Accordion

View File

@ -1,11 +1,11 @@
// Project: https://github.com/vueComponent/ant-design-vue Definitions by:
// https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import Pickr from '@simonwep/pickr';
export declare class ColorPicker extends AntdComponent {
$props: {
$props: AntdProps & {
/** simonwep/pickr's options */
config?: Pickr.Options;
/**prefix class name */

4
types/comment.d.ts vendored
View File

@ -2,10 +2,10 @@
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { VNodeChild } from 'vue';
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
export declare class Comment extends AntdComponent {
$props: {
$props: AntdProps & {
/** List of action items rendered below the comment content
* any ( array | slot )
*/

View File

@ -2,8 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { App } from 'vue';
import { App, HTMLAttributes } from 'vue';
export declare class AntdComponent {
static install(app: App): void;
}
export interface AntdProps extends HTMLAttributes {}

View File

@ -1,4 +1,4 @@
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { App, VNodeChild } from 'vue';
import { Locale } from './locale-provider';
@ -8,7 +8,7 @@ export interface CSPConfig {
}
export declare class ConfigProvider extends AntdComponent {
$props: {
$props: AntdProps & {
getPopupContainer?: (triggerNode: HTMLElement, dialogContext?: App | null) => HTMLElement;
getPrefixCls?: (suffixCls: string, customizePrefixCls?: string) => string;
renderEmpty?: Function | VNodeChild | JSX.Element;

View File

@ -4,7 +4,7 @@
import { Moment } from 'moment';
import { VNodeChild } from 'vue';
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export declare class DatepickerProps {
/**

View File

@ -3,10 +3,10 @@
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { VNodeChild } from 'vue';
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export declare class DescriptionsItem extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* the label of descriptions item
* @type any

View File

@ -3,7 +3,7 @@
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { VNodeChild } from 'vue';
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { DescriptionsItem } from './descriptions-item';
import { Breakpoint } from '../pub';
@ -11,7 +11,7 @@ import { Breakpoint } from '../pub';
export declare class Descriptions extends AntdComponent {
static Item: typeof DescriptionsItem;
$props: {
$props: AntdProps & {
/**
* descriptions size type
* @default 'default'

4
types/divider.d.ts vendored
View File

@ -2,10 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
export declare class Divider extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* whether line is dashed
* @default false

4
types/drawer.d.ts vendored
View File

@ -3,10 +3,10 @@
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { VNodeChild, CSSProperties } from 'vue';
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
export declare class Drawer extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Whether a close (x) button is visible on top right of the Drawer dialog or not.
* @default true

View File

@ -2,12 +2,12 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { Menu } from '../menu/menu';
import { VNodeChild } from 'vue';
export declare class DropdownButton extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* whether the dropdown menu is disabled
* @type boolean

View File

@ -2,14 +2,14 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { Menu } from '../menu/menu';
import { DropdownButton } from './dropdown-button';
import { CSSProperties } from 'vue';
export declare class Dropdown extends AntdComponent {
static Button: typeof DropdownButton;
$props: {
$props: AntdProps & {
/**
* the trigger mode which executes the drop-down action
* @default ['hover']

4
types/empty.d.ts vendored
View File

@ -2,11 +2,11 @@
// Definitions by: Svreber <https://github.com/Svreber>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { VNodeChild, CSSProperties } from 'vue';
export declare class Empty extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* customize description
* @type string | VNode

View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { Col } from '../grid/col';
import { VNodeChild } from 'vue';
@ -10,7 +10,7 @@ export declare type InternalNamePath = (string | number)[];
export declare type NamePath = string | number | InternalNamePath;
export declare class FormItem extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Used with label, whether to display : after label text.
* @default true

View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { Col } from '../grid/col';
import { FormItem } from './form-item';
@ -162,7 +162,7 @@ declare interface ValidationRule {
export declare class Form extends AntdComponent {
static Item: typeof FormItem;
$props: {
$props: AntdProps & {
/**
* Hide required mark of all form items
* @default false

4
types/grid/col.d.ts vendored
View File

@ -2,10 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
type ColSpanType = number | string;
export declare class Col extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* raster number of cells to occupy, 0 corresponds to display: none
* @default none (0)

4
types/grid/row.d.ts vendored
View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
type Gutter =
| number
@ -15,7 +15,7 @@ type Gutter =
xxl: number;
};
export declare class Row extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* spacing between grids, could be a number or a object like { xs: 8, sm: 16, md: 24}
* @default 0

View File

@ -2,10 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
export declare class InputNumber extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* get focus when component mounted
* @default false

View File

@ -2,10 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export declare class InputGroup extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Whether use compact style
* @default false

View File

@ -2,11 +2,11 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { VNodeChild } from 'vue';
export declare class InputSearch extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* to show an enter button after input
* @default false

View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { InputGroup } from './input-group';
import { InputSearch } from './input-search';
import { TextArea } from './textarea';
@ -14,7 +14,7 @@ export declare class Input extends AntdComponent {
static Search: typeof InputSearch;
static TextArea: typeof TextArea;
static Password: typeof Password;
$props: {
$props: AntdProps & {
/**
* The label text displayed after (on the right side of) the input field.
* @type any (string | slot)

View File

@ -2,10 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export declare class Password extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Whether show toggle button
* @default true

View File

@ -2,10 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export declare class TextArea extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Height autosize feature, can be set to true|false or an object { minRows: 2, maxRows: 6 }
* @default false

View File

@ -4,7 +4,7 @@ import { CSSProperties } from 'vue';
// Copy from: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export interface LayoutContentProps {
/**

View File

@ -4,7 +4,7 @@ import { CSSProperties } from 'vue';
// Copy from: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export interface LayoutFooterProps {
/**

View File

@ -4,7 +4,7 @@ import { CSSProperties } from 'vue';
// Copy from: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export interface LayoutHeaderProps {
/**

View File

@ -3,7 +3,7 @@ import { CSSProperties, Slot, VNodeChild } from 'vue';
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export interface LayoutSiderProps {
/**

View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { LayoutSider } from './layout-sider';
import LayoutHeader from './layout-header';
import LayoutContent from './layout-content';

View File

@ -2,14 +2,14 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { Meta } from '../meta';
import { VNodeChild } from 'vue';
export declare class ListItem extends AntdComponent {
static Meta: typeof Meta;
$props: {
$props: AntdProps & {
/**
* The actions content of list item. If itemLayout is vertical, shows the content on bottom,
* otherwise shows content on the far right.

View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { VNodeChild } from 'vue';
import { Pagination } from '../pagination';
import { ListItem } from './list-item';
@ -21,7 +21,7 @@ export interface Item {
export class List extends AntdComponent {
static Item: typeof ListItem;
$props: {
$props: AntdProps & {
/**
* Toggles rendering of the border around the list
* @default false

View File

@ -1,13 +1,13 @@
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { Option } from './option';
import { VNodeChild } from 'vue';
export declare class Mentions extends AntdComponent {
static Option: typeof Option;
$props: {
$props: AntdProps & {
/**
* Auto get focus when component mounted
* @default false

View File

@ -1,10 +1,10 @@
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export declare class Option extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* value of suggestion, the value will insert into input filed while selected
* @default ''

View File

@ -2,12 +2,12 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { MenuItem } from './menu-item';
import { VNodeChild } from 'vue';
export declare class MenuItemGroup extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* sub menu items
* @type MenuItem[]

View File

@ -2,10 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export declare class MenuItem extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* unique id of the menu item
* @type string

View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { MenuItem } from './menu-item';
import { SubMenu } from './sub-menu';
import { MenuItemGroup } from './menu-item-group';
@ -14,7 +14,7 @@ export declare class Menu extends AntdComponent {
static SubMenu: typeof SubMenu;
static ItemGroup: typeof MenuItemGroup;
static Divider: typeof Divider;
$props: {
$props: AntdProps & {
/**
* Allow selection of multiple items
* @default false

View File

@ -2,12 +2,12 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { MenuItem } from './menu-item';
import { VNodeChild } from 'vue';
export declare class SubMenu extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* unique id of the menu item
* @type string

2
types/meta.d.ts vendored
View File

@ -5,7 +5,7 @@
import { VNodeChild } from 'vue';
export declare class Meta {
$props: {
$props: AntdProps & {
/**
* The avatar of list item
* @type any (slot)

4
types/modal.d.ts vendored
View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { VNode, CSSProperties, VNodeChild } from 'vue';
import { TreeNode } from './tree-node';
import { Button } from './button/button';
@ -153,7 +153,7 @@ export interface ModalConfirm {
}
export declare class Modal extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Specify a function that will be called when modal is closed completely.
* @type Function

View File

@ -2,11 +2,11 @@
// Definitions by: drafish <https://github.com/drafish>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { VNodeChild } from 'vue';
export declare class PageHeader extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Custom backIcon
* @default <ArrowLeftOutlined />

View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { VNodeChild } from 'vue';
interface PaginationRenderProps {
page: number;
@ -10,7 +10,7 @@ interface PaginationRenderProps {
originalElement: any;
}
export declare class Pagination extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* total number of data items
* @default 0

View File

@ -4,9 +4,9 @@
import { TooltipCommon } from './tootip/common';
import { VNodeChild } from 'vue';
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
export declare class Popconfirm extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* text of the Cancel button
* @default 'Cancel'

4
types/popover.d.ts vendored
View File

@ -4,9 +4,9 @@
import { TooltipCommon } from './tootip/common';
import { VNodeChild } from 'vue';
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
export declare class Popover extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Content of the card
* @type any (string | slot | VNode)

4
types/progress.d.ts vendored
View File

@ -2,13 +2,13 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
export type StringGradients = { [percentage: string]: string };
type FromToGradients = { from: string; to: string };
export type ProgressGradient = { direction?: string } & (StringGradients | FromToGradients);
export declare class Progress extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* template function of the content
* @default percent => percent + '%'

View File

@ -2,10 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export declare class RadioGroup extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Specifies the initial state: whether or not the radio is selected.
* @type boolean

View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { RadioGroup } from './radio-group';
import { RadioButton } from './radio-button';

4
types/rate.d.ts vendored
View File

@ -2,10 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { VNodeChild } from 'vue';
export declare class Rate extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* whether to allow clear when click again
* @default true

4
types/result.d.ts vendored
View File

@ -1,8 +1,8 @@
import { VNodeChild } from 'vue';
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
export declare class Result extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* result title
* @type string

View File

@ -2,11 +2,11 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { VNodeChild } from 'vue';
export declare class OptionGroup extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Key
* @type string

View File

@ -2,10 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export declare class Option extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Disable this option
* @default false

View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { Option } from './option';
import { OptionGroup } from './option-group';
import { VNodeChild, CSSProperties } from 'vue';
@ -13,7 +13,7 @@ type dropdownRenderProps = {
export declare class Select extends AntdComponent {
static Option: typeof Option;
static OptGroup: typeof OptionGroup;
$props: {
$props: AntdProps & {
/**
* Show clear button.
* @default false

4
types/skeleton.d.ts vendored
View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
export interface SkeletonAvatarProps {
size?: 'large' | 'small' | 'default' | number;
@ -19,7 +19,7 @@ export interface SkeletonParagraphProps {
}
export declare class Skeleton extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Show animation effect
* @default false

4
types/slider.d.ts vendored
View File

@ -2,11 +2,11 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { VNodeChild } from 'vue';
export declare class Slider extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* get focus when component mounted
* @default false

4
types/space.d.ts vendored
View File

@ -1,7 +1,7 @@
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
export type SizeType = 'small' | 'middle' | 'large' | undefined;
export declare class Space extends AntdComponent {
$props: {
$props: AntdProps & {
prefixCls?: string;
size?: SizeType | number;
direction?: 'horizontal' | 'vertical';

2
types/spin.d.ts vendored
View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { VNodeChild } from 'vue';
export interface SpinProps {

View File

@ -2,11 +2,11 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { VNodeChild, CSSProperties } from 'vue';
export declare class StatisticCountdown extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Format as moment
* @default 'HH:mm:ss'

View File

@ -2,13 +2,13 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { VNodeChild } from 'vue';
import { StatisticCountdown } from './statistic-countdown';
export declare class Statistic extends AntdComponent {
static Countdown: typeof StatisticCountdown;
$props: {
$props: AntdProps & {
/**
* decimal separator
* @default '.'

View File

@ -2,10 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { VNodeChild } from 'vue';
export declare class Step extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* description of the step, optional property
* @type any (string | slot)

View File

@ -2,12 +2,12 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { Step } from './step';
export declare class Steps extends AntdComponent {
static Step: typeof Step;
$props: {
$props: AntdProps & {
type?: 'default' | 'navigation';
/**
* to set the current step, counting from 0. You can overwrite this state by using status of Step

4
types/switch.d.ts vendored
View File

@ -2,10 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { VNodeChild } from 'vue';
export declare class Switch extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* get focus when component mounted
* @default false

View File

@ -3,10 +3,10 @@
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { VNodeChild } from 'vue';
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export declare class ColumnGroup extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Title of the column group
* @type any

View File

@ -3,7 +3,7 @@
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { VNodeChild, Slots } from 'vue';
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export interface ColumnFilterItem {
text?: string;

View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { SpinProps } from '../spin';
import { Pagination } from '../pagination';
import { Column, ColumnProps, SortOrder } from './column';
@ -140,7 +140,7 @@ export declare class Table<T> extends AntdComponent {
static Column: typeof Column;
static ColumnGroup: typeof ColumnGroup;
$props: {
$props: AntdProps & {
/**
* Whether to show all table borders
* @default false

View File

@ -2,11 +2,11 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { VNodeChild } from 'vue';
export declare class TabPane extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Forced render of content in tabs, not lazy render after clicking on tabs
* @default false

View File

@ -2,13 +2,13 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { TabPane } from './tab-pane';
import { CSSProperties, VNodeChild } from 'vue';
export declare class Tabs extends AntdComponent {
static TabPane: typeof TabPane;
$props: {
$props: AntdProps & {
/**
* Current TabPane's key
* @type string

View File

@ -2,10 +2,10 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export declare class CheckableTag extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Checked status of Tag
* @default false

4
types/tag/tag.d.ts vendored
View File

@ -2,13 +2,13 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { CheckableTag } from './checkable-tag';
export declare class Tag extends AntdComponent {
static CheckableTag: typeof CheckableTag;
$props: {
$props: AntdProps & {
/**
* Callback executed when close animation is completed
* @type Function

View File

@ -2,12 +2,12 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { Moment } from 'moment';
import { VNodeChild } from 'vue';
export declare class TimePicker extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* some addon to timepicker panel bottom
* @type any (slot | slot-scope)

View File

@ -3,10 +3,10 @@
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { VNodeChild } from 'vue';
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
export declare class TimelineItem extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Set the circle's color to blue, red, green or other custom colors
* @default 'blue'

View File

@ -3,13 +3,13 @@
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { VNodeChild } from 'vue';
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { TimelineItem } from './timeline-item';
export declare class Timeline extends AntdComponent {
static Item: typeof TimelineItem;
$props: {
$props: AntdProps & {
/**
* Set the last ghost node's existence or its content
* @default false

View File

@ -6,7 +6,7 @@ import { CSSProperties } from 'vue';
export declare type triggerType = 'hover' | 'focus' | 'click' | 'contextmenu';
export declare class TooltipCommon {
// $props: {
// $props: AntdProps & {
/**
* Whether the arrow is pointed at the center of target
* @default false

View File

@ -3,11 +3,11 @@
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { VNodeChild } from 'vue';
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { TooltipCommon } from './common';
export declare class Tooltip extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* The text shown in the tooltip
* @type any (string | slot)

4
types/transfer.d.ts vendored
View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { VNodeChild, CSSProperties } from 'vue';
export interface TransferItem {
@ -15,7 +15,7 @@ export interface TransferItem {
export declare type Direction = 'left' | 'right';
export declare class Transfer extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* Used for setting the source data. The elements that are part of this array will be present the left column.
* Except the elements whose keys are included in targetKeys prop.

View File

@ -2,11 +2,11 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { VNodeChild } from 'vue';
export declare class TreeNode extends AntdComponent {
$props: {
$props: AntdProps & {
/**
* When Tree is checkable, set TreeNode display Checkbox or not
* @version 1.5.0

View File

@ -2,7 +2,7 @@
// akki-jat <https://github.com/akki-jat> Definitions:
// https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
import { TreeNode } from './tree-node';
import { VNodeChild, CSSProperties } from 'vue';
@ -37,7 +37,7 @@ export type TreeNodeValue = string | number | string[] | number[];
export declare class TreeSelect extends AntdComponent {
static TreeNode: typeof TreeNode;
$props: {
$props: AntdProps & {
treeIcon?: boolean;
notFoundContent?: VNodeChild | JSX.Element;

View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { TreeProps } from './tree';
interface DictionaryTreeProps extends TreeProps {

View File

@ -2,7 +2,7 @@
// akki-jat <https://github.com/akki-jat> Definitions:
// https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from '../component';
import { AntdComponent, AntdProps } from '../component';
import { TreeNode } from '../tree-node';
import { DictionaryTree } from './dictionary-tree';
import { TreeData } from '../tree-select';

4
types/upload.d.ts vendored
View File

@ -2,7 +2,7 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
import { AntdComponent, AntdProps } from './component';
export interface HttpRequestHeader {
[key: string]: string;
@ -77,7 +77,7 @@ type TransformFileHandler = (
export declare class Upload extends AntdComponent {
static Dragger: typeof Upload;
$props: {
$props: AntdProps & {
/**
* File types that can be accepted.
* @type string