Commit 414730dde3fbbd777ffe45c2b56c5caf3c855c0b

Authored by yangd
1 parent 6da055f3

完成d.ts定义的优化

Showing 61 changed files with 353 additions and 382 deletions   Show diff stats
build/webpack.dist.prod.config.js
... ... @@ -4,6 +4,7 @@ const merge = require('webpack-merge');
4 4 const webpackBaseConfig = require('./webpack.base.config.js');
5 5 const CompressionPlugin = require('compression-webpack-plugin');
6 6 const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
  7 +const CopyWebpackPlugin = require('copy-webpack-plugin');
7 8  
8 9 process.env.NODE_ENV = 'production';
9 10  
... ... @@ -43,6 +44,9 @@ module.exports = merge(webpackBaseConfig, {
43 44 test: /\.(js|css)$/,
44 45 threshold: 10240,
45 46 minRatio: 0.8
46   - })
  47 + }),
  48 + new CopyWebpackPlugin([{
  49 + from: __dirname + '/../types'
  50 + }])
47 51 ]
48 52 });
... ...
package.json
... ... @@ -14,6 +14,7 @@
14 14 "framework"
15 15 ],
16 16 "main": "dist/iview.js",
  17 + "typings": "types/index.d.ts",
17 18 "files": [
18 19 "dist",
19 20 "src"
... ... @@ -111,7 +112,8 @@
111 112 "vue-template-compiler": "^2.5.16",
112 113 "webpack": "^3.11.0",
113 114 "webpack-dev-server": "^2.11.1",
114   - "webpack-merge": "^3.0.0"
  115 + "webpack-merge": "^3.0.0",
  116 + "copy-webpack-plugin": "^4.5.2"
115 117 },
116 118 "engines": {
117 119 "node": ">=8.9.1",
... ...
types/iview/affix.d.ts renamed to types/affix.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Affix extends Vue {
  7 +export declare class Affix extends Vue {
8 8 /**
9 9 * 距离窗口顶部达到指定偏移量后触发
10 10 * @default 0
... ...
types/iview/alert.d.ts renamed to types/alert.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Alert extends Vue {
  7 +export declare class Alert extends Vue {
8 8 /**
9 9 * 警告提示样式,可选值为info、success、warning、error
10 10 * @default info
... ...
types/iview/anchor.d.ts renamed to types/anchor.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Anchor extends Vue {
  7 +export declare class Anchor extends Vue {
8 8 /**
9 9 * 固定模式
10 10 * @default true
... ... @@ -48,7 +48,7 @@ export interface Anchor extends Vue {
48 48 $emit(eventName: 'on-change', []): this;
49 49 }
50 50  
51   -export interface AnchorLink extends Vue {
  51 +export declare class AnchorLink extends Vue {
52 52 /**
53 53 * 锚点链接
54 54 * @default
... ...
types/iview/auto-complete.d.ts renamed to types/auto-complete.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface AutoComplete extends Vue {
  7 +export declare class AutoComplete extends Vue {
8 8 /**
9 9 * 绑定的值,可使用 v-model 双向绑定
10 10 */
... ...
types/iview/avatar.d.ts renamed to types/avatar.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Avatar extends Vue {
  7 +export declare class Avatar extends Vue {
8 8 /**
9 9 * 指定头像的形状,可选值为 circle、square
10 10 * @default circle
... ...
types/iview/back-top.d.ts renamed to types/back-top.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface BackTop extends Vue {
  7 +export declare class BackTop extends Vue {
8 8 /**
9 9 * 页面滚动高度达到该值时才显示BackTop组件
10 10 * @default 400
... ...
types/iview/badge.d.ts renamed to types/badge.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Badge extends Vue {
  7 +export declare class Badge extends Vue {
8 8 /**
9 9 * 显示的数字,大于overflowCount时,显示${overflowCount}+,为 0 时隐藏
10 10 */
... ...
types/iview/breadcrumb.d.ts renamed to types/breadcrumb.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Breadcrumb extends Vue {
  7 +export declare class Breadcrumb extends Vue {
8 8 /**
9 9 * 自定义分隔符
10 10 * @default /
... ... @@ -12,7 +12,7 @@ export interface Breadcrumb extends Vue {
12 12 separator?: string;
13 13 }
14 14  
15   -export interface BreadcrumbItem extends Vue {
  15 +export declare class BreadcrumbItem extends Vue {
16 16 /**
17 17 * 链接,不传则没有链接
18 18 */
... ...
types/iview/button.d.ts renamed to types/button.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Button extends Vue {
  7 +export declare class Button extends Vue {
8 8 /**
9 9 * 按钮类型,可选值为 default、primary、dashed、text、info、success、warning、error或者不设置
10 10 * @default default
... ... @@ -68,7 +68,7 @@ export interface Button extends Vue {
68 68 target?: '_blank' | '_self' | '_parent' | '_top';
69 69 }
70 70  
71   -export interface ButtonGroup extends Vue {
  71 +export declare class ButtonGroup extends Vue {
72 72 /**
73 73 * 按钮组合大小,可选值为large、small、default或者不设置
74 74 * @default default
... ...
types/iview/card.d.ts renamed to types/card.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Card extends Vue {
  7 +export declare class Card extends Vue {
8 8 /**
9 9 * 是否显示边框,建议在灰色背景下使用
10 10 * @default true
... ...
types/iview/carousel.d.ts renamed to types/carousel.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Carousel extends Vue {
  7 +export declare class Carousel extends Vue {
8 8 /**
9 9 * 幻灯片的索引,从 0 开始,可以使用 v-model 双向绑定数据
10 10 * @default 0
... ...
types/iview/cascader.d.ts renamed to types/cascader.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Cascader extends Vue {
  7 +export declare class Cascader extends Vue {
8 8 /**
9 9 * 可选项的数据源,格式参照示例说明
10 10 * @default []
... ...
types/iview/cell.d.ts renamed to types/cell.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Cell extends Vue {
  7 +export declare class Cell extends Vue {
8 8 /**
9 9 * 用来标识这一项
10 10 */
... ... @@ -72,7 +72,7 @@ export interface Cell extends Vue {
72 72 }
73 73 }
74 74  
75   -export interface CellGroup extends Vue {
  75 +export declare class CellGroup extends Vue {
76 76 /**
77 77 * 点击单元格时触发
78 78 *
... ...
types/iview/checkbox.d.ts renamed to types/checkbox.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Checkbox extends Vue {
  7 +export declare class Checkbox extends Vue {
8 8 /**
9 9 * 只在单独使用时有效。可以使用 v-model 双向绑定数据
10 10 * @default false
... ... @@ -44,7 +44,7 @@ export interface Checkbox extends Vue {
44 44 $emit(eventName: 'on-change', value: boolean): this;
45 45 }
46 46  
47   -export interface CheckboxGroup extends Vue {
  47 +export declare class CheckboxGroup extends Vue {
48 48 /**
49 49 * 指定选中项目的集合,可以使用 v-model 双向绑定数据
50 50 * @default []
... ...
types/iview/circle.d.ts renamed to types/circle.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Circle extends Vue {
  7 +export declare class Circle extends Vue {
8 8 /**
9 9 * 百分比
10 10 * @default 0
... ...
types/iview/collapse.d.ts renamed to types/collapse.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Collapse extends Vue {
  7 +export declare class Collapse extends Vue {
8 8 /**
9 9 * 当前激活的面板的 name,可以使用 v-model 双向绑定
10 10 */
... ... @@ -26,7 +26,7 @@ export interface Collapse extends Vue {
26 26 $emit(eventName: 'on-change', []): this;
27 27 }
28 28  
29   -export interface CollapsePanel extends Vue {
  29 +export declare class CollapsePanel extends Vue {
30 30 /**
31 31 * 当前面板的 name,与 Collapse的value对应,不填为索引值
32 32 * @default index的值
... ...
types/iview/color-picker.d.ts renamed to types/color-picker.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface ColorPicker extends Vue {
  7 +export declare class ColorPicker extends Vue {
8 8 /**
9 9 * 绑定的值,可使用 v-model 双向绑定
10 10 */
... ...
types/iview/date-picker.d.ts renamed to types/date-picker.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface DatePicker extends Vue {
  7 +export declare class DatePicker extends Vue {
8 8 /**
9 9 * 显示类型,可选值为 date、daterange、datetime、datetimerange、year、month'|'默认值date
10 10 */
... ... @@ -138,7 +138,7 @@ export interface DatePicker extends Vue {
138 138 };
139 139 }
140 140  
141   -export interface DatePickerOptions extends Vue {
  141 +export declare class DatePickerOptions extends Vue {
142 142 /**
143 143 * 设置快捷选项,每项内容:
144 144 * text:显示的文案
... ...
types/iview/divider.d.ts renamed to types/divider.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Divider extends Vue {
  7 +export declare class Divider extends Vue {
8 8 /**
9 9 * 水平还是垂直类型,可选值为 horizontal 或 vertical
10 10 * @default horizontal
... ...
types/iview/dropdown.d.ts renamed to types/dropdown.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Dropdown extends Vue {
  7 +export declare class Dropdown extends Vue {
8 8 /**
9 9 * 触发方式,可选值为 hover(悬停)click(点击)contextMenu(右键)custom(自定义),使用 custom 时,需配合 visible 一起使用
10 10 * @default hover
... ... @@ -56,7 +56,7 @@ export interface Dropdown extends Vue {
56 56 };
57 57 }
58 58  
59   -export interface DropdownItem extends Vue {
  59 +export declare class DropdownItem extends Vue {
60 60 /**
61 61 * 用来标识这一项
62 62 */
... ...
types/iview/form.d.ts renamed to types/form.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Form extends Vue {
  7 +export declare class Form extends Vue {
8 8 /**
9 9 * 表单数据对象
10 10 */
... ... @@ -46,7 +46,7 @@ export interface Form extends Vue {
46 46 resetFields(): void;
47 47 }
48 48  
49   -export interface FormItem extends Vue {
  49 +export declare class FormItem extends Vue {
50 50 /**
51 51 * 对应表单域 model 里的字段
52 52 */
... ...
types/iview/grid.d.ts renamed to types/grid.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface GridRow extends Vue {
  7 +export declare class GridRow extends Vue {
8 8 /**
9 9 * 栅格间距,单位 px,左右平分
10 10 * @default 0
... ... @@ -28,7 +28,7 @@ export interface GridRow extends Vue {
28 28 'class-name'?: string;
29 29 }
30 30  
31   -export interface GridCol extends Vue {
  31 +export declare class GridCol extends Vue {
32 32 /**
33 33 * 栅格的占位格数,可选值为0~24的整数,为 0 时,相当于display:none
34 34 */
... ...
types/iview/icon.d.ts renamed to types/icon.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Icon extends Vue {
  7 +export declare class Icon extends Vue {
8 8 /**
9 9 * 图标的名称
10 10 */
... ...
types/index.d.ts 0 → 100644
  1 +// Type definitions for iview 3.0.1
  2 +// Project: https://github.com/iview/iview
  3 +// Definitions by: yangdan
  4 +// Definitions: https://github.com/yangdan8/iview.git
  5 +import iView from "./iview";
  6 +
  7 +export default iView;
  8 +export as namespace iView;
  9 +
  10 +export * from "./iview.components";
0 11 \ No newline at end of file
... ...
types/iview/input-number.d.ts renamed to types/input-number.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface InputNumber extends Vue {
  7 +export declare class InputNumber extends Vue {
8 8 /**
9 9 * 最大值,默认值Infinity
10 10 */
... ...
types/iview/input.d.ts renamed to types/input.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Input extends Vue {
  7 +export declare class Input extends Vue {
8 8 /**
9 9 * 输入框类型,可选值为 text、password、textarea、url、email、date
10 10 * @default text
... ...
types/iview.components.d.ts 0 → 100644
  1 +import { Affix } from "./affix";
  2 +import { Alert } from "./alert";
  3 +import { Anchor, AnchorLink } from "./anchor";
  4 +import { AutoComplete } from "./auto-complete";
  5 +import { Avatar } from "./avatar";
  6 +import { BackTop } from "./back-top";
  7 +import { Badge } from "./badge";
  8 +import { Breadcrumb, BreadcrumbItem } from "./breadcrumb";
  9 +import { Button, ButtonGroup } from "./button";
  10 +import { Card } from "./card";
  11 +import { Carousel } from "./carousel";
  12 +import { Cascader } from "./cascader";
  13 +import { Cell, CellGroup } from "./cell";
  14 +import { Checkbox, CheckboxGroup } from "./checkbox";
  15 +import { Circle } from "./circle";
  16 +import { Collapse, CollapsePanel } from "./collapse";
  17 +import { ColorPicker } from "./color-picker";
  18 +import { DatePicker, DatePickerOptions } from "./date-picker";
  19 +import { Divider } from "./divider";
  20 +import { Dropdown, DropdownItem } from "./dropdown";
  21 +import { Form, FormItem } from "./form";
  22 +import { GridRow, GridCol } from "./grid";
  23 +import { Icon } from "./icon";
  24 +import { Input } from "./input";
  25 +import { InputNumber } from "./input-number";
  26 +import { Layout } from "./layout";
  27 +import { LoadingBarInstance, LoadingBarConfig } from "./loading-bar";
  28 +import { Menu, MenuItem, Submenu, MenuGroup } from "./menu";
  29 +import { MessageInstance, MessageConfig } from "./message";
  30 +import { Modal, ModalInstance, ModalConfig } from "./modal";
  31 +import { NoticeInstance, NoticeConfig, NoticeGlobalConfig } from "./notice";
  32 +import { Page } from "./page";
  33 +import { Poptip } from "./poptip";
  34 +import { Progress } from "./progress";
  35 +import { Radio, RadioGroup } from "./radio";
  36 +import { Rate } from "./rate";
  37 +import { Scroll } from "./scroll";
  38 +import { Select, SelectOption, SelectOptionGroup } from "./select";
  39 +import { Spin } from "./spin";
  40 +import { Split } from "./split";
  41 +import { Steps, Step } from "./steps";
  42 +import { Switch } from "./switch";
  43 +import {
  44 + Table,
  45 + TableColumn,
  46 + TableRenderCreateElementData,
  47 + TableRenderCreateElementResult,
  48 + TableColumnRenderParams,
  49 + TableExportCsvParams
  50 +} from "./table";
  51 +import { Tabs, TabPane } from "./tabs";
  52 +import { Tag } from "./tag";
  53 +import { Time } from "./time";
  54 +import { Timeline, TimelineItem } from "./timeline";
  55 +import { TimePicker } from "./time-picker";
  56 +import { Tooltip } from "./tooltip";
  57 +import { Transfer } from "./transfer";
  58 +import { Tree, TreeChild } from "./tree";
  59 +import { Upload } from "./upload";
  60 +
  61 +export class IAffix extends Affix {}
  62 +export class IAlert extends Alert {}
  63 +export class IAnchor extends Anchor {}
  64 +export class IAnchorLink extends AnchorLink {}
  65 +export class IAutoComplete extends AutoComplete {}
  66 +export class IAvatar extends Avatar {}
  67 +export class IBackTop extends BackTop {}
  68 +export class IBadge extends Badge {}
  69 +export class IBreadcrumb extends Breadcrumb {}
  70 +export class IBreadcrumbItem extends BreadcrumbItem {}
  71 +export class IButton extends Button {}
  72 +export class IButtonGroup extends ButtonGroup {}
  73 +export class ICard extends Card {}
  74 +export class ICarousel extends Carousel {}
  75 +export class ICascader extends Cascader {}
  76 +export class ICell extends Cell {}
  77 +export class ICellGroup extends CellGroup {}
  78 +export class ICheckbox extends Checkbox {}
  79 +export class ICheckboxGroup extends CheckboxGroup {}
  80 +export class ICircle extends Circle {}
  81 +export class ICollapse extends Collapse {}
  82 +export class ICollapsePanel extends CollapsePanel {}
  83 +export class IColorPicker extends ColorPicker {}
  84 +export class IDatePicker extends DatePicker {}
  85 +export class IDatePickerOptions extends DatePickerOptions {}
  86 +export class IDivider extends Divider {}
  87 +export class IDropdown extends Dropdown {}
  88 +export class IDropdownItem extends DropdownItem {}
  89 +export class IForm extends Form {}
  90 +export class IFormItem extends FormItem {}
  91 +export class IGridCol extends GridCol {}
  92 +export class IGridRow extends GridRow {}
  93 +export class IIcon extends Icon {}
  94 +export class IInput extends Input {}
  95 +export class IInputNumber extends InputNumber {}
  96 +export class ILayout extends Layout {}
  97 +export class ILoadingBarInstance extends LoadingBarInstance {}
  98 +export class ILoadingBarConfig extends LoadingBarConfig {}
  99 +export class IMenu extends Menu {}
  100 +export class IMenuGroup extends MenuGroup {}
  101 +export class IMenuItem extends MenuItem {}
  102 +export class IMessageConfig extends MessageConfig {}
  103 +export class IMessageInstance extends MessageInstance {}
  104 +export class IModal extends Modal {}
  105 +export class IModalConfig extends ModalConfig {}
  106 +export class IModalInstance extends ModalInstance {}
  107 +export class INoticeConfig extends NoticeConfig {}
  108 +export class INoticeGlobalConfig extends NoticeGlobalConfig {}
  109 +export class INoticeInstance extends NoticeInstance {}
  110 +export class IPage extends Page {}
  111 +export class IPoptip extends Poptip {}
  112 +export class IProgress extends Progress {}
  113 +export class IRadio extends Radio {}
  114 +export class IRadioGroup extends RadioGroup {}
  115 +export class IRate extends Rate {}
  116 +export class IScroll extends Scroll {}
  117 +export class ISelect extends Select {}
  118 +export class ISelectOption extends SelectOption {}
  119 +export class ISelectOptionGroup extends SelectOptionGroup {}
  120 +export class ISpin extends Spin {}
  121 +export class ISplit extends Split {}
  122 +export class IStep extends Step {}
  123 +export class ISteps extends Steps {}
  124 +export class ISubmenu extends Submenu {}
  125 +export class ISwitch extends Switch {}
  126 +export class ITable extends Table {}
  127 +export class ITableColumn extends TableColumn {}
  128 +export class ITableColumnRenderParams extends TableColumnRenderParams {}
  129 +export class ITableExportCsvParams extends TableExportCsvParams {}
  130 +export class ITableRenderCreateElementData extends TableRenderCreateElementData {}
  131 +export class ITableRenderCreateElementResult extends TableRenderCreateElementResult {}
  132 +export class ITabPane extends TabPane {}
  133 +export class ITabs extends Tabs {}
  134 +export class ITag extends Tag {}
  135 +export class ITime extends Time {}
  136 +export class ITimeline extends Timeline {}
  137 +export class ITimelineItem extends TimelineItem {}
  138 +export class ITimePicker extends TimePicker {}
  139 +export class ITooltip extends Tooltip {}
  140 +export class ITransfer extends Transfer {}
  141 +export class ITree extends Tree {}
  142 +export class ITreeChild extends TreeChild {}
  143 +export class IUpload extends Upload {}
... ...
types/iview.d.ts 0 → 100644
  1 +import { PluginFunction } from 'vue';
  2 +
  3 +interface IView extends PluginFunction<any> {}
  4 +
  5 +declare const iView: IView;
  6 +export default iView;
... ...
types/iview/index.d.ts deleted
1   -// Type definitions for iview 3.0.0
2   -// Project: https://github.com/iview/iview
3   -// Definitions by: yangdan
4   -// Definitions: https://github.com/yangdan8/iview.git
5   -import Vue, { VNode, PluginFunction } from "vue";
6   -
7   -import { Affix } from "./affix";
8   -import { Alert } from "./alert";
9   -import { Anchor, AnchorLink } from "./anchor";
10   -import { AutoComplete } from "./auto-complete";
11   -import { Avatar } from "./avatar";
12   -import { BackTop } from "./back-top";
13   -import { Badge } from "./badge";
14   -import { Breadcrumb, BreadcrumbItem } from "./breadcrumb";
15   -import { Button, ButtonGroup } from "./button";
16   -import { Card } from "./card";
17   -import { Carousel } from "./carousel";
18   -import { Cascader } from "./cascader";
19   -import { Cell, CellGroup } from "./cell";
20   -import { Checkbox, CheckboxGroup } from "./checkbox";
21   -import { Circle } from "./circle";
22   -import { Collapse, CollapsePanel } from "./collapse";
23   -import { ColorPicker } from "./color-picker";
24   -import { DatePicker, DatePickerOptions } from "./date-picker";
25   -import { Divider } from "./divider";
26   -import { Dropdown, DropdownItem } from "./dropdown";
27   -import { Form, FormItem } from "./form";
28   -import { GridRow, GridCol } from "./grid";
29   -import { Icon } from "./icon";
30   -import { Input } from "./input";
31   -import { InputNumber } from "./input-number";
32   -import { Layout } from "./layout";
33   -import { LoadingBarInstance, LoadingBarConfig } from "./loading-bar";
34   -import { Menu, MenuItem, Submenu, MenuGroup } from "./menu";
35   -import { MessageInstance, MessageConfig } from "./message";
36   -import { Modal, ModalInstance, ModalConfig } from "./modal";
37   -import { NoticeInstance, NoticeConfig, NoticeGlobalConfig } from "./notice";
38   -import { Page } from "./page";
39   -import { Poptip } from "./poptip";
40   -import { Progress } from "./progress";
41   -import { Radio, RadioGroup } from "./radio";
42   -import { Rate } from "./rate";
43   -import { Scroll } from "./scroll";
44   -import { Select, SelectOption, SelectOptionGroup } from "./select";
45   -import { Spin } from "./spin";
46   -import { Split } from "./split";
47   -import { Steps, Step } from "./steps";
48   -import { Switch } from "./switch";
49   -import { Table, TableColumn, TableRenderCreateElementData, TableRenderCreateElementResult, TableColumnRenderParams, TableExportCsvParams } from "./table";
50   -import { Tabs, TabPane } from "./tabs";
51   -import { Tag } from "./tag";
52   -import { Time } from "./time";
53   -import { Timeline, TimelineItem } from "./timeline";
54   -import { TimePicker } from "./time-picker";
55   -import { Tooltip } from "./tooltip";
56   -import { Transfer } from "./transfer";
57   -import { Tree, TreeChild } from "./tree";
58   -import { Upload } from "./upload";
59   -
60   -declare namespace IView {
61   - type IAffix = Affix;
62   - type IAlert = Alert;
63   - type IAnchor = Anchor;
64   - type IAnchorLink = AnchorLink;
65   - type IAutoComplete = AutoComplete;
66   - type IAvatar = Avatar;
67   - type IBackTop = BackTop;
68   - type IBadge = Badge;
69   - type IBreadcrumb = Breadcrumb;
70   - type IBreadcrumbItem = BreadcrumbItem;
71   - type IButton = Button;
72   - type IButtonGroup = ButtonGroup;
73   - type ICard = Card;
74   - type ICarousel = Carousel;
75   - type ICascader = Cascader;
76   - type ICell = Cell;
77   - type ICellGroup = CellGroup;
78   - type ICheckbox = Checkbox;
79   - type ICheckboxGroup = CheckboxGroup;
80   - type ICircle = Circle;
81   - type ICollapse = Collapse;
82   - type ICollapsePanel = CollapsePanel;
83   - type IColorPicker = ColorPicker;
84   - type IDatePicker = DatePicker;
85   - type IDatePickerOptions = DatePickerOptions;
86   - type IDivider = Divider;
87   - type IDropdown = Dropdown;
88   - type IDropdownItem = DropdownItem;
89   - type IForm = Form;
90   - type IFormItem = FormItem;
91   - type IGridCol = GridCol;
92   - type IGridRow = GridRow;
93   - type IIcon = Icon;
94   - type IInput = Input;
95   - type IInputNumber = InputNumber;
96   - type ILayout = Layout;
97   - type ILoadingBarInstance = LoadingBarInstance;
98   - type ILoadingBarConfig = LoadingBarConfig;
99   - type IMenu = Menu;
100   - type IMenuGroup = MenuGroup;
101   - type IMenuItem = MenuItem;
102   - type IMessageConfig = MessageConfig;
103   - type IMessageInstance = MessageInstance;
104   - type IModal = Modal;
105   - type IModalConfig = ModalConfig;
106   - type IModalInstance = ModalInstance;
107   - type INoticeConfig = NoticeConfig;
108   - type INoticeGlobalConfig = NoticeGlobalConfig;
109   - type INoticeInstance = NoticeInstance;
110   - type IPage = Page;
111   - type IPoptip = Poptip;
112   - type IProgress = Progress;
113   - type IRadio = Radio;
114   - type IRadioGroup = RadioGroup;
115   - type IRate = Rate;
116   - type IScroll = Scroll;
117   - type ISelect = Select;
118   - type ISelectOption = SelectOption;
119   - type ISelectOptionGroup = SelectOptionGroup;
120   - type ISpin = Spin;
121   - type ISplit = Split;
122   - type IStep = Step;
123   - type ISteps = Steps;
124   - type ISubmenu = Submenu;
125   - type ISwitch = Switch;
126   - type ITable = Table;
127   - type ITableColumn = TableColumn;
128   - type ITableColumnRenderParams = TableColumnRenderParams;
129   - type ITableExportCsvParams = TableExportCsvParams;
130   - type ITableRenderCreateElementData = TableRenderCreateElementData;
131   - type ITableRenderCreateElementResult = TableRenderCreateElementResult;
132   - type ITabPane = TabPane;
133   - type ITabs = Tabs;
134   - type ITag = Tag;
135   - type ITime = Time;
136   - type ITimeline = Timeline;
137   - type ITimelineItem = TimelineItem;
138   - type ITimePicker = TimePicker;
139   - type ITooltip = Tooltip;
140   - type ITransfer = Transfer;
141   - type ITree = Tree;
142   - type ITreeChild = TreeChild;
143   - type IUpload = Upload;
144   -}
145   -
146   -declare interface IView extends PluginFunction<any> {
147   - readonly IAffix: Affix;
148   - readonly IAlert: Alert;
149   - readonly IAnchor: Anchor;
150   - readonly IAnchorLink: AnchorLink;
151   - readonly IAutoComplete: AutoComplete;
152   - readonly IAvatar: Avatar;
153   - readonly IBackTop: BackTop;
154   - readonly IBadge: Badge;
155   - readonly IBreadcrumb: Breadcrumb;
156   - readonly IBreadcrumbItem: BreadcrumbItem;
157   - readonly IButton: Button;
158   - readonly IButtonGroup: ButtonGroup;
159   - readonly ICard: Card;
160   - readonly ICarousel: Carousel;
161   - readonly ICascader: Cascader;
162   - readonly ICell: Cell;
163   - readonly ICellGroup: CellGroup;
164   - readonly ICheckbox: Checkbox;
165   - readonly ICheckboxGroup: CheckboxGroup;
166   - readonly ICircle: Circle;
167   - readonly ICollapse: Collapse;
168   - readonly ICollapsePanel: CollapsePanel;
169   - readonly IColorPicker: ColorPicker;
170   - readonly IDatePicker: DatePicker;
171   - readonly IDatePickerOptions: DatePickerOptions;
172   - readonly IDivider: Divider;
173   - readonly IDropdown: Dropdown;
174   - readonly IDropdownItem: DropdownItem;
175   - readonly IForm: Form;
176   - readonly IFormItem: FormItem;
177   - readonly IGridCol: GridCol;
178   - readonly IGridRow: GridRow;
179   - readonly IIcon: Icon;
180   - readonly IInput: Input;
181   - readonly IInputNumber: InputNumber;
182   - readonly ILayout: Layout;
183   - readonly ILoadingBarInstance: LoadingBarInstance;
184   - readonly ILoadingBarConfig: LoadingBarConfig;
185   - readonly IMenu: Menu;
186   - readonly IMenuGroup: MenuGroup;
187   - readonly IMenuItem: MenuItem;
188   - readonly IMessageConfig: MessageConfig;
189   - readonly IMessageInstance: MessageInstance;
190   - readonly IModal: Modal;
191   - readonly IModalConfig: ModalConfig;
192   - readonly IModalInstance: ModalInstance;
193   - readonly INoticeConfig: NoticeConfig;
194   - readonly INoticeGlobalConfig: NoticeGlobalConfig;
195   - readonly INoticeInstance: NoticeInstance;
196   - readonly IPage: Page;
197   - readonly IPoptip: Poptip;
198   - readonly IProgress: Progress;
199   - readonly IRadio: Radio;
200   - readonly IRadioGroup: RadioGroup;
201   - readonly IRate: Rate;
202   - readonly IScroll: Scroll;
203   - readonly ISelect: Select;
204   - readonly ISelectOption: SelectOption;
205   - readonly ISelectOptionGroup: SelectOptionGroup;
206   - readonly ISpin: Spin;
207   - readonly ISplit: Split;
208   - readonly IStep: Step;
209   - readonly ISteps: Steps;
210   - readonly ISubmenu: Submenu;
211   - readonly ISwitch: Switch;
212   - readonly ITable: Table;
213   - readonly ITableColumn: TableColumn;
214   - readonly ITableColumnRenderParams: TableColumnRenderParams;
215   - readonly ITableExportCsvParams: TableExportCsvParams;
216   - readonly ITableRenderCreateElementData: TableRenderCreateElementData;
217   - readonly ITableRenderCreateElementResult: TableRenderCreateElementResult;
218   - readonly ITabPane: TabPane;
219   - readonly ITabs: Tabs;
220   - readonly ITag: Tag;
221   - readonly ITime: Time;
222   - readonly ITimeline: Timeline;
223   - readonly ITimelineItem: TimelineItem;
224   - readonly ITimePicker: TimePicker;
225   - readonly ITooltip: Tooltip;
226   - readonly ITransfer: Transfer;
227   - readonly ITree: Tree;
228   - readonly ITreeChild: TreeChild;
229   - readonly IUpload: Upload;
230   -}
231   -
232   -export default IView;
233   -
234   -declare module 'iview/types/iview' {
235   - const iView: IView;
236   - export default iView;
237   -}
types/iview/iview.d.ts deleted
1   -declare module 'iview' {
2   - const iView: any;
3   - export default iView;
4   -}
5 0 \ No newline at end of file
types/iview/layout.d.ts renamed to types/layout.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Layout extends Vue {
  7 +export declare class Layout extends Vue {
8 8 /**
9 9 * 触发响应式布局的断点,可选值为xs,sm,md,lg,xl或xxl,若不设此属性则不会触发响应式布局。
10 10 * {
... ...
types/iview/loading-bar.d.ts renamed to types/loading-bar.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface LoadingBarInstance {
  7 +export declare class LoadingBarInstance {
8 8 /**
9 9 * 开始从 0 显示进度条,并自动加载进度
10 10 */
... ... @@ -33,7 +33,7 @@ export interface LoadingBarInstance {
33 33 destroy(): void;
34 34 }
35 35  
36   -export interface LoadingBarConfig {
  36 +export declare class LoadingBarConfig {
37 37 /**
38 38 * 进度条的颜色,默认为 iView 主色
39 39 * @default primary
... ...
types/iview/menu.d.ts renamed to types/menu.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Menu extends Vue {
  7 +export declare class Menu extends Vue {
8 8 /**
9 9 * 菜单类型,可选值为 horizontal(水平) 和 vertical(垂直)
10 10 * @default vertical
... ... @@ -52,7 +52,7 @@ export interface Menu extends Vue {
52 52 updateActiveName(): void;
53 53 }
54 54  
55   -export interface MenuItem extends Vue {
  55 +export declare class MenuItem extends Vue {
56 56 /**
57 57 * 菜单项的唯一标识,必填
58 58 */
... ... @@ -73,7 +73,7 @@ export interface MenuItem extends Vue {
73 73 target?: '_blank' | '_self' | '_parent' | '_top';
74 74 }
75 75  
76   -export interface Submenu extends Vue {
  76 +export declare class Submenu extends Vue {
77 77 /**
78 78 * 子菜单的唯一标识,必填
79 79 */
... ... @@ -93,7 +93,7 @@ export interface Submenu extends Vue {
93 93 };
94 94 }
95 95  
96   -export interface MenuGroup extends Vue {
  96 +export declare class MenuGroup extends Vue {
97 97 /**
98 98 * 分组标题
99 99 * @default 空
... ...
types/iview/message.d.ts renamed to types/message.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode, CreateElement } from "vue";
6 6  
7   -export interface MessageInstance {
  7 +export declare class MessageInstance {
8 8 /**
9 9 * 消息
10 10 * @param config MessageConfig为相关配置,string为待显示的内容
... ... @@ -41,7 +41,7 @@ export interface MessageInstance {
41 41 destroy(): void;
42 42 }
43 43  
44   -export interface MessageConfig {
  44 +export declare class MessageConfig {
45 45 /**
46 46 * 提示内容
47 47 */
... ...
types/iview/modal.d.ts renamed to types/modal.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Modal {
  7 +export declare class Modal {
8 8 /**
9 9 * 对话框是否显示,可使用 v-model 双向绑定数据。
10 10 * @default false
... ... @@ -123,7 +123,7 @@ export interface Modal {
123 123 };
124 124 }
125 125  
126   -export interface ModalInstance {
  126 +export declare class ModalInstance {
127 127 /**
128 128 * 消息
129 129 * @param config ModalConfig为相关配置,string为待显示的内容
... ... @@ -155,7 +155,7 @@ export interface ModalInstance {
155 155 remove(): void;
156 156 }
157 157  
158   -export interface ModalConfig {
  158 +export declare class ModalConfig {
159 159 /**
160 160 * 标题或者Element选择器字符串
161 161 */
... ...
types/iview/notice.d.ts renamed to types/notice.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode, CreateElement } from "vue";
6 6  
7   -export interface NoticeInstance {
  7 +export declare class NoticeInstance {
8 8 /**
9 9 * 打开
10 10 * @param config NoticeConfig为相关配置,string为待显示的内容
... ... @@ -44,7 +44,7 @@ export interface NoticeInstance {
44 44 destroy(): void;
45 45 }
46 46  
47   -export interface NoticeConfig {
  47 +export declare class NoticeConfig {
48 48 /**
49 49 * 通知提醒的标题
50 50 */
... ... @@ -71,7 +71,7 @@ export interface NoticeConfig {
71 71 onClose?: Function;
72 72 }
73 73  
74   -export interface NoticeGlobalConfig {
  74 +export declare class NoticeGlobalConfig {
75 75 /**
76 76 * 通知组件距离顶端的距离,单位像素 默认24
77 77 */
... ...
types/iview/page.d.ts renamed to types/page.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Page extends Vue {
  7 +export declare class Page extends Vue {
8 8 /**
9 9 * 当前页码,支持 .sync 修饰符
10 10 * @default 1
... ...
types/iview/poptip.d.ts renamed to types/poptip.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Poptip extends Vue {
  7 +export declare class Poptip extends Vue {
8 8 /**
9 9 * 触发方式,可选值为hover(悬停)click(点击)focus(聚焦),
10 10 * 在 confirm 模式下,只有 click 有效
... ...
types/iview/progress.d.ts renamed to types/progress.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Progress extends Vue {
  7 +export declare class Progress extends Vue {
8 8 /**
9 9 * 百分比
10 10 * @default 0
... ...
types/iview/radio.d.ts renamed to types/radio.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Radio extends Vue {
  7 +export declare class Radio extends Vue {
8 8 /**
9 9 * 只在单独使用时有效。可以使用 v-model 双向绑定数据
10 10 * @default false
... ... @@ -39,7 +39,7 @@ export interface Radio extends Vue {
39 39 $emit(eventName: 'on-change', arg: string | number | boolean): this;
40 40 }
41 41  
42   -export interface RadioGroup extends Vue {
  42 +export declare class RadioGroup extends Vue {
43 43 /**
44 44 * 指定当前选中的项目数据。可以使用 v-model 双向绑定数据
45 45 */
... ...
types/iview/rate.d.ts renamed to types/rate.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Rate extends Vue {
  7 +export declare class Rate extends Vue {
8 8 /**
9 9 * star总数
10 10 * @default 5
... ...
types/iview/scroll.d.ts renamed to types/scroll.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Scroll extends Vue {
  7 +export declare class Scroll extends Vue {
8 8 /**
9 9 * 滚动区域的高度,单位像素
10 10 * @default 300
... ...
types/iview/select.d.ts renamed to types/select.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Select extends Vue {
  7 +export declare class Select extends Vue {
8 8 /**
9 9 * 指定选中项目的 value 值,可以使用 v-model 双向绑定数据。
10 10 * 单选时只接受 String 或 Number,多选时只接受 Array
... ... @@ -114,7 +114,7 @@ export interface Select extends Vue {
114 114 clearSingleSelect(): void;
115 115 }
116 116  
117   -export interface SelectOption extends Vue {
  117 +export declare class SelectOption extends Vue {
118 118 /**
119 119 * 选项值,默认根据此属性值进行筛选,必填
120 120 */
... ... @@ -132,7 +132,7 @@ export interface SelectOption extends Vue {
132 132 disabled?: boolean;
133 133 }
134 134  
135   -export interface SelectOptionGroup extends Vue {
  135 +export declare class SelectOptionGroup extends Vue {
136 136 /**
137 137 * 分组的组名
138 138 * @default 空
... ...
types/iview/slider.d.ts renamed to types/slider.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Slider extends Vue {
  7 +export declare class Slider extends Vue {
8 8 /**
9 9 * 滑块选定的值,可以使用 v-model 双向绑定数据。普通模式下,数据格式为数字,
10 10 * 在双滑块模式下,数据格式为长度是2的数组,且每项都为数字,
... ...
types/iview/spin.d.ts renamed to types/spin.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Spin extends Vue {
  7 +export declare class Spin extends Vue {
8 8 /**
9 9 * Spin尺寸,可选值为large和small或者不设置
10 10 */
... ...
types/iview/split.d.ts renamed to types/split.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Split extends Vue {
  7 +export declare class Split extends Vue {
8 8 /**
9 9 * 面板位置,可以是 0~1 代表百分比,或具体数值的像素,可用 v-model 双向绑定
10 10 * @default 0.5
... ...
types/iview/steps.d.ts renamed to types/steps.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Steps extends Vue {
  7 +export declare class Steps extends Vue {
8 8 /**
9 9 * 当前步骤,从 0 开始计数
10 10 * @default 0
... ... @@ -26,7 +26,7 @@ export interface Steps extends Vue {
26 26 direction?: 'horizontal' | 'vertical';
27 27 }
28 28  
29   -export interface Step extends Vue {
  29 +export declare class Step extends Vue {
30 30 /**
31 31 * 步骤的状态,可选值为wait、process、finish、error,不设置时自动判断
32 32 * @default process
... ...
types/iview/switch.d.ts renamed to types/switch.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Switch extends Vue {
  7 +export declare class Switch extends Vue {
8 8 /**
9 9 * 指定当前是否选中,可以使用 v-model 双向绑定数据
10 10 * @default false
... ...
types/iview/table.d.ts renamed to types/table.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Table extends Vue {
  7 +export declare class Table extends Vue {
8 8 /**
9 9 * 显示的结构化数据,其中,字段 cellClassName 用于设置任意单元格的样式名称,
10 10 * 因此数据不能使用该字段,详见示例特定样式。
... ... @@ -163,7 +163,7 @@ export interface Table extends Vue {
163 163 };
164 164 }
165 165  
166   -export interface TableColumn {
  166 +export declare class TableColumn {
167 167 /**
168 168 * 列类型,可选值为 index、selection、expand、html
169 169 */
... ... @@ -279,7 +279,7 @@ export interface TableColumn {
279 279 children?: object[];
280 280 }
281 281  
282   -export interface TableRenderCreateElementData {
  282 +export declare class TableRenderCreateElementData {
283 283 /**
284 284 * 和`v-bind:class`一样的 API
285 285 */
... ... @@ -329,7 +329,7 @@ export interface TableRenderCreateElementData {
329 329 ref?: string
330 330 }
331 331  
332   -export interface TableColumnRenderParams {
  332 +export declare class TableColumnRenderParams {
333 333 /**
334 334 * 当前行数据
335 335 */
... ... @@ -344,7 +344,7 @@ export interface TableColumnRenderParams {
344 344 index?: number;
345 345 }
346 346  
347   -export interface TableRenderCreateElementResult {
  347 +export declare class TableRenderCreateElementResult {
348 348 child?: object;
349 349 children?: Array<any>;
350 350 componentInstance?: object;
... ... @@ -366,7 +366,7 @@ export interface TableRenderCreateElementResult {
366 366 text?: object;
367 367 }
368 368  
369   -export interface TableColumnRenderHeadParams {
  369 +export declare class TableColumnRenderHeadParams {
370 370 /**
371 371 * 当前列数据
372 372 */
... ... @@ -377,7 +377,7 @@ export interface TableColumnRenderHeadParams {
377 377 index?: number;
378 378 }
379 379  
380   -export interface TableExportCsvParams {
  380 +export declare class TableExportCsvParams {
381 381 /**
382 382 * 文件名,默认为 table.csv
383 383 */
... ...
types/iview/tabs.d.ts renamed to types/tabs.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Tabs extends Vue {
  7 +export declare class Tabs extends Vue {
8 8 /**
9 9 * 当前激活 tab 面板的 name,可以使用 v-model 双向绑定数据
10 10 * @default 默认为第一项的 name
... ... @@ -54,7 +54,7 @@ export interface Tabs extends Vue {
54 54 };
55 55 }
56 56  
57   -export interface TabPane extends Vue {
  57 +export declare class TabPane extends Vue {
58 58 /**
59 59 * 用于标识当前面板,对应 value,默认为其索引值
60 60 */
... ...
types/iview/tag.d.ts renamed to types/tag.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Tag extends Vue {
  7 +export declare class Tag extends Vue {
8 8 /**
9 9 * 标签是否可以关闭
10 10 * @default false
... ...
types/iview/time-picker.d.ts renamed to types/time-picker.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface TimePicker extends Vue {
  7 +export declare class TimePicker extends Vue {
8 8 /**
9 9 * 显示类型,可选值为 time、timerange
10 10 * @default time
... ...
types/iview/time.ts renamed to types/time.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Time extends Vue {
  7 +export declare class Time extends Vue {
8 8 /**
9 9 * 需要对比的时间,可以是时间戳或 Date 类型
10 10 */
... ...
types/iview/timeline.d.ts renamed to types/timeline.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Timeline extends Vue {
  7 +export declare class Timeline extends Vue {
8 8 /**
9 9 * 指定是否最后一个节点为幽灵节点
10 10 * @default false
... ... @@ -12,7 +12,7 @@ export interface Timeline extends Vue {
12 12 pending?: boolean;
13 13 }
14 14  
15   -export interface TimelineItem extends Vue {
  15 +export declare class TimelineItem extends Vue {
16 16 /**
17 17 * 圆圈颜色,可选值为blue、red、green,或自定义色值
18 18 * @default blue
... ...
types/iview/tooltip.d.ts renamed to types/tooltip.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Tooltip extends Vue {
  7 +export declare class Tooltip extends Vue {
8 8 /**
9 9 * 显示的内容
10 10 * @default 空
... ...
types/iview/transfer.d.ts renamed to types/transfer.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Transfer extends Vue {
  7 +export declare class Transfer extends Vue {
8 8 /**
9 9 * 数据源,其中的数据将会被渲染到左边一栏中,targetKeys 中指定的除外。
10 10 * @default []
... ...
types/iview/tree.d.ts renamed to types/tree.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Tree extends Vue {
  7 +export declare class Tree extends Vue {
8 8 /**
9 9 * 可嵌套的节点属性的数组,生成 tree 的数据
10 10 */
... ... @@ -62,7 +62,7 @@ export interface Tree extends Vue {
62 62 getSelectedNodes(): void;
63 63 }
64 64  
65   -export interface TreeChild extends Vue {
  65 +export declare class TreeChild extends Vue {
66 66 /**
67 67 * 标题
68 68 */
... ...
types/iview/upload.d.ts renamed to types/upload.d.ts
1   -// Type definitions for iview 3.0.0
  1 +// Type definitions for iview 3.0.1
2 2 // Project: https://github.com/iview/iview
3 3 // Definitions by: yangdan
4 4 // Definitions: https://github.com/yangdan8/iview.git
5 5 import Vue, { VNode } from "vue";
6 6  
7   -export interface Upload extends Vue {
  7 +export declare class Upload extends Vue {
8 8 /**
9 9 * 上传的地址,必填
10 10 */
... ...
yarn.lock
... ... @@ -314,7 +314,7 @@ arraybuffer.slice@~0.0.7:
314 314 version "0.0.7"
315 315 resolved "https://registry.yarnpkg.com/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz#3bbc4275dd584cc1b10809b89d4e8b63a69e7675"
316 316  
317   -arrify@^1.0.0:
  317 +arrify@^1.0.0, arrify@^1.0.1:
318 318 version "1.0.1"
319 319 resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
320 320  
... ... @@ -1843,6 +1843,19 @@ copy-descriptor@^0.1.0:
1843 1843 version "0.1.1"
1844 1844 resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
1845 1845  
  1846 +copy-webpack-plugin@^4.5.2:
  1847 + version "4.5.2"
  1848 + resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-4.5.2.tgz#d53444a8fea2912d806e78937390ddd7e632ee5c"
  1849 + dependencies:
  1850 + cacache "^10.0.4"
  1851 + find-cache-dir "^1.0.0"
  1852 + globby "^7.1.1"
  1853 + is-glob "^4.0.0"
  1854 + loader-utils "^1.1.0"
  1855 + minimatch "^3.0.4"
  1856 + p-limit "^1.0.0"
  1857 + serialize-javascript "^1.4.0"
  1858 +
1846 1859 core-js@^1.0.0:
1847 1860 version "1.2.7"
1848 1861 resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636"
... ... @@ -2251,6 +2264,13 @@ diffie-hellman@^5.0.0:
2251 2264 miller-rabin "^4.0.0"
2252 2265 randombytes "^2.0.0"
2253 2266  
  2267 +dir-glob@^2.0.0:
  2268 + version "2.0.0"
  2269 + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-2.0.0.tgz#0b205d2b6aef98238ca286598a8204d29d0a0034"
  2270 + dependencies:
  2271 + arrify "^1.0.1"
  2272 + path-type "^3.0.0"
  2273 +
2254 2274 dns-equal@^1.0.0:
2255 2275 version "1.0.0"
2256 2276 resolved "https://registry.yarnpkg.com/dns-equal/-/dns-equal-1.0.0.tgz#b39e7f1da6eb0a75ba9c17324b34753c47e0654d"
... ... @@ -3439,6 +3459,17 @@ globby@^6.1.0:
3439 3459 pify "^2.0.0"
3440 3460 pinkie-promise "^2.0.0"
3441 3461  
  3462 +globby@^7.1.1:
  3463 + version "7.1.1"
  3464 + resolved "https://registry.yarnpkg.com/globby/-/globby-7.1.1.tgz#fb2ccff9401f8600945dfada97440cca972b8680"
  3465 + dependencies:
  3466 + array-union "^1.0.1"
  3467 + dir-glob "^2.0.0"
  3468 + glob "^7.1.2"
  3469 + ignore "^3.3.5"
  3470 + pify "^3.0.0"
  3471 + slash "^1.0.0"
  3472 +
3442 3473 globule@~0.1.0:
3443 3474 version "0.1.0"
3444 3475 resolved "https://registry.yarnpkg.com/globule/-/globule-0.1.0.tgz#d9c8edde1da79d125a151b79533b978676346ae5"
... ... @@ -3961,6 +3992,10 @@ ignore@^3.2.0:
3961 3992 version "3.3.8"
3962 3993 resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.8.tgz#3f8e9c35d38708a3a7e0e9abb6c73e7ee7707b2b"
3963 3994  
  3995 +ignore@^3.3.5:
  3996 + version "3.3.10"
  3997 + resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.10.tgz#0a97fb876986e8081c631160f8f9f389157f0043"
  3998 +
3964 3999 image-size@~0.5.0:
3965 4000 version "0.5.5"
3966 4001 resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.5.5.tgz#09dfd4ab9d20e29eb1c3e80b8990378df9e3cb9c"
... ... @@ -5725,6 +5760,12 @@ p-finally@^1.0.0:
5725 5760 version "1.0.0"
5726 5761 resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae"
5727 5762  
  5763 +p-limit@^1.0.0:
  5764 + version "1.3.0"
  5765 + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8"
  5766 + dependencies:
  5767 + p-try "^1.0.0"
  5768 +
5728 5769 p-limit@^1.1.0:
5729 5770 version "1.2.0"
5730 5771 resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.2.0.tgz#0e92b6bedcb59f022c13d0f1949dc82d15909f1c"
... ... @@ -5930,6 +5971,12 @@ path-type@^2.0.0:
5930 5971 dependencies:
5931 5972 pify "^2.0.0"
5932 5973  
  5974 +path-type@^3.0.0:
  5975 + version "3.0.0"
  5976 + resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f"
  5977 + dependencies:
  5978 + pify "^3.0.0"
  5979 +
5933 5980 pathval@^1.0.0:
5934 5981 version "1.1.0"
5935 5982 resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.0.tgz#b942e6d4bde653005ef6b71361def8727d0645e0"
... ...