diff --git a/types/anchor/anchor.d.ts b/types/anchor/anchor.d.ts index 7aaa44f30..e199211ac 100644 --- a/types/anchor/anchor.d.ts +++ b/types/anchor/anchor.d.ts @@ -6,7 +6,7 @@ import { AntdComponent } from '../component'; import { AnchorLink } from './anchor-link'; export declare class Anchor extends AntdComponent { - static Link: AnchorLink; + static Link: typeof AnchorLink; /** * Fixed mode of Anchor diff --git a/types/button/button.d.ts b/types/button/button.d.ts index ccc2cbab3..2cfb2ca38 100644 --- a/types/button/button.d.ts +++ b/types/button/button.d.ts @@ -6,7 +6,7 @@ import { AntdComponent } from '../component'; import { ButtonGroup } from './button-group'; export declare class Button extends AntdComponent { - Group: ButtonGroup; + static Group: typeof ButtonGroup; /** * can be set to primary ghost dashed danger(added in 2.7) or omitted (meaning default) diff --git a/types/card.d.ts b/types/card.d.ts index 740b22f7e..94f11247e 100644 --- a/types/card.d.ts +++ b/types/card.d.ts @@ -7,7 +7,7 @@ import { Meta } from './meta'; export declare class Card extends AntdComponent { static Grid: any; - static Meta: Meta; + static Meta: typeof Meta; /** * The action list, shows at the bottom of the Card. diff --git a/types/checkbox/checkbox.d.ts b/types/checkbox/checkbox.d.ts index 2e80c3ef7..7d72c1e1a 100644 --- a/types/checkbox/checkbox.d.ts +++ b/types/checkbox/checkbox.d.ts @@ -6,7 +6,7 @@ import { AntdComponent } from '../component'; import { CheckboxGroup } from './checkbox-group'; export declare class Checkbox extends AntdComponent { - static Group: CheckboxGroup; + static Group: typeof CheckboxGroup; /** * get focus when component mounted diff --git a/types/collapse/collapse.d.ts b/types/collapse/collapse.d.ts index 50d2b5840..adf3e2938 100644 --- a/types/collapse/collapse.d.ts +++ b/types/collapse/collapse.d.ts @@ -6,7 +6,7 @@ import { AntdComponent } from '../component'; import { CollapsePanel } from './collapse-panel'; export declare class Collapse extends AntdComponent { - static Panel: CollapsePanel; + static Panel: typeof CollapsePanel; /** * If true, Collapse renders as Accordion diff --git a/types/date-picker/date-picker.d.ts b/types/date-picker/date-picker.d.ts index 87f3d41c8..fb919f5e2 100644 --- a/types/date-picker/date-picker.d.ts +++ b/types/date-picker/date-picker.d.ts @@ -9,9 +9,9 @@ import { MonthPicker } from './month-picker'; import { WeekPicker } from './week-picker'; export declare class DatePicker extends DatepickerCommon { - RangePicker: RangePicker; - MonthPicker: MonthPicker; - WeekPickerker: WeekPicker; + static RangePicker: typeof RangePicker; + static MonthPicker: typeof MonthPicker; + static WeekPickerker: typeof WeekPicker; /** * Defualt Value diff --git a/types/dropdown/dropdown.d.ts b/types/dropdown/dropdown.d.ts index 3747ee339..f711876cf 100644 --- a/types/dropdown/dropdown.d.ts +++ b/types/dropdown/dropdown.d.ts @@ -7,7 +7,7 @@ import { Menu } from '../menu/menu'; import { DropdownButton } from './dropdown-button'; export declare class Dropdown extends AntdComponent { - static Button: DropdownButton; + static Button: typeof DropdownButton; /** * the trigger mode which executes the drop-down action diff --git a/types/form/form.d.ts b/types/form/form.d.ts index ea08d1100..968bc4f81 100644 --- a/types/form/form.d.ts +++ b/types/form/form.d.ts @@ -319,7 +319,7 @@ export interface IformCreateOption { } export declare class Form extends AntdComponent { - static Item: FormItem; + static Item: typeof FormItem; static create: (options: IformCreateOption) => (WrapedComponent: any) => any; /** diff --git a/types/input/input.d.ts b/types/input/input.d.ts index 8a5c994bd..cdeb12461 100644 --- a/types/input/input.d.ts +++ b/types/input/input.d.ts @@ -8,9 +8,9 @@ import { InputSearch } from './input-search'; import { TextArea } from './textarea'; export declare class Input extends AntdComponent { - static Group: InputGroup; - static Search: InputSearch; - static TextArea: TextArea; + static Group: typeof InputGroup; + static Search: typeof InputSearch; + static TextArea: typeof TextArea; /** * The label text displayed after (on the right side of) the input field. diff --git a/types/layout/layout-content.d.ts b/types/layout/layout-content.d.ts new file mode 100644 index 000000000..54948f7b4 --- /dev/null +++ b/types/layout/layout-content.d.ts @@ -0,0 +1,28 @@ +// Project: https://github.com/vueComponent/ant-design-vue +// Definitions by: Pythonfo +// Copy from: akki-jat +// Definitions: https://github.com/vueComponent/ant-design-vue/types + +import { AntdComponent } from '../component'; + +export default class LayoutContent extends AntdComponent { + + /** + * container className + * @default undefined + * @type string + */ + class: string; + + /** + * to customize the styles + * @type string | object + */ + style: string | object; + + /** + * whether contain Sider in children, don't have to assign it normally. Useful in ssr avoid style flickering + * @type boolean + */ + hasSider: boolean; +} diff --git a/types/layout/layout-footer.d.ts b/types/layout/layout-footer.d.ts new file mode 100644 index 000000000..d8f155d05 --- /dev/null +++ b/types/layout/layout-footer.d.ts @@ -0,0 +1,28 @@ +// Project: https://github.com/vueComponent/ant-design-vue +// Definitions by: Pythonfo +// Copy from: akki-jat +// Definitions: https://github.com/vueComponent/ant-design-vue/types + +import { AntdComponent } from '../component'; + +export default class LayoutFooter extends AntdComponent { + + /** + * container className + * @default undefined + * @type string + */ + class: string; + + /** + * to customize the styles + * @type string | object + */ + style: string | object; + + /** + * whether contain Sider in children, don't have to assign it normally. Useful in ssr avoid style flickering + * @type boolean + */ + hasSider: boolean; +} diff --git a/types/layout/layout-header.d.ts b/types/layout/layout-header.d.ts new file mode 100644 index 000000000..c8a56cff6 --- /dev/null +++ b/types/layout/layout-header.d.ts @@ -0,0 +1,28 @@ +// Project: https://github.com/vueComponent/ant-design-vue +// Definitions by: Pythonfo +// Copy from: akki-jat +// Definitions: https://github.com/vueComponent/ant-design-vue/types + +import { AntdComponent } from '../component'; + +export default class LayoutHeader extends AntdComponent { + + /** + * container className + * @default undefined + * @type string + */ + class: string; + + /** + * to customize the styles + * @type string | object + */ + style: string | object; + + /** + * whether contain Sider in children, don't have to assign it normally. Useful in ssr avoid style flickering + * @type boolean + */ + hasSider: boolean; +} diff --git a/types/layout/layout.d.ts b/types/layout/layout.d.ts index 19ee16152..0a00644f1 100644 --- a/types/layout/layout.d.ts +++ b/types/layout/layout.d.ts @@ -4,9 +4,15 @@ import { AntdComponent } from '../component'; import { LayoutSider } from './layout-sider'; +import LayoutHeader from './layout-header'; +import LayoutContent from './layout-content'; +import LayoutFooter from './layout-footer'; export declare class Layout extends AntdComponent { - static Sider: LayoutSider; + static Header: typeof LayoutHeader; + static Content: typeof LayoutContent; + static Footer: typeof LayoutFooter; + static Sider: typeof LayoutSider; /** * container className diff --git a/types/list/list.d.ts b/types/list/list.d.ts index d01666e67..aa1fd49f2 100644 --- a/types/list/list.d.ts +++ b/types/list/list.d.ts @@ -14,7 +14,7 @@ export declare class PaginationConfig extends Pagination { } export class List extends AntdComponent { - static Item: ListItem; + static Item: typeof ListItem; /** * Toggles rendering of the border around the list diff --git a/types/menu/menu.d.ts b/types/menu/menu.d.ts index 6abc7c225..fc444f7aa 100644 --- a/types/menu/menu.d.ts +++ b/types/menu/menu.d.ts @@ -9,10 +9,10 @@ import { MenuItemGroup } from './menu-item-group'; import { Divider } from '../divider'; export declare class Menu extends AntdComponent { - static Item: MenuItem; - static SubMenu: SubMenu; - static ItemGroup: MenuItemGroup; - static Divider: Divider; + static Item: typeof MenuItem; + static SubMenu: typeof SubMenu; + static ItemGroup: typeof MenuItemGroup; + static Divider: typeof Divider; /** * Allow selection of multiple items diff --git a/types/radio/radio.d.ts b/types/radio/radio.d.ts index 57d399762..30cbd36a8 100644 --- a/types/radio/radio.d.ts +++ b/types/radio/radio.d.ts @@ -7,8 +7,8 @@ import { RadioGroup } from './radio-group'; import { RadioButton } from './radio-button'; export declare class Radio extends AntdComponent { - static Group: RadioGroup; - static Button: RadioButton; + static Group: typeof RadioGroup; + static Button: typeof RadioButton; /** * get focus when component mounted diff --git a/types/select/select.d.ts b/types/select/select.d.ts index 1058d55d1..2f93920af 100644 --- a/types/select/select.d.ts +++ b/types/select/select.d.ts @@ -8,8 +8,8 @@ import { OptionGroup } from './option-group'; import { VNode } from 'vue'; export declare class Select extends AntdComponent { - static Option: Option; - static OptGroup: OptionGroup; + static Option: typeof Option; + static OptGroup: typeof OptionGroup; /** * Show clear button. diff --git a/types/steps/steps.d.ts b/types/steps/steps.d.ts index c8de7d9d0..5b1fb6896 100644 --- a/types/steps/steps.d.ts +++ b/types/steps/steps.d.ts @@ -6,7 +6,7 @@ import { AntdComponent } from '../component'; import { Step } from './step'; export declare class Steps extends AntdComponent { - static Step: Step; + static Step: typeof Step; /** * to set the current step, counting from 0. You can overwrite this state by using status of Step diff --git a/types/table/table.d.ts b/types/table/table.d.ts index 5b0afc5e3..e841663ec 100644 --- a/types/table/table.d.ts +++ b/types/table/table.d.ts @@ -116,8 +116,8 @@ export interface TableRowSelection { } export declare class Table extends AntdComponent { - static Column: Column; - static ColumnGroup: ColumnGroup; + static Column: typeof Column; + static ColumnGroup: typeof ColumnGroup; /** * Whether to show all table borders diff --git a/types/tabs/tabs.d.ts b/types/tabs/tabs.d.ts index de03cd74c..e5f69fc62 100644 --- a/types/tabs/tabs.d.ts +++ b/types/tabs/tabs.d.ts @@ -6,7 +6,7 @@ import { AntdComponent } from '../component'; import { TabPane } from './tab-pane'; export declare class Tabs extends AntdComponent { - static TabPane: TabPane; + static TabPane: typeof TabPane; /** * Current TabPane's key diff --git a/types/tag/tag.d.ts b/types/tag/tag.d.ts index de4649756..768c55f02 100644 --- a/types/tag/tag.d.ts +++ b/types/tag/tag.d.ts @@ -6,7 +6,7 @@ import { AntdComponent } from '../component'; import { CheckableTag } from './checkable-tag'; export declare class Tag extends AntdComponent { - static CheckableTag: CheckableTag; + static CheckableTag: typeof CheckableTag; /** * Callback executed when close animation is completed diff --git a/types/timeline/timeline.d.ts b/types/timeline/timeline.d.ts index 63c7d9224..d8c982876 100644 --- a/types/timeline/timeline.d.ts +++ b/types/timeline/timeline.d.ts @@ -6,7 +6,7 @@ import { AntdComponent } from '../component'; import { TimelineItem } from './timeline-item'; export declare class Timeline extends AntdComponent { - static Item: TimelineItem; + static Item: typeof TimelineItem; /** * Set the last ghost node's existence or its content diff --git a/types/tree-select.d.ts b/types/tree-select.d.ts index f868a8de7..c274b4383 100644 --- a/types/tree-select.d.ts +++ b/types/tree-select.d.ts @@ -16,7 +16,7 @@ export interface TreeData { } export declare class TreeSelect extends AntdComponent { - static TreeNode: TreeNode; + static TreeNode: typeof TreeNode; /** * Whether allow clear diff --git a/types/tree/tree.d.ts b/types/tree/tree.d.ts index 2c40723cc..599e9db4c 100644 --- a/types/tree/tree.d.ts +++ b/types/tree/tree.d.ts @@ -7,8 +7,8 @@ import { TreeNode } from '../tree-node'; import { DictionaryTree } from './dictionary-tree'; export declare class Tree extends AntdComponent { - static TreeNode: TreeNode; - static DirectoryTree: DictionaryTree; + static TreeNode: typeof TreeNode; + static DirectoryTree: typeof DictionaryTree; /** * treeNode of tree