-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Antd typescript support #359
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
Merged
tangjinzhou
merged 10 commits into
vueComponent:master
from
akki-jat:antd-typescript-support
Jan 1, 2019
Merged
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
91c5b69
feat: typescript support
akki-jat 2329888
Merge branch 'master' into antd-typescript-support
akki-jat ef6cfd4
feat: typescript support
akki-jat 3ac1c9e
feat: typescript support
akki-jat cf039b2
feat: typescript support
akki-jat 82c8f7d
fix: typescript support
akki-jat 51452d5
feat: typescript support
akki-jat d7d0f81
fix: typescript support
akki-jat a8ae4fa
fix: typescript support
akki-jat 490ffa0
fix: typescript support
akki-jat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
"frontend" | ||
], | ||
"main": "dist/antd.min.js", | ||
"typings": "types/index.d.ts", | ||
"files": [ | ||
"dist", | ||
"lib", | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Type definitions for Ant Design Vue 1.2.2 | ||
// Project: https://github.com/vueComponent/ant-design-vue | ||
// Definitions by: akki-jat <https://github.com/akki-jat> | ||
// Definitions: https://github.com/vueComponent/ant-design-vue/types | ||
|
||
import { AntdComponent } from './component'; | ||
|
||
export declare class Affix extends AntdComponent { | ||
/** | ||
* Pixels to offset from top when calculating position of scroll | ||
* @default 0 | ||
* @type number | ||
*/ | ||
offsetTop: number; | ||
|
||
/** | ||
* Pixels to offset from bottom when calculating position of scroll | ||
* @type number | ||
*/ | ||
offsetBottom: number; | ||
|
||
/** | ||
* specifies the scrollable area dom node | ||
* @default () => window | ||
* @type Function | ||
*/ | ||
target: () => HTMLElement; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// Type definitions for Ant Design Vue 1.2.2 | ||
// Project: https://github.com/vueComponent/ant-design-vue | ||
// Definitions by: akki-jat <https://github.com/akki-jat> | ||
// Definitions: https://github.com/vueComponent/ant-design-vue/types | ||
|
||
import { AntdComponent } from './component'; | ||
|
||
export declare class Alert extends AntdComponent { | ||
/** | ||
* Called when close animation is finished | ||
* @type Function | ||
*/ | ||
afterClose: () => void; | ||
|
||
/** | ||
* Whether to show as banner | ||
* @default false | ||
* @type boolean | ||
*/ | ||
banner: boolean; | ||
|
||
/** | ||
* Whether Alert can be closed | ||
* @type boolean | ||
*/ | ||
closable: boolean; | ||
|
||
/** | ||
* Close text to show | ||
* @type any (string | slot) | ||
*/ | ||
closeText: any; | ||
|
||
/** | ||
* additional content of Alert | ||
* @type any (string | slot) | ||
*/ | ||
description: any; | ||
|
||
/** | ||
* Custom icon, effective when showIcon is true | ||
* @type any (VNode | slot) | ||
*/ | ||
icon: any; | ||
|
||
/** | ||
* Content of Alert | ||
* @type any (string | slot) | ||
*/ | ||
message: any; | ||
|
||
/** | ||
* Whether to show icon | ||
* @default false, in banner mode default is true | ||
* @type boolean | ||
*/ | ||
showIcon: boolean; | ||
|
||
/** | ||
* Type of Alert styles, options: success, info, warning, error | ||
* @default info, in banner mode default is warning | ||
* @type string | ||
*/ | ||
type: "success" | "info" | "warning" | "error"; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Project: https://github.com/vueComponent/ant-design-vue | ||
// Definitions by: akki-jat <https://github.com/akki-jat> | ||
// Definitions: https://github.com/vueComponent/ant-design-vue/types | ||
|
||
import { AntdComponent } from "../component"; | ||
|
||
export declare class AnchorLink extends AntdComponent { | ||
/** | ||
* target of hyperlink | ||
* @type string | ||
*/ | ||
href: string; | ||
|
||
/** | ||
* content of hyperlink | ||
* @type any (string | slot) | ||
*/ | ||
title: any; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Project: https://github.com/vueComponent/ant-design-vue | ||
// Definitions by: akki-jat <https://github.com/akki-jat> | ||
// Definitions: https://github.com/vueComponent/ant-design-vue/types | ||
|
||
import { AntdComponent } from '../component'; | ||
import { AnchorLink } from "./anchor-link"; | ||
|
||
export declare class Anchor extends AntdComponent { | ||
static Link: AnchorLink; | ||
|
||
/** | ||
* Fixed mode of Anchor | ||
* @default true | ||
* @type boolean | ||
*/ | ||
affix: boolean; | ||
|
||
/** | ||
* Bounding distance of anchor area | ||
* @default 5 | ||
* @type number | ||
*/ | ||
bounds: number; | ||
|
||
/** | ||
* Scrolling container | ||
* @default () => window | ||
* @type Function | ||
*/ | ||
getContainer: () => HTMLElement; | ||
|
||
/** | ||
* Pixels to offset from bottom when calculating position of scroll | ||
* @type number | ||
*/ | ||
offsetBottom: number; | ||
|
||
/** | ||
* Pixels to offset from top when calculating position of scroll | ||
* @default 0 | ||
* @type number | ||
*/ | ||
offsetTop: number; | ||
|
||
/** | ||
* Whether show ink-balls in Fixed mode | ||
* @default false | ||
* @type boolean | ||
*/ | ||
showInkInFixed: boolean; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
// Type definitions for Ant Design Vue 1.2.2 | ||
// Project: https://github.com/vueComponent/ant-design-vue | ||
// Definitions by: akki-jat <https://github.com/akki-jat> | ||
// Definitions: https://github.com/vueComponent/ant-design-vue/types | ||
|
||
import { Affix } from "./affix"; | ||
import { Anchor } from "./anchor/anchor"; | ||
import { AutoComplete } from "./auto-complete"; | ||
import { Alert } from "./alert"; | ||
import { Avatar } from "./avatar"; | ||
import { BackTop } from "./back-top"; | ||
import { Badge } from "./badge"; | ||
import { Breadcrumb } from "./breadcrumb"; | ||
import { Button } from "./button/button"; | ||
import { Calendar } from "./calendar"; | ||
import { Card } from "./card"; | ||
import { Collapse } from "./collapse/collapse"; | ||
import { Carousel } from "./carousel"; | ||
import { Cascader } from "./cascader"; | ||
import { Checkbox } from "./checkbox/checkbox"; | ||
import { Col } from "./grid/col"; | ||
import { DatePicker } from "./date-picker/date-picker"; | ||
import { Divider } from "./divider"; | ||
import { Dropdown } from "./dropdown/dropdown"; | ||
import { Form } from "./form/form"; | ||
import { Icon } from "./icon"; | ||
import { Input } from "./input/input"; | ||
import { InputNumber } from "./input-number"; | ||
import { Layout } from "./layout/layout"; | ||
import { List } from "./list/list"; | ||
import { LocaleProvider } from "./locale-provider"; | ||
import { Message } from "./message"; | ||
import { Menu } from "./menu/menu"; | ||
import { Modal } from "./modal"; | ||
import { Notification } from "./notification"; | ||
import { Pagination } from "./pagination"; | ||
import { Popconfirm } from "./popconfirm"; | ||
import { Popover } from "./popover"; | ||
import { Progress } from "./progress"; | ||
import { Radio } from "./radio/radio"; | ||
import { Rate } from "./rate"; | ||
import { Row } from "./grid/row"; | ||
import { Select } from "./select/select"; | ||
import { Slider } from "./slider"; | ||
import { Spin } from "./spin"; | ||
import { Steps } from "./steps/steps"; | ||
import { Switch } from "./switch"; | ||
import { Table } from "./table/table"; | ||
import { Transfer } from "./transfer"; | ||
import { Tree } from "./tree/tree"; | ||
import { TreeSelect } from "./tree-select"; | ||
import { Tabs } from "./tabs/tabs"; | ||
import { Tag } from "./tag/tag"; | ||
import { TimePicker } from "./time-picker"; | ||
import { Timeline } from "./timeline/timeline"; | ||
import { Tooltip } from "./tootip/tooltip"; | ||
import { Upload } from "./upload"; | ||
import { Drawer } from "./drawer"; | ||
import { Skeleton } from "./skeleton"; | ||
|
||
declare const message: Message; | ||
declare const notification: Notification; | ||
|
||
export { | ||
Affix, | ||
Anchor, | ||
AutoComplete, | ||
Alert, | ||
Avatar, | ||
BackTop, | ||
Badge, | ||
Breadcrumb, | ||
Button, | ||
Calendar, | ||
Card, | ||
Collapse, | ||
Carousel, | ||
Cascader, | ||
Checkbox, | ||
Col, | ||
DatePicker, | ||
Divider, | ||
Dropdown, | ||
Form, | ||
Icon, | ||
Input, | ||
InputNumber, | ||
Layout, | ||
List, | ||
LocaleProvider, | ||
message, | ||
Menu, | ||
Modal, | ||
notification, | ||
Pagination, | ||
Popconfirm, | ||
Popover, | ||
Progress, | ||
Radio, | ||
Rate, | ||
Row, | ||
Select, | ||
Slider, | ||
Spin, | ||
Steps, | ||
Switch, | ||
Table, | ||
Transfer, | ||
Tree, | ||
TreeSelect, | ||
Tabs, | ||
Tag, | ||
TimePicker, | ||
Timeline, | ||
Tooltip, | ||
Upload, | ||
Drawer, | ||
Skeleton | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't need to add version information.