Merge pull request #4430 from yangdan8/2.0_添加d.ts定义

补全失的导入导出类型,将class定义方式修改为interface定义,方面未来扩展
This commit is contained in:
Aresn 2018-09-03 09:30:17 +08:00 committed by GitHub
commit 97f1c9377f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
60 changed files with 159 additions and 159 deletions

View file

@ -115,7 +115,7 @@ If you want to contribute or have questions or bugs to report:
|[lcx960324](https://github.com/lcx960324) | ![](https://avatars3.githubusercontent.com/u/9768245?v=3&s=60) |[GITleonine1989](https://github.com/GITleonine1989) | ![](https://avatars1.githubusercontent.com/u/7582490?v=3&s=60) |[huixisheng](https://github.com/huixisheng) | ![](https://avatars1.githubusercontent.com/u/1518967?v=3&s=60) | |[lcx960324](https://github.com/lcx960324) | ![](https://avatars3.githubusercontent.com/u/9768245?v=3&s=60) |[GITleonine1989](https://github.com/GITleonine1989) | ![](https://avatars1.githubusercontent.com/u/7582490?v=3&s=60) |[huixisheng](https://github.com/huixisheng) | ![](https://avatars1.githubusercontent.com/u/1518967?v=3&s=60) |
|[Sergio Crisostomo](https://github.com/SergioCrisostomo) | ![](https://avatars3.githubusercontent.com/u/5614559?v=3&s=60) | [lison16](https://github.com/lison16) | ![](https://avatars3.githubusercontent.com/u/20942571?v=3&s=60) | [Xotic750](https://github.com/Xotic750) | ![](https://avatars3.githubusercontent.com/u/216041?v=3&s=60) | |[Sergio Crisostomo](https://github.com/SergioCrisostomo) | ![](https://avatars3.githubusercontent.com/u/5614559?v=3&s=60) | [lison16](https://github.com/lison16) | ![](https://avatars3.githubusercontent.com/u/20942571?v=3&s=60) | [Xotic750](https://github.com/Xotic750) | ![](https://avatars3.githubusercontent.com/u/216041?v=3&s=60) |
[huanghong1125](https://github.com/huanghong1125) | ![](https://avatars3.githubusercontent.com/u/12794817?v=3&s=60) | [huanghong1125](https://github.com/huanghong1125) | ![](https://avatars3.githubusercontent.com/u/12794817?v=3&s=60) |
[yangdan8](https://github.com/yangdan8) | ![](https://avatars2.githubusercontent.com/u/16515026?s=3&v=60) | [yangdan8](https://github.com/yangdan8) | ![](https://avatars2.githubusercontent.com/u/16515026?v=3&s=60) |
### All Contributors ### All Contributors

4
types/affix.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue from 'vue'; import Vue, { VNode } from 'vue';
export declare class Affix extends Vue { export declare interface Affix extends Vue {
/** /**
* *
* @default 0 * @default 0

4
types/alert.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue from 'vue'; import Vue, { VNode } from 'vue';
export declare class Alert extends Vue { export declare interface Alert extends Vue {
/** /**
* infosuccesswarningerror * infosuccesswarningerror
* @default info * @default info

6
types/anchor.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Anchor extends Vue { export declare interface Anchor extends Vue {
/** /**
* *
* @default true * @default true
@ -48,7 +48,7 @@ export declare class Anchor extends Vue {
$emit(eventName: 'on-change', []): this; $emit(eventName: 'on-change', []): this;
} }
export declare class AnchorLink extends Vue { export declare interface AnchorLink extends Vue {
/** /**
* *
* @default * @default

View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class AutoComplete extends Vue { export declare interface AutoComplete extends Vue {
/** /**
* 使 v-model * 使 v-model
*/ */

4
types/avatar.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Avatar extends Vue { export declare interface Avatar extends Vue {
/** /**
* circlesquare * circlesquare
* @default circle * @default circle

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

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class BackTop extends Vue { export declare interface BackTop extends Vue {
/** /**
* BackTop组件 * BackTop组件
* @default 400 * @default 400

4
types/badge.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Badge extends Vue { export declare interface Badge extends Vue {
/** /**
* overflowCount时${overflowCount}+ 0 * overflowCount时${overflowCount}+ 0
*/ */

View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Breadcrumb extends Vue { export declare interface Breadcrumb extends Vue {
/** /**
* *
* @default / * @default /
@ -12,7 +12,7 @@ export declare class Breadcrumb extends Vue {
separator?: string; separator?: string;
} }
export declare class BreadcrumbItem extends Vue { export declare interface BreadcrumbItem extends Vue {
/** /**
* *
*/ */

6
types/button.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Button extends Vue { export declare interface Button extends Vue {
/** /**
* defaultprimarydashedtextinfosuccesswarningerror或者不设置 * defaultprimarydashedtextinfosuccesswarningerror或者不设置
* @default default * @default default
@ -68,7 +68,7 @@ export declare class Button extends Vue {
target?: '_blank' | '_self' | '_parent' | '_top'; target?: '_blank' | '_self' | '_parent' | '_top';
} }
export declare class ButtonGroup extends Vue { export declare interface ButtonGroup extends Vue {
/** /**
* largesmalldefault或者不设置 * largesmalldefault或者不设置
* @default default * @default default

4
types/card.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Card extends Vue { export declare interface Card extends Vue {
/** /**
* 使 * 使
* @default true * @default true

6
types/carousel.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Carousel extends Vue { export declare interface Carousel extends Vue {
/** /**
* 0 使 v-model * 0 使 v-model
* @default 0 * @default 0
@ -60,6 +60,6 @@ export declare class Carousel extends Vue {
$emit(eventName: 'on-change', oldValue: number, value: number): this; $emit(eventName: 'on-change', oldValue: number, value: number): this;
} }
export declare class CarouselItem extends Vue { export declare interface CarouselItem extends Vue {
} }

4
types/cascader.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Cascader extends Vue { export declare interface Cascader extends Vue {
/** /**
* *
* @default [] * @default []

6
types/cell.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Cell extends Vue { export declare interface Cell extends Vue {
/** /**
* *
*/ */
@ -72,7 +72,7 @@ export declare class Cell extends Vue {
} }
} }
export declare class CellGroup extends Vue { export declare interface CellGroup extends Vue {
/** /**
* *
* *

6
types/checkbox.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Checkbox extends Vue { export declare interface Checkbox extends Vue {
/** /**
* 使使 v-model * 使使 v-model
* @default false * @default false
@ -44,7 +44,7 @@ export declare class Checkbox extends Vue {
$emit(eventName: 'on-change', value: boolean): this; $emit(eventName: 'on-change', value: boolean): this;
} }
export declare class CheckboxGroup extends Vue { export declare interface CheckboxGroup extends Vue {
/** /**
* 使 v-model * 使 v-model
* @default [] * @default []

4
types/circle.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Circle extends Vue { export declare interface Circle extends Vue {
/** /**
* *
* @default 0 * @default 0

6
types/collapse.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Collapse extends Vue { export declare interface Collapse extends Vue {
/** /**
* name使 v-model * name使 v-model
*/ */
@ -26,7 +26,7 @@ export declare class Collapse extends Vue {
$emit(eventName: 'on-change', []): this; $emit(eventName: 'on-change', []): this;
} }
export declare class CollapsePanel extends Vue { export declare interface CollapsePanel extends Vue {
/** /**
* name Collapse的value对应 * name Collapse的value对应
* @default index的值 * @default index的值

View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class ColorPicker extends Vue { export declare interface ColorPicker extends Vue {
/** /**
* 使 v-model * 使 v-model
*/ */

4
types/content.d.ts vendored
View file

@ -2,7 +2,7 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Content extends Vue { export declare interface Content extends Vue {
} }

View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class DatePicker extends Vue { export declare interface DatePicker extends Vue {
/** /**
* datedaterangedatetimedatetimerangeyearmonth'|'date * datedaterangedatetimedatetimerangeyearmonth'|'date
*/ */
@ -40,7 +40,7 @@ export declare class DatePicker extends Vue {
/** /**
* *
*/ */
options?: object; options?: DatePickerOptions;
/** /**
* daterange datetimerange * daterange datetimerange
* @default false * @default false
@ -138,7 +138,7 @@ export declare class DatePicker extends Vue {
}; };
} }
export declare class DatePickerOptions extends Vue { export declare interface DatePickerOptions {
/** /**
* *
* text * text

4
types/divider.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Divider extends Vue { export declare interface Divider extends Vue {
/** /**
* horizontal vertical * horizontal vertical
* @default horizontal * @default horizontal

2
types/drawer.d.ts vendored
View file

@ -4,7 +4,7 @@
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Drawer extends Vue { export declare interface Drawer extends Vue {
/** /**
* 使 v-model * 使 v-model
* @default false * @default false

8
types/dropdown.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Dropdown extends Vue { export declare interface Dropdown extends Vue {
/** /**
* hoverclickcontextMenucustom使 custom visible 使 * hoverclickcontextMenucustom使 custom visible 使
* @default hover * @default hover
@ -56,10 +56,10 @@ export declare class Dropdown extends Vue {
}; };
} }
export declare class DropdownMenu extends Vue { export declare interface DropdownMenu extends Vue {
} }
export declare class DropdownItem extends Vue { export declare interface DropdownItem extends Vue {
/** /**
* *
*/ */

4
types/footer.d.ts vendored
View file

@ -2,7 +2,7 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Footer extends Vue { export declare interface Footer extends Vue {
} }

6
types/form.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Form extends Vue { export declare interface Form extends Vue {
/** /**
* *
*/ */
@ -46,7 +46,7 @@ export declare class Form extends Vue {
resetFields(): void; resetFields(): void;
} }
export declare class FormItem extends Vue { export declare interface FormItem extends Vue {
/** /**
* model * model
*/ */

6
types/grid.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Row extends Vue { export declare interface Row extends Vue {
/** /**
* px * px
* @default 0 * @default 0
@ -28,7 +28,7 @@ export declare class Row extends Vue {
'class-name'?: string; 'class-name'?: string;
} }
export declare class Col extends Vue { export declare interface Col extends Vue {
/** /**
* 0~24 0 相当于display:none * 0~24 0 相当于display:none
*/ */

4
types/header.d.ts vendored
View file

@ -2,7 +2,7 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Header extends Vue { export declare interface Header extends Vue {
} }

4
types/icon.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Icon extends Vue { export declare interface Icon extends Vue {
/** /**
* *
*/ */

View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class InputNumber extends Vue { export declare interface InputNumber extends Vue {
/** /**
* Infinity * Infinity
*/ */

4
types/input.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Input extends Vue { export declare interface Input extends Vue {
/** /**
* textpasswordtextareaurlemaildate * textpasswordtextareaurlemaildate
* @default text * @default text

View file

@ -2,7 +2,7 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export { Affix } from './affix'; export { Affix } from './affix';
export { Alert } from './alert'; export { Alert } from './alert';
@ -22,12 +22,13 @@ export { Circle, Circle as ICircle } from './circle';
export { Collapse, CollapsePanel } from './collapse'; export { Collapse, CollapsePanel } from './collapse';
export { ColorPicker } from './color-picker'; export { ColorPicker } from './color-picker';
export { Content } from './content'; export { Content } from './content';
export { DatePicker } from './date-picker'; export { DatePicker, DatePickerOptions } from './date-picker';
export { Divider } from './divider'; export { Divider } from './divider';
export { Drawer } from './drawer'; export { Drawer } from './drawer';
export { Dropdown, DropdownMenu, DropdownItem } from './dropdown'; export { Dropdown, DropdownMenu, DropdownItem } from './dropdown';
export { Footer } from './footer'; export { Footer } from './footer';
export { Form, FormItem } from './form'; export { Form, FormItem } from './form';
export { Row, Col } from './grid';
export { Header } from './header'; export { Header } from './header';
export { Icon } from './icon'; export { Icon } from './icon';
export { Input } from './input'; export { Input } from './input';
@ -35,22 +36,23 @@ export { InputNumber } from './input-number';
export { Scroll } from './scroll'; export { Scroll } from './scroll';
export { Split } from './split'; export { Split } from './split';
export { Layout } from './layout'; export { Layout } from './layout';
export { LoadingBar } from './loading-bar'; export { LoadingBar, LoadingBarConfig } from './loading-bar';
export { Menu, MenuGroup, MenuItem, MenuSub } from './menu'; export { Menu, MenuGroup, MenuItem, MenuSub } from './menu';
export { Message } from './message'; export { Message, MessageConfig } from './message';
export { Modal } from './modal'; export { Modal, ModalInstance, ModalConfig } from './modal';
export { Notice } from './notice'; export { Notice, NoticeConfig, NoticeGlobalConfig } from './notice';
export { Page } from './page'; export { Page } from './page';
export { Poptip } from './poptip'; export { Poptip } from './poptip';
export { Progress } from './progress'; export { Progress } from './progress';
export { Radio, RadioGroup } from './radio'; export { Radio, RadioGroup } from './radio';
export { Rate } from './rate'; export { Rate } from './rate';
export { Select, Option, OptionGroup } from './select';
export { Sider } from './sider'; export { Sider } from './sider';
export { Slider } from './slider'; export { Slider } from './slider';
export { Spin } from './spin'; export { Spin } from './spin';
export { Steps, StepsStep } from './steps'; export { Steps, StepsStep } from './steps';
export { Switch, Switch as ISwitch } from './switch'; export { Switch, Switch as ISwitch } from './switch';
export { Table } from './table'; export { Table, TableColumn, TableRenderCreateElementData, TableColumnRenderParams, TableRenderCreateElementResult, TableColumnRenderHeadParams, TableExportCsvParams } from './table';
export { Tabs, TabsPane } from './tabs'; export { Tabs, TabsPane } from './tabs';
export { Tag } from './tag'; export { Tag } from './tag';
export { Time } from './time'; export { Time } from './time';
@ -58,10 +60,8 @@ export { Timeline, TimelineItem } from './timeline';
export { TimePicker } from './time-picker'; export { TimePicker } from './time-picker';
export { Tooltip } from './tooltip'; export { Tooltip } from './tooltip';
export { Transfer } from './transfer'; export { Transfer } from './transfer';
export { Tree } from './tree'; export { Tree, TreeChild } from './tree';
export { Upload } from './upload'; export { Upload } from './upload';
export { Row, Col } from './grid';
export { Select, Option, OptionGroup } from './select';
declare const API: { declare const API: {
version: string; version: string;

4
types/layout.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Layout extends Vue { export declare interface Layout extends Vue {
/** /**
* xs,sm,md,lg,xl或xxl * xs,sm,md,lg,xl或xxl
* { * {

View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class LoadingBar { export declare interface LoadingBar {
/** /**
* 0 * 0
*/ */
@ -33,7 +33,7 @@ export declare class LoadingBar {
destroy(): void; destroy(): void;
} }
export declare class LoadingBarConfig { export declare interface LoadingBarConfig {
/** /**
* iView * iView
* @default primary * @default primary

10
types/menu.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Menu extends Vue { export declare interface Menu extends Vue {
/** /**
* horizontal vertical * horizontal vertical
* @default vertical * @default vertical
@ -52,7 +52,7 @@ export declare class Menu extends Vue {
updateActiveName(): void; updateActiveName(): void;
} }
export declare class MenuItem extends Vue { export declare interface MenuItem extends Vue {
/** /**
* *
*/ */
@ -73,7 +73,7 @@ export declare class MenuItem extends Vue {
target?: '_blank' | '_self' | '_parent' | '_top'; target?: '_blank' | '_self' | '_parent' | '_top';
} }
export declare class MenuSub extends Vue { export declare interface MenuSub extends Vue {
/** /**
* *
*/ */
@ -93,7 +93,7 @@ export declare class MenuSub extends Vue {
}; };
} }
export declare class MenuGroup extends Vue { export declare interface MenuGroup extends Vue {
/** /**
* *
* @default * @default

4
types/message.d.ts vendored
View file

@ -4,7 +4,7 @@
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode, CreateElement } from "vue"; import Vue, { VNode, CreateElement } from "vue";
export declare class Message { export declare interface Message {
/** /**
* *
* @param config MessageConfig为相关配置,string为待显示的内容 * @param config MessageConfig为相关配置,string为待显示的内容
@ -41,7 +41,7 @@ export declare class Message {
destroy(): void; destroy(): void;
} }
export declare class MessageConfig { export declare interface MessageConfig {
/** /**
* *
*/ */

8
types/modal.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Modal { export declare interface Modal {
/** /**
* 使 v-model * 使 v-model
* @default false * @default false
@ -123,7 +123,7 @@ export declare class Modal {
}; };
} }
export declare class ModalInstance { export declare interface ModalInstance {
/** /**
* *
* @param config ModalConfig为相关配置,string为待显示的内容 * @param config ModalConfig为相关配置,string为待显示的内容
@ -155,7 +155,7 @@ export declare class ModalInstance {
remove(): void; remove(): void;
} }
export declare class ModalConfig { export declare interface ModalConfig {
/** /**
* Element选择器字符串 * Element选择器字符串
*/ */

6
types/notice.d.ts vendored
View file

@ -4,7 +4,7 @@
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode, CreateElement } from "vue"; import Vue, { VNode, CreateElement } from "vue";
export declare class Notice { export declare interface Notice {
/** /**
* *
* @param config NoticeConfig为相关配置,string为待显示的内容 * @param config NoticeConfig为相关配置,string为待显示的内容
@ -44,7 +44,7 @@ export declare class Notice {
destroy(): void; destroy(): void;
} }
export declare class NoticeConfig { export declare interface NoticeConfig {
/** /**
* *
*/ */
@ -71,7 +71,7 @@ export declare class NoticeConfig {
onClose?: Function; onClose?: Function;
} }
export declare class NoticeGlobalConfig { export declare interface NoticeGlobalConfig {
/** /**
* 24 * 24
*/ */

4
types/page.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Page extends Vue { export declare interface Page extends Vue {
/** /**
* .sync * .sync
* @default 1 * @default 1

4
types/poptip.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Poptip extends Vue { export declare interface Poptip extends Vue {
/** /**
* hoverclickfocus, * hoverclickfocus,
* confirm click * confirm click

4
types/progress.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Progress extends Vue { export declare interface Progress extends Vue {
/** /**
* *
* @default 0 * @default 0

6
types/radio.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Radio extends Vue { export declare interface Radio extends Vue {
/** /**
* 使使 v-model * 使使 v-model
* @default false * @default false
@ -39,7 +39,7 @@ export declare class Radio extends Vue {
$emit(eventName: 'on-change', arg: string | number | boolean): this; $emit(eventName: 'on-change', arg: string | number | boolean): this;
} }
export declare class RadioGroup extends Vue { export declare interface RadioGroup extends Vue {
/** /**
* 使 v-model * 使 v-model
*/ */

4
types/rate.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Rate extends Vue { export declare interface Rate extends Vue {
/** /**
* star总数 * star总数
* @default 5 * @default 5

4
types/scroll.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Scroll extends Vue { export declare interface Scroll extends Vue {
/** /**
* *
* @default 300 * @default 300

8
types/select.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Select extends Vue { export declare interface Select extends Vue {
/** /**
* value 使 v-model * value 使 v-model
* String Number Array * String Number Array
@ -114,7 +114,7 @@ export declare class Select extends Vue {
clearSingleSelect(): void; clearSingleSelect(): void;
} }
export declare class Option extends Vue { export declare interface Option extends Vue {
/** /**
* *
*/ */
@ -132,7 +132,7 @@ export declare class Option extends Vue {
disabled?: boolean; disabled?: boolean;
} }
export declare class OptionGroup extends Vue { export declare interface OptionGroup extends Vue {
/** /**
* *
* @default * @default

4
types/sider.d.ts vendored
View file

@ -2,7 +2,7 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Sider extends Vue { export declare interface Sider extends Vue {
} }

4
types/slider.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Slider extends Vue { export declare interface Slider extends Vue {
/** /**
* 使 v-model * 使 v-model
* 2, * 2,

4
types/spin.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Spin extends Vue { export declare interface Spin extends Vue {
/** /**
* Spin尺寸large和small或者不设置 * Spin尺寸large和small或者不设置
*/ */

4
types/split.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Split extends Vue { export declare interface Split extends Vue {
/** /**
* 0~1 v-model * 0~1 v-model
* @default 0.5 * @default 0.5

6
types/steps.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Steps extends Vue { export declare interface Steps extends Vue {
/** /**
* 0 * 0
* @default 0 * @default 0
@ -26,7 +26,7 @@ export declare class Steps extends Vue {
direction?: 'horizontal' | 'vertical'; direction?: 'horizontal' | 'vertical';
} }
export declare class StepsStep extends Vue { export declare interface StepsStep extends Vue {
/** /**
* waitprocessfinisherror * waitprocessfinisherror
* @default process * @default process

4
types/switch.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Switch extends Vue { export declare interface Switch extends Vue {
/** /**
* 使 v-model * 使 v-model
* @default false * @default false

16
types/table.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Table extends Vue { export declare interface Table extends Vue {
/** /**
* cellClassName * cellClassName
* 使 * 使
@ -163,7 +163,7 @@ export declare class Table extends Vue {
}; };
} }
export declare class TableColumn { export declare interface TableColumn {
/** /**
* indexselectionexpandhtml * indexselectionexpandhtml
*/ */
@ -279,7 +279,7 @@ export declare class TableColumn {
children?: object[]; children?: object[];
} }
export declare class TableRenderCreateElementData { export declare interface TableRenderCreateElementData {
/** /**
* `v-bind:class` API * `v-bind:class` API
*/ */
@ -329,7 +329,7 @@ export declare class TableRenderCreateElementData {
ref?: string ref?: string
} }
export declare class TableColumnRenderParams { export declare interface TableColumnRenderParams {
/** /**
* *
*/ */
@ -344,7 +344,7 @@ export declare class TableColumnRenderParams {
index?: number; index?: number;
} }
export declare class TableRenderCreateElementResult { export declare interface TableRenderCreateElementResult {
child?: object; child?: object;
children?: Array<any>; children?: Array<any>;
componentInstance?: object; componentInstance?: object;
@ -366,7 +366,7 @@ export declare class TableRenderCreateElementResult {
text?: object; text?: object;
} }
export declare class TableColumnRenderHeadParams { export declare interface TableColumnRenderHeadParams {
/** /**
* *
*/ */
@ -377,7 +377,7 @@ export declare class TableColumnRenderHeadParams {
index?: number; index?: number;
} }
export declare class TableExportCsvParams { export declare interface TableExportCsvParams {
/** /**
* table.csv * table.csv
*/ */

6
types/tabs.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Tabs extends Vue { export declare interface Tabs extends Vue {
/** /**
* tab name使 v-model * tab name使 v-model
* @default name * @default name
@ -54,7 +54,7 @@ export declare class Tabs extends Vue {
}; };
} }
export declare class TabsPane extends Vue { export declare interface TabsPane extends Vue {
/** /**
* value * value
*/ */

4
types/tag.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Tag extends Vue { export declare interface Tag extends Vue {
/** /**
* *
* @default false * @default false

View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class TimePicker extends Vue { export declare interface TimePicker extends Vue {
/** /**
* timetimerange * timetimerange
* @default time * @default time

View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Time extends Vue { export declare interface Time extends Vue {
/** /**
* Date * Date
*/ */

6
types/timeline.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Timeline extends Vue { export declare interface Timeline extends Vue {
/** /**
* *
* @default false * @default false
@ -12,7 +12,7 @@ export declare class Timeline extends Vue {
pending?: boolean; pending?: boolean;
} }
export declare class TimelineItem extends Vue { export declare interface TimelineItem extends Vue {
/** /**
* blueredgreen * blueredgreen
* @default blue * @default blue

4
types/tooltip.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Tooltip extends Vue { export declare interface Tooltip extends Vue {
/** /**
* *
* @default * @default

4
types/transfer.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Transfer extends Vue { export declare interface Transfer extends Vue {
/** /**
* targetKeys * targetKeys
* @default [] * @default []

6
types/tree.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Tree extends Vue { export declare interface Tree extends Vue {
/** /**
* tree * tree
*/ */
@ -62,7 +62,7 @@ export declare class Tree extends Vue {
getSelectedNodes(): void; getSelectedNodes(): void;
} }
export declare class TreeChild extends Vue { export declare interface TreeChild extends Vue {
/** /**
* *
*/ */

4
types/upload.d.ts vendored
View file

@ -2,9 +2,9 @@
// Project: https://github.com/iview/iview // Project: https://github.com/iview/iview
// Definitions by: yangdan // Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git // Definitions: https://github.com/yangdan8/iview.git
import Vue,{ VNode } from 'vue'; import Vue, { VNode } from 'vue';
export declare class Upload extends Vue { export declare interface Upload extends Vue {
/** /**
* *
*/ */