Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Button, DatePicker, Layout d.ts #422

Merged
merged 2 commits into from
Jan 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion types/anchor/anchor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion types/button/button.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion types/card.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion types/checkbox/checkbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion types/collapse/collapse.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions types/date-picker/date-picker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion types/dropdown/dropdown.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion types/form/form.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export interface IformCreateOption {
}

export declare class Form extends AntdComponent {
static Item: FormItem;
static Item: typeof FormItem;
static create: (options: IformCreateOption) => (WrapedComponent: any) => any;

/**
Expand Down
6 changes: 3 additions & 3 deletions types/input/input.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
28 changes: 28 additions & 0 deletions types/layout/layout-content.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: Pythonfo <https://github.com/Pythonfo>
// Copy from: akki-jat <https://github.com/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;
}
28 changes: 28 additions & 0 deletions types/layout/layout-footer.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: Pythonfo <https://github.com/Pythonfo>
// Copy from: akki-jat <https://github.com/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;
}
28 changes: 28 additions & 0 deletions types/layout/layout-header.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: Pythonfo <https://github.com/Pythonfo>
// Copy from: akki-jat <https://github.com/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;
}
8 changes: 7 additions & 1 deletion types/layout/layout.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion types/list/list.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions types/menu/menu.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions types/radio/radio.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions types/select/select.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion types/steps/steps.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions types/table/table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion types/tabs/tabs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion types/tag/tag.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion types/timeline/timeline.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion types/tree-select.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface TreeData {
}

export declare class TreeSelect extends AntdComponent {
static TreeNode: TreeNode;
static TreeNode: typeof TreeNode;

/**
* Whether allow clear
Expand Down
4 changes: 2 additions & 2 deletions types/tree/tree.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down