修改d.ts中的类名,并添加全局方法的d.ts定义

This commit is contained in:
yangd 2018-08-30 16:39:36 +08:00
parent c703e2b4a4
commit 6d9afa9c19
60 changed files with 216 additions and 212 deletions

2
types/affix.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 Affix extends Vue { export declare class Affix extends Vue {
/** /**

2
types/alert.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 Alert extends Vue { export declare class Alert extends Vue {
/** /**

2
types/anchor.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 Anchor extends Vue { export declare class Anchor extends Vue {
/** /**

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 AutoComplete extends Vue { export declare class AutoComplete extends Vue {
/** /**

2
types/avatar.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 Avatar extends Vue { export declare class Avatar extends Vue {
/** /**

2
types/back-top.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 BackTop extends Vue { export declare class BackTop extends Vue {
/** /**

2
types/badge.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 Badge extends Vue { export declare class Badge extends Vue {
/** /**

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 Breadcrumb extends Vue { export declare class Breadcrumb extends Vue {
/** /**

2
types/button.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 Button extends Vue { export declare class Button extends Vue {
/** /**

2
types/card.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 Card extends Vue { export declare class Card extends Vue {
/** /**

6
types/carousel.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 Carousel extends Vue { export declare class Carousel extends Vue {
/** /**
@ -59,3 +59,7 @@ 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 {
}

2
types/cascader.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 Cascader extends Vue { export declare class Cascader extends Vue {
/** /**

2
types/cell.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 Cell extends Vue { export declare class Cell extends Vue {
/** /**

2
types/checkbox.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 Checkbox extends Vue { export declare class Checkbox extends Vue {
/** /**

2
types/circle.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 Circle extends Vue { export declare class Circle extends Vue {
/** /**

2
types/collapse.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 Collapse extends Vue { export declare class Collapse extends Vue {
/** /**

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 ColorPicker extends Vue { export declare class ColorPicker extends Vue {
/** /**

8
types/content.d.ts vendored Normal file
View 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 {
}

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 DatePicker extends Vue { export declare class DatePicker extends Vue {
/** /**

2
types/divider.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 Divider extends Vue { export declare class Divider extends Vue {
/** /**

8
types/drawer.d.ts vendored Normal file
View 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
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 Dropdown extends 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 { export declare class DropdownItem extends Vue {
/** /**
* *

8
types/footer.d.ts vendored Normal file
View 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
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 Form extends Vue { export declare class Form extends Vue {
/** /**

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 GridRow extends Vue { export declare class Row extends Vue {
/** /**
* px * px
* @default 0 * @default 0
@ -28,7 +28,7 @@ export declare class GridRow extends Vue {
'class-name'?: string; 'class-name'?: string;
} }
export declare class GridCol extends Vue { export declare class Col extends Vue {
/** /**
* 0~24 0 相当于display:none * 0~24 0 相当于display:none
*/ */

8
types/header.d.ts vendored Normal file
View 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
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 Icon extends Vue { export declare class Icon extends Vue {
/** /**

4
types/index.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 iView from "./iview"; import iView from './iview';
export default iView; export default iView;
export as namespace iView; export as namespace iView;
export * from "./iview.components"; export * from './iview.components';

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 InputNumber extends Vue { export declare class InputNumber extends Vue {
/** /**

2
types/input.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 Input extends Vue { export declare class Input extends Vue {
/** /**

View file

@ -1,143 +1,91 @@
import { Affix } from "./affix"; // Type definitions for iview 3.0.1
import { Alert } from "./alert"; // Project: https://github.com/iview/iview
import { Anchor, AnchorLink } from "./anchor"; // Definitions by: yangdan
import { AutoComplete } from "./auto-complete"; // Definitions: https://github.com/yangdan8/iview.git
import { Avatar } from "./avatar"; import Vue from 'vue';
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";
export class IAffix extends Affix {} export { Affix } from './affix';
export class IAlert extends Alert {} export { Alert } from './alert';
export class IAnchor extends Anchor {} export { Anchor, AnchorLink } from './anchor';
export class IAnchorLink extends AnchorLink {} export { AutoComplete } from './auto-complete';
export class IAutoComplete extends AutoComplete {} export { Avatar } from './avatar';
export class IAvatar extends Avatar {} export { BackTop } from './back-top';
export class IBackTop extends BackTop {} export { Badge } from './badge';
export class IBadge extends Badge {} export { Breadcrumb, BreadcrumbItem } from './breadcrumb';
export class IBreadcrumb extends Breadcrumb {} export { Button, ButtonGroup } from './button';
export class IBreadcrumbItem extends BreadcrumbItem {} export { Card } from './card';
export class IButton extends Button {} export { Carousel, CarouselItem } from './carousel';
export class IButtonGroup extends ButtonGroup {} export { Cascader } from './cascader';
export class ICard extends Card {} export { Cell, CellGroup } from './cell';
export class ICarousel extends Carousel {} export { Checkbox, CheckboxGroup } from './checkbox';
export class ICascader extends Cascader {} export { Circle, Circle as ICircle } from './circle';
export class ICell extends Cell {} export { Collapse, CollapsePanel } from './collapse';
export class ICellGroup extends CellGroup {} export { ColorPicker } from './color-picker';
export class ICheckbox extends Checkbox {} export { Content } from './content';
export class ICheckboxGroup extends CheckboxGroup {} export { DatePicker } from './date-picker';
export class ICircle extends Circle {} export { Divider } from './divider';
export class ICollapse extends Collapse {} export { Drawer } from './drawer';
export class ICollapsePanel extends CollapsePanel {} export { Dropdown, DropdownMenu, DropdownItem } from './dropdown';
export class IColorPicker extends ColorPicker {} export { Footer } from './footer';
export class IDatePicker extends DatePicker {} export { Form, FormItem } from './form';
export class IDatePickerOptions extends DatePickerOptions {} export { Header } from './header';
export class IDivider extends Divider {} export { Icon } from './icon';
export class IDropdown extends Dropdown {} export { Input } from './input';
export class IDropdownItem extends DropdownItem {} export { InputNumber } from './input-number';
export class IForm extends Form {} export { Scroll } from './scroll';
export class IFormItem extends FormItem {} export { Split } from './split';
export class IGridCol extends GridCol {} export { Layout } from './layout';
export class IGridRow extends GridRow {} export { LoadingBar } from './loading-bar';
export class IIcon extends Icon {} export { Menu, MenuGroup, MenuItem, MenuSub } from './menu';
export class IInput extends Input {} export { Message } from './message';
export class IInputNumber extends InputNumber {} export { Modal } from './modal';
export class ILayout extends Layout {} export { Notice } from './notice';
export class ILoadingBarInstance extends LoadingBarInstance {} export { Page } from './page';
export class ILoadingBarConfig extends LoadingBarConfig {} export { Poptip } from './poptip';
export class IMenu extends Menu {} export { Progress } from './progress';
export class IMenuGroup extends MenuGroup {} export { Radio, RadioGroup } from './radio';
export class IMenuItem extends MenuItem {} export { Rate } from './rate';
export class IMessageConfig extends MessageConfig {} export { Sider } from './sider';
export class IMessageInstance extends MessageInstance {} export { Slider } from './slider';
export class IModal extends Modal {} export { Spin } from './spin';
export class IModalConfig extends ModalConfig {} export { Steps, StepsStep } from './steps';
export class IModalInstance extends ModalInstance {} export { Switch, Switch as ISwitch } from './switch';
export class INoticeConfig extends NoticeConfig {} export { Table } from './table';
export class INoticeGlobalConfig extends NoticeGlobalConfig {} export { Tabs, TabsPane } from './tabs';
export class INoticeInstance extends NoticeInstance {} export { Tag } from './tag';
export class IPage extends Page {} export { Time } from './time';
export class IPoptip extends Poptip {} export { Timeline, TimelineItem } from './timeline';
export class IProgress extends Progress {} export { TimePicker } from './time-picker';
export class IRadio extends Radio {} export { Tooltip } from './tooltip';
export class IRadioGroup extends RadioGroup {} export { Transfer } from './transfer';
export class IRate extends Rate {} export { Tree } from './tree';
export class IScroll extends Scroll {} export { Upload } from './upload';
export class ISelect extends Select {} export { Row, Col } from './grid';
export class ISelectOption extends SelectOption {} export { Select, Option, OptionGroup } from './select';
export class ISelectOptionGroup extends SelectOptionGroup {}
export class ISpin extends Spin {} declare const API: {
export class ISplit extends Split {} version: string;
export class IStep extends Step {} locale: (l) => void;
export class ISteps extends Steps {} i18n: (fn) => void;
export class ISubmenu extends Submenu {} install: (
export class ISwitch extends Switch {} Vue: Vue,
export class ITable extends Table {} opts: {
export class ITableColumn extends TableColumn {} locale?: any;
export class ITableColumnRenderParams extends TableColumnRenderParams {} i18n?: any;
export class ITableExportCsvParams extends TableExportCsvParams {} size?: any;
export class ITableRenderCreateElementData extends TableRenderCreateElementData {} transfer?: any;
export class ITableRenderCreateElementResult extends TableRenderCreateElementResult {} }
export class ITabPane extends TabPane {} ) => void;
export class ITabs extends Tabs {} lang: (code: string) => void;
export class ITag extends Tag {} };
export class ITime extends Time {}
export class ITimeline extends Timeline {} export default API;
export class ITimelineItem extends TimelineItem {}
export class ITimePicker extends TimePicker {} declare module 'vue/types/vue' {
export class ITooltip extends Tooltip {} interface Vue {
export class ITransfer extends Transfer {} $IVIEW?: {
export class ITree extends Tree {} size?: string;
export class ITreeChild extends TreeChild {} transfer?: string;
export class IUpload extends Upload {} };
}
}

2
types/layout.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 Layout extends Vue { export declare class Layout 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 LoadingBarInstance { export declare class LoadingBar {
/** /**
* 0 * 0
*/ */
@ -51,11 +51,11 @@ export declare class LoadingBarConfig {
height?: number; height?: number;
} }
declare module "vue/types/vue" { declare module 'vue/types/vue' {
interface Vue { interface Vue {
/** /**
* *
*/ */
$Loading?: LoadingBarInstance; $Loading?: LoadingBar;
} }
} }

4
types/menu.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 Menu extends Vue { export declare class Menu 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 Submenu extends Vue { export declare class MenuSub extends Vue {
/** /**
* *
*/ */

6
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 MessageInstance { export declare class Message {
/** /**
* *
* @param config MessageConfig为相关配置,string为待显示的内容 * @param config MessageConfig为相关配置,string为待显示的内容
@ -71,12 +71,12 @@ export declare class MessageConfig {
duration?: number; duration?: number;
} }
declare module "vue/types/vue" { declare module 'vue/types/vue' {
interface Vue { interface Vue {
/** /**
* *
*/ */
$Message?: MessageInstance; $Message?: Message;
} }
} }

4
types/modal.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 Modal { export declare class Modal {
/** /**
@ -208,7 +208,7 @@ export declare class ModalConfig {
onCancel?: () => void; onCancel?: () => void;
} }
declare module "vue/types/vue" { declare module 'vue/types/vue' {
interface Vue { interface Vue {
/** /**
* *

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 NoticeInstance { export declare class Notice {
/** /**
* *
* @param config NoticeConfig为相关配置,string为待显示的内容 * @param config NoticeConfig为相关配置,string为待显示的内容
@ -82,11 +82,11 @@ export declare class NoticeGlobalConfig {
duration?: number; duration?: number;
} }
declare module "vue/types/vue" { declare module 'vue/types/vue' {
interface Vue { interface Vue {
/** /**
* *
*/ */
$Notice?: NoticeInstance; $Notice?: Notice;
} }
} }

2
types/page.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 Page extends Vue { export declare class Page extends Vue {
/** /**

2
types/poptip.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 Poptip extends Vue { export declare class Poptip extends Vue {
/** /**

2
types/progress.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 Progress extends Vue { export declare class Progress extends Vue {
/** /**

2
types/radio.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 Radio extends Vue { export declare class Radio extends Vue {
/** /**

2
types/rate.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 Rate extends Vue { export declare class Rate extends Vue {
/** /**

2
types/scroll.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 Scroll extends Vue { export declare class Scroll extends Vue {
/** /**

6
types/select.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 Select extends Vue { export declare class Select extends Vue {
/** /**
@ -114,7 +114,7 @@ export declare class Select extends Vue {
clearSingleSelect(): void; 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; disabled?: boolean;
} }
export declare class SelectOptionGroup extends Vue { export declare class OptionGroup extends Vue {
/** /**
* *
* @default * @default

8
types/sider.d.ts vendored Normal file
View 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
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 Slider extends Vue { export declare class Slider extends Vue {
/** /**

11
types/spin.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 Spin extends Vue { export declare class Spin extends Vue {
/** /**
@ -24,3 +24,12 @@ export declare class Spin extends Vue {
'': VNode[]; '': VNode[];
}; };
} }
declare module 'vue/types/vue' {
interface Vue {
/**
*
*/
$Spin?: Spin;
}
}

2
types/split.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 Split extends Vue { export declare class Split extends Vue {
/** /**

4
types/steps.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 Steps extends Vue { export declare class Steps extends Vue {
/** /**
@ -26,7 +26,7 @@ export declare class Steps extends Vue {
direction?: 'horizontal' | 'vertical'; direction?: 'horizontal' | 'vertical';
} }
export declare class Step extends Vue { export declare class StepsStep extends Vue {
/** /**
* waitprocessfinisherror * waitprocessfinisherror
* @default process * @default process

2
types/switch.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 Switch extends Vue { export declare class Switch extends Vue {
/** /**

2
types/table.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 Table extends Vue { export declare class Table extends Vue {
/** /**

4
types/tabs.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 Tabs extends 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 * value
*/ */

2
types/tag.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 Tag extends Vue { export declare class Tag extends Vue {
/** /**

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 TimePicker extends Vue { export declare class TimePicker extends Vue {
/** /**

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 Time extends Vue { export declare class Time extends Vue {
/** /**

2
types/timeline.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 Timeline extends Vue { export declare class Timeline extends Vue {
/** /**

2
types/tooltip.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 Tooltip extends Vue { export declare class Tooltip extends Vue {
/** /**

2
types/transfer.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 Transfer extends Vue { export declare class Transfer extends Vue {
/** /**

2
types/tree.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 Tree extends Vue { export declare class Tree extends Vue {
/** /**

2
types/upload.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 Upload extends Vue { export declare class Upload extends Vue {
/** /**