修改d.ts中的类名,并添加全局方法的d.ts定义
This commit is contained in:
parent
c703e2b4a4
commit
6d9afa9c19
60 changed files with 216 additions and 212 deletions
2
types/affix.d.ts
vendored
2
types/affix.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Affix extends Vue {
|
||||
/**
|
||||
|
|
2
types/alert.d.ts
vendored
2
types/alert.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Alert extends Vue {
|
||||
/**
|
||||
|
|
2
types/anchor.d.ts
vendored
2
types/anchor.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Anchor extends Vue {
|
||||
/**
|
||||
|
|
2
types/auto-complete.d.ts
vendored
2
types/auto-complete.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class AutoComplete extends Vue {
|
||||
/**
|
||||
|
|
2
types/avatar.d.ts
vendored
2
types/avatar.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Avatar extends Vue {
|
||||
/**
|
||||
|
|
2
types/back-top.d.ts
vendored
2
types/back-top.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class BackTop extends Vue {
|
||||
/**
|
||||
|
|
2
types/badge.d.ts
vendored
2
types/badge.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Badge extends Vue {
|
||||
/**
|
||||
|
|
2
types/breadcrumb.d.ts
vendored
2
types/breadcrumb.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Breadcrumb extends Vue {
|
||||
/**
|
||||
|
|
2
types/button.d.ts
vendored
2
types/button.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Button extends Vue {
|
||||
/**
|
||||
|
|
2
types/card.d.ts
vendored
2
types/card.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Card extends Vue {
|
||||
/**
|
||||
|
|
6
types/carousel.d.ts
vendored
6
types/carousel.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Carousel extends Vue {
|
||||
/**
|
||||
|
@ -58,4 +58,8 @@ export declare class Carousel extends Vue {
|
|||
* 幻灯片切换时触发,目前激活的幻灯片的索引,原幻灯片的索引
|
||||
*/
|
||||
$emit(eventName: 'on-change', oldValue: number, value: number): this;
|
||||
}
|
||||
|
||||
export declare class CarouselItem extends Vue {
|
||||
|
||||
}
|
2
types/cascader.d.ts
vendored
2
types/cascader.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Cascader extends Vue {
|
||||
/**
|
||||
|
|
2
types/cell.d.ts
vendored
2
types/cell.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Cell extends Vue {
|
||||
/**
|
||||
|
|
2
types/checkbox.d.ts
vendored
2
types/checkbox.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Checkbox extends Vue {
|
||||
/**
|
||||
|
|
2
types/circle.d.ts
vendored
2
types/circle.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Circle extends Vue {
|
||||
/**
|
||||
|
|
2
types/collapse.d.ts
vendored
2
types/collapse.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Collapse extends Vue {
|
||||
/**
|
||||
|
|
2
types/color-picker.d.ts
vendored
2
types/color-picker.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class ColorPicker extends Vue {
|
||||
/**
|
||||
|
|
8
types/content.d.ts
vendored
Normal file
8
types/content.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
// Type definitions for iview 3.0.1
|
||||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Content extends Vue {
|
||||
}
|
2
types/date-picker.d.ts
vendored
2
types/date-picker.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class DatePicker extends Vue {
|
||||
/**
|
||||
|
|
2
types/divider.d.ts
vendored
2
types/divider.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Divider extends Vue {
|
||||
/**
|
||||
|
|
8
types/drawer.d.ts
vendored
Normal file
8
types/drawer.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
// Type definitions for iview 3.0.1
|
||||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Drawer extends Vue {
|
||||
}
|
5
types/dropdown.d.ts
vendored
5
types/dropdown.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Dropdown extends Vue {
|
||||
/**
|
||||
|
@ -56,6 +56,9 @@ export declare class Dropdown extends Vue {
|
|||
};
|
||||
}
|
||||
|
||||
export declare class DropdownMenu extends Vue {
|
||||
}
|
||||
|
||||
export declare class DropdownItem extends Vue {
|
||||
/**
|
||||
* 用来标识这一项
|
||||
|
|
8
types/footer.d.ts
vendored
Normal file
8
types/footer.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
// Type definitions for iview 3.0.1
|
||||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Footer extends Vue {
|
||||
}
|
2
types/form.d.ts
vendored
2
types/form.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Form extends Vue {
|
||||
/**
|
||||
|
|
6
types/grid.d.ts
vendored
6
types/grid.d.ts
vendored
|
@ -2,9 +2,9 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class GridRow extends Vue {
|
||||
export declare class Row extends Vue {
|
||||
/**
|
||||
* 栅格间距,单位 px,左右平分
|
||||
* @default 0
|
||||
|
@ -28,7 +28,7 @@ export declare class GridRow extends Vue {
|
|||
'class-name'?: string;
|
||||
}
|
||||
|
||||
export declare class GridCol extends Vue {
|
||||
export declare class Col extends Vue {
|
||||
/**
|
||||
* 栅格的占位格数,可选值为0~24的整数,为 0 时,相当于display:none
|
||||
*/
|
||||
|
|
8
types/header.d.ts
vendored
Normal file
8
types/header.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
// Type definitions for iview 3.0.1
|
||||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Header extends Vue {
|
||||
}
|
2
types/icon.d.ts
vendored
2
types/icon.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Icon extends Vue {
|
||||
/**
|
||||
|
|
4
types/index.d.ts
vendored
4
types/index.d.ts
vendored
|
@ -2,9 +2,9 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import iView from "./iview";
|
||||
import iView from './iview';
|
||||
|
||||
export default iView;
|
||||
export as namespace iView;
|
||||
|
||||
export * from "./iview.components";
|
||||
export * from './iview.components';
|
2
types/input-number.d.ts
vendored
2
types/input-number.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class InputNumber extends Vue {
|
||||
/**
|
||||
|
|
2
types/input.d.ts
vendored
2
types/input.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Input extends Vue {
|
||||
/**
|
||||
|
|
232
types/iview.components.d.ts
vendored
232
types/iview.components.d.ts
vendored
|
@ -1,143 +1,91 @@
|
|||
import { Affix } from "./affix";
|
||||
import { Alert } from "./alert";
|
||||
import { Anchor, AnchorLink } from "./anchor";
|
||||
import { AutoComplete } from "./auto-complete";
|
||||
import { Avatar } from "./avatar";
|
||||
import { BackTop } from "./back-top";
|
||||
import { Badge } from "./badge";
|
||||
import { Breadcrumb, BreadcrumbItem } from "./breadcrumb";
|
||||
import { Button, ButtonGroup } from "./button";
|
||||
import { Card } from "./card";
|
||||
import { Carousel } from "./carousel";
|
||||
import { Cascader } from "./cascader";
|
||||
import { Cell, CellGroup } from "./cell";
|
||||
import { Checkbox, CheckboxGroup } from "./checkbox";
|
||||
import { Circle } from "./circle";
|
||||
import { Collapse, CollapsePanel } from "./collapse";
|
||||
import { ColorPicker } from "./color-picker";
|
||||
import { DatePicker, DatePickerOptions } from "./date-picker";
|
||||
import { Divider } from "./divider";
|
||||
import { Dropdown, DropdownItem } from "./dropdown";
|
||||
import { Form, FormItem } from "./form";
|
||||
import { GridRow, GridCol } from "./grid";
|
||||
import { Icon } from "./icon";
|
||||
import { Input } from "./input";
|
||||
import { InputNumber } from "./input-number";
|
||||
import { Layout } from "./layout";
|
||||
import { LoadingBarInstance, LoadingBarConfig } from "./loading-bar";
|
||||
import { Menu, MenuItem, Submenu, MenuGroup } from "./menu";
|
||||
import { MessageInstance, MessageConfig } from "./message";
|
||||
import { Modal, ModalInstance, ModalConfig } from "./modal";
|
||||
import { NoticeInstance, NoticeConfig, NoticeGlobalConfig } from "./notice";
|
||||
import { Page } from "./page";
|
||||
import { Poptip } from "./poptip";
|
||||
import { Progress } from "./progress";
|
||||
import { Radio, RadioGroup } from "./radio";
|
||||
import { Rate } from "./rate";
|
||||
import { Scroll } from "./scroll";
|
||||
import { Select, SelectOption, SelectOptionGroup } from "./select";
|
||||
import { Spin } from "./spin";
|
||||
import { Split } from "./split";
|
||||
import { Steps, Step } from "./steps";
|
||||
import { Switch } from "./switch";
|
||||
import {
|
||||
Table,
|
||||
TableColumn,
|
||||
TableRenderCreateElementData,
|
||||
TableRenderCreateElementResult,
|
||||
TableColumnRenderParams,
|
||||
TableExportCsvParams
|
||||
} from "./table";
|
||||
import { Tabs, TabPane } from "./tabs";
|
||||
import { Tag } from "./tag";
|
||||
import { Time } from "./time";
|
||||
import { Timeline, TimelineItem } from "./timeline";
|
||||
import { TimePicker } from "./time-picker";
|
||||
import { Tooltip } from "./tooltip";
|
||||
import { Transfer } from "./transfer";
|
||||
import { Tree, TreeChild } from "./tree";
|
||||
import { Upload } from "./upload";
|
||||
// Type definitions for iview 3.0.1
|
||||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export class IAffix extends Affix {}
|
||||
export class IAlert extends Alert {}
|
||||
export class IAnchor extends Anchor {}
|
||||
export class IAnchorLink extends AnchorLink {}
|
||||
export class IAutoComplete extends AutoComplete {}
|
||||
export class IAvatar extends Avatar {}
|
||||
export class IBackTop extends BackTop {}
|
||||
export class IBadge extends Badge {}
|
||||
export class IBreadcrumb extends Breadcrumb {}
|
||||
export class IBreadcrumbItem extends BreadcrumbItem {}
|
||||
export class IButton extends Button {}
|
||||
export class IButtonGroup extends ButtonGroup {}
|
||||
export class ICard extends Card {}
|
||||
export class ICarousel extends Carousel {}
|
||||
export class ICascader extends Cascader {}
|
||||
export class ICell extends Cell {}
|
||||
export class ICellGroup extends CellGroup {}
|
||||
export class ICheckbox extends Checkbox {}
|
||||
export class ICheckboxGroup extends CheckboxGroup {}
|
||||
export class ICircle extends Circle {}
|
||||
export class ICollapse extends Collapse {}
|
||||
export class ICollapsePanel extends CollapsePanel {}
|
||||
export class IColorPicker extends ColorPicker {}
|
||||
export class IDatePicker extends DatePicker {}
|
||||
export class IDatePickerOptions extends DatePickerOptions {}
|
||||
export class IDivider extends Divider {}
|
||||
export class IDropdown extends Dropdown {}
|
||||
export class IDropdownItem extends DropdownItem {}
|
||||
export class IForm extends Form {}
|
||||
export class IFormItem extends FormItem {}
|
||||
export class IGridCol extends GridCol {}
|
||||
export class IGridRow extends GridRow {}
|
||||
export class IIcon extends Icon {}
|
||||
export class IInput extends Input {}
|
||||
export class IInputNumber extends InputNumber {}
|
||||
export class ILayout extends Layout {}
|
||||
export class ILoadingBarInstance extends LoadingBarInstance {}
|
||||
export class ILoadingBarConfig extends LoadingBarConfig {}
|
||||
export class IMenu extends Menu {}
|
||||
export class IMenuGroup extends MenuGroup {}
|
||||
export class IMenuItem extends MenuItem {}
|
||||
export class IMessageConfig extends MessageConfig {}
|
||||
export class IMessageInstance extends MessageInstance {}
|
||||
export class IModal extends Modal {}
|
||||
export class IModalConfig extends ModalConfig {}
|
||||
export class IModalInstance extends ModalInstance {}
|
||||
export class INoticeConfig extends NoticeConfig {}
|
||||
export class INoticeGlobalConfig extends NoticeGlobalConfig {}
|
||||
export class INoticeInstance extends NoticeInstance {}
|
||||
export class IPage extends Page {}
|
||||
export class IPoptip extends Poptip {}
|
||||
export class IProgress extends Progress {}
|
||||
export class IRadio extends Radio {}
|
||||
export class IRadioGroup extends RadioGroup {}
|
||||
export class IRate extends Rate {}
|
||||
export class IScroll extends Scroll {}
|
||||
export class ISelect extends Select {}
|
||||
export class ISelectOption extends SelectOption {}
|
||||
export class ISelectOptionGroup extends SelectOptionGroup {}
|
||||
export class ISpin extends Spin {}
|
||||
export class ISplit extends Split {}
|
||||
export class IStep extends Step {}
|
||||
export class ISteps extends Steps {}
|
||||
export class ISubmenu extends Submenu {}
|
||||
export class ISwitch extends Switch {}
|
||||
export class ITable extends Table {}
|
||||
export class ITableColumn extends TableColumn {}
|
||||
export class ITableColumnRenderParams extends TableColumnRenderParams {}
|
||||
export class ITableExportCsvParams extends TableExportCsvParams {}
|
||||
export class ITableRenderCreateElementData extends TableRenderCreateElementData {}
|
||||
export class ITableRenderCreateElementResult extends TableRenderCreateElementResult {}
|
||||
export class ITabPane extends TabPane {}
|
||||
export class ITabs extends Tabs {}
|
||||
export class ITag extends Tag {}
|
||||
export class ITime extends Time {}
|
||||
export class ITimeline extends Timeline {}
|
||||
export class ITimelineItem extends TimelineItem {}
|
||||
export class ITimePicker extends TimePicker {}
|
||||
export class ITooltip extends Tooltip {}
|
||||
export class ITransfer extends Transfer {}
|
||||
export class ITree extends Tree {}
|
||||
export class ITreeChild extends TreeChild {}
|
||||
export class IUpload extends Upload {}
|
||||
export { Affix } from './affix';
|
||||
export { Alert } from './alert';
|
||||
export { Anchor, AnchorLink } from './anchor';
|
||||
export { AutoComplete } from './auto-complete';
|
||||
export { Avatar } from './avatar';
|
||||
export { BackTop } from './back-top';
|
||||
export { Badge } from './badge';
|
||||
export { Breadcrumb, BreadcrumbItem } from './breadcrumb';
|
||||
export { Button, ButtonGroup } from './button';
|
||||
export { Card } from './card';
|
||||
export { Carousel, CarouselItem } from './carousel';
|
||||
export { Cascader } from './cascader';
|
||||
export { Cell, CellGroup } from './cell';
|
||||
export { Checkbox, CheckboxGroup } from './checkbox';
|
||||
export { Circle, Circle as ICircle } from './circle';
|
||||
export { Collapse, CollapsePanel } from './collapse';
|
||||
export { ColorPicker } from './color-picker';
|
||||
export { Content } from './content';
|
||||
export { DatePicker } from './date-picker';
|
||||
export { Divider } from './divider';
|
||||
export { Drawer } from './drawer';
|
||||
export { Dropdown, DropdownMenu, DropdownItem } from './dropdown';
|
||||
export { Footer } from './footer';
|
||||
export { Form, FormItem } from './form';
|
||||
export { Header } from './header';
|
||||
export { Icon } from './icon';
|
||||
export { Input } from './input';
|
||||
export { InputNumber } from './input-number';
|
||||
export { Scroll } from './scroll';
|
||||
export { Split } from './split';
|
||||
export { Layout } from './layout';
|
||||
export { LoadingBar } from './loading-bar';
|
||||
export { Menu, MenuGroup, MenuItem, MenuSub } from './menu';
|
||||
export { Message } from './message';
|
||||
export { Modal } from './modal';
|
||||
export { Notice } from './notice';
|
||||
export { Page } from './page';
|
||||
export { Poptip } from './poptip';
|
||||
export { Progress } from './progress';
|
||||
export { Radio, RadioGroup } from './radio';
|
||||
export { Rate } from './rate';
|
||||
export { Sider } from './sider';
|
||||
export { Slider } from './slider';
|
||||
export { Spin } from './spin';
|
||||
export { Steps, StepsStep } from './steps';
|
||||
export { Switch, Switch as ISwitch } from './switch';
|
||||
export { Table } from './table';
|
||||
export { Tabs, TabsPane } from './tabs';
|
||||
export { Tag } from './tag';
|
||||
export { Time } from './time';
|
||||
export { Timeline, TimelineItem } from './timeline';
|
||||
export { TimePicker } from './time-picker';
|
||||
export { Tooltip } from './tooltip';
|
||||
export { Transfer } from './transfer';
|
||||
export { Tree } from './tree';
|
||||
export { Upload } from './upload';
|
||||
export { Row, Col } from './grid';
|
||||
export { Select, Option, OptionGroup } from './select';
|
||||
|
||||
declare const API: {
|
||||
version: string;
|
||||
locale: (l) => void;
|
||||
i18n: (fn) => void;
|
||||
install: (
|
||||
Vue: Vue,
|
||||
opts: {
|
||||
locale?: any;
|
||||
i18n?: any;
|
||||
size?: any;
|
||||
transfer?: any;
|
||||
}
|
||||
) => void;
|
||||
lang: (code: string) => void;
|
||||
};
|
||||
|
||||
export default API;
|
||||
|
||||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
$IVIEW?: {
|
||||
size?: string;
|
||||
transfer?: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
2
types/layout.d.ts
vendored
2
types/layout.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Layout extends Vue {
|
||||
/**
|
||||
|
|
8
types/loading-bar.d.ts
vendored
8
types/loading-bar.d.ts
vendored
|
@ -2,9 +2,9 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class LoadingBarInstance {
|
||||
export declare class LoadingBar {
|
||||
/**
|
||||
* 开始从 0 显示进度条,并自动加载进度
|
||||
*/
|
||||
|
@ -51,11 +51,11 @@ export declare class LoadingBarConfig {
|
|||
height?: number;
|
||||
}
|
||||
|
||||
declare module "vue/types/vue" {
|
||||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
/**
|
||||
* 加载进度条
|
||||
*/
|
||||
$Loading?: LoadingBarInstance;
|
||||
$Loading?: LoadingBar;
|
||||
}
|
||||
}
|
4
types/menu.d.ts
vendored
4
types/menu.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Menu extends Vue {
|
||||
/**
|
||||
|
@ -73,7 +73,7 @@ export declare class MenuItem extends Vue {
|
|||
target?: '_blank' | '_self' | '_parent' | '_top';
|
||||
}
|
||||
|
||||
export declare class Submenu extends Vue {
|
||||
export declare class MenuSub extends Vue {
|
||||
/**
|
||||
* 子菜单的唯一标识,必填
|
||||
*/
|
||||
|
|
6
types/message.d.ts
vendored
6
types/message.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode, CreateElement } from "vue";
|
||||
|
||||
export declare class MessageInstance {
|
||||
export declare class Message {
|
||||
/**
|
||||
* 消息
|
||||
* @param config MessageConfig为相关配置,string为待显示的内容
|
||||
|
@ -71,12 +71,12 @@ export declare class MessageConfig {
|
|||
duration?: number;
|
||||
}
|
||||
|
||||
declare module "vue/types/vue" {
|
||||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
/**
|
||||
* 全局提示
|
||||
*/
|
||||
$Message?: MessageInstance;
|
||||
$Message?: Message;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
4
types/modal.d.ts
vendored
4
types/modal.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Modal {
|
||||
/**
|
||||
|
@ -208,7 +208,7 @@ export declare class ModalConfig {
|
|||
onCancel?: () => void;
|
||||
}
|
||||
|
||||
declare module "vue/types/vue" {
|
||||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
/**
|
||||
* 对话框
|
||||
|
|
6
types/notice.d.ts
vendored
6
types/notice.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode, CreateElement } from "vue";
|
||||
|
||||
export declare class NoticeInstance {
|
||||
export declare class Notice {
|
||||
/**
|
||||
* 打开
|
||||
* @param config NoticeConfig为相关配置,string为待显示的内容
|
||||
|
@ -82,11 +82,11 @@ export declare class NoticeGlobalConfig {
|
|||
duration?: number;
|
||||
}
|
||||
|
||||
declare module "vue/types/vue" {
|
||||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
/**
|
||||
* 通知提醒
|
||||
*/
|
||||
$Notice?: NoticeInstance;
|
||||
$Notice?: Notice;
|
||||
}
|
||||
}
|
2
types/page.d.ts
vendored
2
types/page.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Page extends Vue {
|
||||
/**
|
||||
|
|
2
types/poptip.d.ts
vendored
2
types/poptip.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Poptip extends Vue {
|
||||
/**
|
||||
|
|
2
types/progress.d.ts
vendored
2
types/progress.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Progress extends Vue {
|
||||
/**
|
||||
|
|
2
types/radio.d.ts
vendored
2
types/radio.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Radio extends Vue {
|
||||
/**
|
||||
|
|
2
types/rate.d.ts
vendored
2
types/rate.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Rate extends Vue {
|
||||
/**
|
||||
|
|
2
types/scroll.d.ts
vendored
2
types/scroll.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Scroll extends Vue {
|
||||
/**
|
||||
|
|
6
types/select.d.ts
vendored
6
types/select.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Select extends Vue {
|
||||
/**
|
||||
|
@ -114,7 +114,7 @@ export declare class Select extends Vue {
|
|||
clearSingleSelect(): void;
|
||||
}
|
||||
|
||||
export declare class SelectOption extends Vue {
|
||||
export declare class Option extends Vue {
|
||||
/**
|
||||
* 选项值,默认根据此属性值进行筛选,必填
|
||||
*/
|
||||
|
@ -132,7 +132,7 @@ export declare class SelectOption extends Vue {
|
|||
disabled?: boolean;
|
||||
}
|
||||
|
||||
export declare class SelectOptionGroup extends Vue {
|
||||
export declare class OptionGroup extends Vue {
|
||||
/**
|
||||
* 分组的组名
|
||||
* @default 空
|
||||
|
|
8
types/sider.d.ts
vendored
Normal file
8
types/sider.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
// Type definitions for iview 3.0.1
|
||||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Sider extends Vue {
|
||||
}
|
2
types/slider.d.ts
vendored
2
types/slider.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Slider extends Vue {
|
||||
/**
|
||||
|
|
11
types/spin.d.ts
vendored
11
types/spin.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Spin extends Vue {
|
||||
/**
|
||||
|
@ -23,4 +23,13 @@ export declare class Spin extends Vue {
|
|||
*/
|
||||
'': VNode[];
|
||||
};
|
||||
}
|
||||
|
||||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
$Spin?: Spin;
|
||||
}
|
||||
}
|
2
types/split.d.ts
vendored
2
types/split.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Split extends Vue {
|
||||
/**
|
||||
|
|
4
types/steps.d.ts
vendored
4
types/steps.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Steps extends Vue {
|
||||
/**
|
||||
|
@ -26,7 +26,7 @@ export declare class Steps extends Vue {
|
|||
direction?: 'horizontal' | 'vertical';
|
||||
}
|
||||
|
||||
export declare class Step extends Vue {
|
||||
export declare class StepsStep extends Vue {
|
||||
/**
|
||||
* 步骤的状态,可选值为wait、process、finish、error,不设置时自动判断
|
||||
* @default process
|
||||
|
|
2
types/switch.d.ts
vendored
2
types/switch.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Switch extends Vue {
|
||||
/**
|
||||
|
|
2
types/table.d.ts
vendored
2
types/table.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Table extends Vue {
|
||||
/**
|
||||
|
|
4
types/tabs.d.ts
vendored
4
types/tabs.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Tabs extends Vue {
|
||||
/**
|
||||
|
@ -54,7 +54,7 @@ export declare class Tabs extends Vue {
|
|||
};
|
||||
}
|
||||
|
||||
export declare class TabPane extends Vue {
|
||||
export declare class TabsPane extends Vue {
|
||||
/**
|
||||
* 用于标识当前面板,对应 value,默认为其索引值
|
||||
*/
|
||||
|
|
2
types/tag.d.ts
vendored
2
types/tag.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Tag extends Vue {
|
||||
/**
|
||||
|
|
2
types/time-picker.d.ts
vendored
2
types/time-picker.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class TimePicker extends Vue {
|
||||
/**
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Time extends Vue {
|
||||
/**
|
||||
|
|
2
types/timeline.d.ts
vendored
2
types/timeline.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Timeline extends Vue {
|
||||
/**
|
||||
|
|
2
types/tooltip.d.ts
vendored
2
types/tooltip.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Tooltip extends Vue {
|
||||
/**
|
||||
|
|
2
types/transfer.d.ts
vendored
2
types/transfer.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Transfer extends Vue {
|
||||
/**
|
||||
|
|
2
types/tree.d.ts
vendored
2
types/tree.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Tree extends Vue {
|
||||
/**
|
||||
|
|
2
types/upload.d.ts
vendored
2
types/upload.d.ts
vendored
|
@ -2,7 +2,7 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class Upload extends Vue {
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue