Commit 97f1c9377f8b9006079bb09263270fb997e098a3
Committed by
GitHub

Merge pull request #4430 from yangdan8/2.0_添加d.ts定义
补全失的导入导出类型,将class定义方式修改为interface定义,方面未来扩展
Showing
60 changed files
with
159 additions
and
159 deletions
Show diff stats
README.md
@@ -115,7 +115,7 @@ If you want to contribute or have questions or bugs to report: | @@ -115,7 +115,7 @@ If you want to contribute or have questions or bugs to report: | ||
115 | |[lcx960324](https://github.com/lcx960324) |  |[GITleonine1989](https://github.com/GITleonine1989) |  |[huixisheng](https://github.com/huixisheng) |  | | 115 | |[lcx960324](https://github.com/lcx960324) |  |[GITleonine1989](https://github.com/GITleonine1989) |  |[huixisheng](https://github.com/huixisheng) |  | |
116 | |[Sergio Crisostomo](https://github.com/SergioCrisostomo) |  | [lison16](https://github.com/lison16) |  | [Xotic750](https://github.com/Xotic750) |  | | 116 | |[Sergio Crisostomo](https://github.com/SergioCrisostomo) |  | [lison16](https://github.com/lison16) |  | [Xotic750](https://github.com/Xotic750) |  | |
117 | [huanghong1125](https://github.com/huanghong1125) |  | | 117 | [huanghong1125](https://github.com/huanghong1125) |  | |
118 | -[yangdan8](https://github.com/yangdan8) |  | | 118 | +[yangdan8](https://github.com/yangdan8) |  | |
119 | 119 | ||
120 | ### All Contributors | 120 | ### All Contributors |
121 | 121 |
types/affix.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Affix extends Vue { | 7 | +export declare interface Affix extends Vue { |
8 | /** | 8 | /** |
9 | * 距离窗口顶部达到指定偏移量后触发 | 9 | * 距离窗口顶部达到指定偏移量后触发 |
10 | * @default 0 | 10 | * @default 0 |
types/alert.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Alert extends Vue { | 7 | +export declare interface Alert extends Vue { |
8 | /** | 8 | /** |
9 | * 警告提示样式,可选值为info、success、warning、error | 9 | * 警告提示样式,可选值为info、success、warning、error |
10 | * @default info | 10 | * @default info |
types/anchor.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Anchor extends Vue { | 7 | +export declare interface Anchor extends Vue { |
8 | /** | 8 | /** |
9 | * 固定模式 | 9 | * 固定模式 |
10 | * @default true | 10 | * @default true |
@@ -48,7 +48,7 @@ export declare class Anchor extends Vue { | @@ -48,7 +48,7 @@ export declare class Anchor extends Vue { | ||
48 | $emit(eventName: 'on-change', []): this; | 48 | $emit(eventName: 'on-change', []): this; |
49 | } | 49 | } |
50 | 50 | ||
51 | -export declare class AnchorLink extends Vue { | 51 | +export declare interface AnchorLink extends Vue { |
52 | /** | 52 | /** |
53 | * 锚点链接 | 53 | * 锚点链接 |
54 | * @default | 54 | * @default |
types/auto-complete.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class AutoComplete extends Vue { | 7 | +export declare interface AutoComplete extends Vue { |
8 | /** | 8 | /** |
9 | * 绑定的值,可使用 v-model 双向绑定 | 9 | * 绑定的值,可使用 v-model 双向绑定 |
10 | */ | 10 | */ |
types/avatar.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Avatar extends Vue { | 7 | +export declare interface Avatar extends Vue { |
8 | /** | 8 | /** |
9 | * 指定头像的形状,可选值为 circle、square | 9 | * 指定头像的形状,可选值为 circle、square |
10 | * @default circle | 10 | * @default circle |
types/back-top.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class BackTop extends Vue { | 7 | +export declare interface BackTop extends Vue { |
8 | /** | 8 | /** |
9 | * 页面滚动高度达到该值时才显示BackTop组件 | 9 | * 页面滚动高度达到该值时才显示BackTop组件 |
10 | * @default 400 | 10 | * @default 400 |
types/badge.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Badge extends Vue { | 7 | +export declare interface Badge extends Vue { |
8 | /** | 8 | /** |
9 | * 显示的数字,大于overflowCount时,显示${overflowCount}+,为 0 时隐藏 | 9 | * 显示的数字,大于overflowCount时,显示${overflowCount}+,为 0 时隐藏 |
10 | */ | 10 | */ |
types/breadcrumb.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Breadcrumb extends Vue { | 7 | +export declare interface Breadcrumb extends Vue { |
8 | /** | 8 | /** |
9 | * 自定义分隔符 | 9 | * 自定义分隔符 |
10 | * @default / | 10 | * @default / |
@@ -12,7 +12,7 @@ export declare class Breadcrumb extends Vue { | @@ -12,7 +12,7 @@ export declare class Breadcrumb extends Vue { | ||
12 | separator?: string; | 12 | separator?: string; |
13 | } | 13 | } |
14 | 14 | ||
15 | -export declare class BreadcrumbItem extends Vue { | 15 | +export declare interface BreadcrumbItem extends Vue { |
16 | /** | 16 | /** |
17 | * 链接,不传则没有链接 | 17 | * 链接,不传则没有链接 |
18 | */ | 18 | */ |
types/button.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Button extends Vue { | 7 | +export declare interface Button extends Vue { |
8 | /** | 8 | /** |
9 | * 按钮类型,可选值为 default、primary、dashed、text、info、success、warning、error或者不设置 | 9 | * 按钮类型,可选值为 default、primary、dashed、text、info、success、warning、error或者不设置 |
10 | * @default default | 10 | * @default default |
@@ -68,7 +68,7 @@ export declare class Button extends Vue { | @@ -68,7 +68,7 @@ export declare class Button extends Vue { | ||
68 | target?: '_blank' | '_self' | '_parent' | '_top'; | 68 | target?: '_blank' | '_self' | '_parent' | '_top'; |
69 | } | 69 | } |
70 | 70 | ||
71 | -export declare class ButtonGroup extends Vue { | 71 | +export declare interface ButtonGroup extends Vue { |
72 | /** | 72 | /** |
73 | * 按钮组合大小,可选值为large、small、default或者不设置 | 73 | * 按钮组合大小,可选值为large、small、default或者不设置 |
74 | * @default default | 74 | * @default default |
types/card.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Card extends Vue { | 7 | +export declare interface Card extends Vue { |
8 | /** | 8 | /** |
9 | * 是否显示边框,建议在灰色背景下使用 | 9 | * 是否显示边框,建议在灰色背景下使用 |
10 | * @default true | 10 | * @default true |
types/carousel.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Carousel extends Vue { | 7 | +export declare interface Carousel extends Vue { |
8 | /** | 8 | /** |
9 | * 幻灯片的索引,从 0 开始,可以使用 v-model 双向绑定数据 | 9 | * 幻灯片的索引,从 0 开始,可以使用 v-model 双向绑定数据 |
10 | * @default 0 | 10 | * @default 0 |
@@ -60,6 +60,6 @@ export declare class Carousel extends Vue { | @@ -60,6 +60,6 @@ export declare class Carousel extends Vue { | ||
60 | $emit(eventName: 'on-change', oldValue: number, value: number): this; | 60 | $emit(eventName: 'on-change', oldValue: number, value: number): this; |
61 | } | 61 | } |
62 | 62 | ||
63 | -export declare class CarouselItem extends Vue { | 63 | +export declare interface CarouselItem extends Vue { |
64 | 64 | ||
65 | } | 65 | } |
66 | \ No newline at end of file | 66 | \ No newline at end of file |
types/cascader.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Cascader extends Vue { | 7 | +export declare interface Cascader extends Vue { |
8 | /** | 8 | /** |
9 | * 可选项的数据源,格式参照示例说明 | 9 | * 可选项的数据源,格式参照示例说明 |
10 | * @default [] | 10 | * @default [] |
types/cell.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Cell extends Vue { | 7 | +export declare interface Cell extends Vue { |
8 | /** | 8 | /** |
9 | * 用来标识这一项 | 9 | * 用来标识这一项 |
10 | */ | 10 | */ |
@@ -72,7 +72,7 @@ export declare class Cell extends Vue { | @@ -72,7 +72,7 @@ export declare class Cell extends Vue { | ||
72 | } | 72 | } |
73 | } | 73 | } |
74 | 74 | ||
75 | -export declare class CellGroup extends Vue { | 75 | +export declare interface CellGroup extends Vue { |
76 | /** | 76 | /** |
77 | * 点击单元格时触发 | 77 | * 点击单元格时触发 |
78 | * | 78 | * |
types/checkbox.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Checkbox extends Vue { | 7 | +export declare interface Checkbox extends Vue { |
8 | /** | 8 | /** |
9 | * 只在单独使用时有效。可以使用 v-model 双向绑定数据 | 9 | * 只在单独使用时有效。可以使用 v-model 双向绑定数据 |
10 | * @default false | 10 | * @default false |
@@ -44,7 +44,7 @@ export declare class Checkbox extends Vue { | @@ -44,7 +44,7 @@ export declare class Checkbox extends Vue { | ||
44 | $emit(eventName: 'on-change', value: boolean): this; | 44 | $emit(eventName: 'on-change', value: boolean): this; |
45 | } | 45 | } |
46 | 46 | ||
47 | -export declare class CheckboxGroup extends Vue { | 47 | +export declare interface CheckboxGroup extends Vue { |
48 | /** | 48 | /** |
49 | * 指定选中项目的集合,可以使用 v-model 双向绑定数据 | 49 | * 指定选中项目的集合,可以使用 v-model 双向绑定数据 |
50 | * @default [] | 50 | * @default [] |
types/circle.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Circle extends Vue { | 7 | +export declare interface Circle extends Vue { |
8 | /** | 8 | /** |
9 | * 百分比 | 9 | * 百分比 |
10 | * @default 0 | 10 | * @default 0 |
types/collapse.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Collapse extends Vue { | 7 | +export declare interface Collapse extends Vue { |
8 | /** | 8 | /** |
9 | * 当前激活的面板的 name,可以使用 v-model 双向绑定 | 9 | * 当前激活的面板的 name,可以使用 v-model 双向绑定 |
10 | */ | 10 | */ |
@@ -26,7 +26,7 @@ export declare class Collapse extends Vue { | @@ -26,7 +26,7 @@ export declare class Collapse extends Vue { | ||
26 | $emit(eventName: 'on-change', []): this; | 26 | $emit(eventName: 'on-change', []): this; |
27 | } | 27 | } |
28 | 28 | ||
29 | -export declare class CollapsePanel extends Vue { | 29 | +export declare interface CollapsePanel extends Vue { |
30 | /** | 30 | /** |
31 | * 当前面板的 name,与 Collapse的value对应,不填为索引值 | 31 | * 当前面板的 name,与 Collapse的value对应,不填为索引值 |
32 | * @default index的值 | 32 | * @default index的值 |
types/color-picker.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class ColorPicker extends Vue { | 7 | +export declare interface ColorPicker extends Vue { |
8 | /** | 8 | /** |
9 | * 绑定的值,可使用 v-model 双向绑定 | 9 | * 绑定的值,可使用 v-model 双向绑定 |
10 | */ | 10 | */ |
types/content.d.ts
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Content extends Vue { | 7 | +export declare interface Content extends Vue { |
8 | } | 8 | } |
9 | \ No newline at end of file | 9 | \ No newline at end of file |
types/date-picker.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class DatePicker extends Vue { | 7 | +export declare interface DatePicker extends Vue { |
8 | /** | 8 | /** |
9 | * 显示类型,可选值为 date、daterange、datetime、datetimerange、year、month'|'默认值date | 9 | * 显示类型,可选值为 date、daterange、datetime、datetimerange、year、month'|'默认值date |
10 | */ | 10 | */ |
@@ -40,7 +40,7 @@ export declare class DatePicker extends Vue { | @@ -40,7 +40,7 @@ export declare class DatePicker extends Vue { | ||
40 | /** | 40 | /** |
41 | * 选择器额外配置,比如不可选日期与快捷选项,具体项详见下表 | 41 | * 选择器额外配置,比如不可选日期与快捷选项,具体项详见下表 |
42 | */ | 42 | */ |
43 | - options?: object; | 43 | + options?: DatePickerOptions; |
44 | /** | 44 | /** |
45 | * 开启后,左右面板不联动,仅在 daterange 和 datetimerange 下可用。 | 45 | * 开启后,左右面板不联动,仅在 daterange 和 datetimerange 下可用。 |
46 | * @default false | 46 | * @default false |
@@ -138,7 +138,7 @@ export declare class DatePicker extends Vue { | @@ -138,7 +138,7 @@ export declare class DatePicker extends Vue { | ||
138 | }; | 138 | }; |
139 | } | 139 | } |
140 | 140 | ||
141 | -export declare class DatePickerOptions extends Vue { | 141 | +export declare interface DatePickerOptions { |
142 | /** | 142 | /** |
143 | * 设置快捷选项,每项内容: | 143 | * 设置快捷选项,每项内容: |
144 | * text:显示的文案 | 144 | * text:显示的文案 |
types/divider.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Divider extends Vue { | 7 | +export declare interface Divider extends Vue { |
8 | /** | 8 | /** |
9 | * 水平还是垂直类型,可选值为 horizontal 或 vertical | 9 | * 水平还是垂直类型,可选值为 horizontal 或 vertical |
10 | * @default horizontal | 10 | * @default horizontal |
types/drawer.d.ts
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | import Vue, { VNode } from 'vue'; | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Drawer extends Vue { | 7 | +export declare interface Drawer extends Vue { |
8 | /** | 8 | /** |
9 | * 抽屉是否显示,可使用 v-model 双向绑定数据 | 9 | * 抽屉是否显示,可使用 v-model 双向绑定数据 |
10 | * @default false | 10 | * @default false |
types/dropdown.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Dropdown extends Vue { | 7 | +export declare interface Dropdown extends Vue { |
8 | /** | 8 | /** |
9 | * 触发方式,可选值为 hover(悬停)click(点击)contextMenu(右键)custom(自定义),使用 custom 时,需配合 visible 一起使用 | 9 | * 触发方式,可选值为 hover(悬停)click(点击)contextMenu(右键)custom(自定义),使用 custom 时,需配合 visible 一起使用 |
10 | * @default hover | 10 | * @default hover |
@@ -56,10 +56,10 @@ export declare class Dropdown extends Vue { | @@ -56,10 +56,10 @@ export declare class Dropdown extends Vue { | ||
56 | }; | 56 | }; |
57 | } | 57 | } |
58 | 58 | ||
59 | -export declare class DropdownMenu extends Vue { | 59 | +export declare interface DropdownMenu extends Vue { |
60 | } | 60 | } |
61 | 61 | ||
62 | -export declare class DropdownItem extends Vue { | 62 | +export declare interface DropdownItem extends Vue { |
63 | /** | 63 | /** |
64 | * 用来标识这一项 | 64 | * 用来标识这一项 |
65 | */ | 65 | */ |
types/footer.d.ts
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Footer extends Vue { | 7 | +export declare interface Footer extends Vue { |
8 | } | 8 | } |
9 | \ No newline at end of file | 9 | \ No newline at end of file |
types/form.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Form extends Vue { | 7 | +export declare interface Form extends Vue { |
8 | /** | 8 | /** |
9 | * 表单数据对象 | 9 | * 表单数据对象 |
10 | */ | 10 | */ |
@@ -46,7 +46,7 @@ export declare class Form extends Vue { | @@ -46,7 +46,7 @@ export declare class Form extends Vue { | ||
46 | resetFields(): void; | 46 | resetFields(): void; |
47 | } | 47 | } |
48 | 48 | ||
49 | -export declare class FormItem extends Vue { | 49 | +export declare interface FormItem extends Vue { |
50 | /** | 50 | /** |
51 | * 对应表单域 model 里的字段 | 51 | * 对应表单域 model 里的字段 |
52 | */ | 52 | */ |
types/grid.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Row extends Vue { | 7 | +export declare interface Row extends Vue { |
8 | /** | 8 | /** |
9 | * 栅格间距,单位 px,左右平分 | 9 | * 栅格间距,单位 px,左右平分 |
10 | * @default 0 | 10 | * @default 0 |
@@ -28,7 +28,7 @@ export declare class Row extends Vue { | @@ -28,7 +28,7 @@ export declare class Row extends Vue { | ||
28 | 'class-name'?: string; | 28 | 'class-name'?: string; |
29 | } | 29 | } |
30 | 30 | ||
31 | -export declare class Col extends Vue { | 31 | +export declare interface Col extends Vue { |
32 | /** | 32 | /** |
33 | * 栅格的占位格数,可选值为0~24的整数,为 0 时,相当于display:none | 33 | * 栅格的占位格数,可选值为0~24的整数,为 0 时,相当于display:none |
34 | */ | 34 | */ |
types/header.d.ts
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Header extends Vue { | 7 | +export declare interface Header extends Vue { |
8 | } | 8 | } |
9 | \ No newline at end of file | 9 | \ No newline at end of file |
types/icon.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Icon extends Vue { | 7 | +export declare interface Icon extends Vue { |
8 | /** | 8 | /** |
9 | * 图标的名称 | 9 | * 图标的名称 |
10 | */ | 10 | */ |
types/input-number.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class InputNumber extends Vue { | 7 | +export declare interface InputNumber extends Vue { |
8 | /** | 8 | /** |
9 | * 最大值,默认值Infinity | 9 | * 最大值,默认值Infinity |
10 | */ | 10 | */ |
types/input.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Input extends Vue { | 7 | +export declare interface Input extends Vue { |
8 | /** | 8 | /** |
9 | * 输入框类型,可选值为 text、password、textarea、url、email、date | 9 | * 输入框类型,可选值为 text、password、textarea、url、email、date |
10 | * @default text | 10 | * @default text |
types/iview.components.d.ts
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | export { Affix } from './affix'; | 7 | export { Affix } from './affix'; |
8 | export { Alert } from './alert'; | 8 | export { Alert } from './alert'; |
@@ -22,12 +22,13 @@ export { Circle, Circle as ICircle } from './circle'; | @@ -22,12 +22,13 @@ export { Circle, Circle as ICircle } from './circle'; | ||
22 | export { Collapse, CollapsePanel } from './collapse'; | 22 | export { Collapse, CollapsePanel } from './collapse'; |
23 | export { ColorPicker } from './color-picker'; | 23 | export { ColorPicker } from './color-picker'; |
24 | export { Content } from './content'; | 24 | export { Content } from './content'; |
25 | -export { DatePicker } from './date-picker'; | 25 | +export { DatePicker, DatePickerOptions } from './date-picker'; |
26 | export { Divider } from './divider'; | 26 | export { Divider } from './divider'; |
27 | export { Drawer } from './drawer'; | 27 | export { Drawer } from './drawer'; |
28 | export { Dropdown, DropdownMenu, DropdownItem } from './dropdown'; | 28 | export { Dropdown, DropdownMenu, DropdownItem } from './dropdown'; |
29 | export { Footer } from './footer'; | 29 | export { Footer } from './footer'; |
30 | export { Form, FormItem } from './form'; | 30 | export { Form, FormItem } from './form'; |
31 | +export { Row, Col } from './grid'; | ||
31 | export { Header } from './header'; | 32 | export { Header } from './header'; |
32 | export { Icon } from './icon'; | 33 | export { Icon } from './icon'; |
33 | export { Input } from './input'; | 34 | export { Input } from './input'; |
@@ -35,22 +36,23 @@ export { InputNumber } from './input-number'; | @@ -35,22 +36,23 @@ export { InputNumber } from './input-number'; | ||
35 | export { Scroll } from './scroll'; | 36 | export { Scroll } from './scroll'; |
36 | export { Split } from './split'; | 37 | export { Split } from './split'; |
37 | export { Layout } from './layout'; | 38 | export { Layout } from './layout'; |
38 | -export { LoadingBar } from './loading-bar'; | 39 | +export { LoadingBar, LoadingBarConfig } from './loading-bar'; |
39 | export { Menu, MenuGroup, MenuItem, MenuSub } from './menu'; | 40 | export { Menu, MenuGroup, MenuItem, MenuSub } from './menu'; |
40 | -export { Message } from './message'; | ||
41 | -export { Modal } from './modal'; | ||
42 | -export { Notice } from './notice'; | 41 | +export { Message, MessageConfig } from './message'; |
42 | +export { Modal, ModalInstance, ModalConfig } from './modal'; | ||
43 | +export { Notice, NoticeConfig, NoticeGlobalConfig } from './notice'; | ||
43 | export { Page } from './page'; | 44 | export { Page } from './page'; |
44 | export { Poptip } from './poptip'; | 45 | export { Poptip } from './poptip'; |
45 | export { Progress } from './progress'; | 46 | export { Progress } from './progress'; |
46 | export { Radio, RadioGroup } from './radio'; | 47 | export { Radio, RadioGroup } from './radio'; |
47 | export { Rate } from './rate'; | 48 | export { Rate } from './rate'; |
49 | +export { Select, Option, OptionGroup } from './select'; | ||
48 | export { Sider } from './sider'; | 50 | export { Sider } from './sider'; |
49 | export { Slider } from './slider'; | 51 | export { Slider } from './slider'; |
50 | export { Spin } from './spin'; | 52 | export { Spin } from './spin'; |
51 | export { Steps, StepsStep } from './steps'; | 53 | export { Steps, StepsStep } from './steps'; |
52 | export { Switch, Switch as ISwitch } from './switch'; | 54 | export { Switch, Switch as ISwitch } from './switch'; |
53 | -export { Table } from './table'; | 55 | +export { Table, TableColumn, TableRenderCreateElementData, TableColumnRenderParams, TableRenderCreateElementResult, TableColumnRenderHeadParams, TableExportCsvParams } from './table'; |
54 | export { Tabs, TabsPane } from './tabs'; | 56 | export { Tabs, TabsPane } from './tabs'; |
55 | export { Tag } from './tag'; | 57 | export { Tag } from './tag'; |
56 | export { Time } from './time'; | 58 | export { Time } from './time'; |
@@ -58,10 +60,8 @@ export { Timeline, TimelineItem } from './timeline'; | @@ -58,10 +60,8 @@ export { Timeline, TimelineItem } from './timeline'; | ||
58 | export { TimePicker } from './time-picker'; | 60 | export { TimePicker } from './time-picker'; |
59 | export { Tooltip } from './tooltip'; | 61 | export { Tooltip } from './tooltip'; |
60 | export { Transfer } from './transfer'; | 62 | export { Transfer } from './transfer'; |
61 | -export { Tree } from './tree'; | 63 | +export { Tree, TreeChild } from './tree'; |
62 | export { Upload } from './upload'; | 64 | export { Upload } from './upload'; |
63 | -export { Row, Col } from './grid'; | ||
64 | -export { Select, Option, OptionGroup } from './select'; | ||
65 | 65 | ||
66 | declare const API: { | 66 | declare const API: { |
67 | version: string; | 67 | version: string; |
types/layout.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Layout extends Vue { | 7 | +export declare interface Layout extends Vue { |
8 | /** | 8 | /** |
9 | * 触发响应式布局的断点,可选值为xs,sm,md,lg,xl或xxl,若不设此属性则不会触发响应式布局。 | 9 | * 触发响应式布局的断点,可选值为xs,sm,md,lg,xl或xxl,若不设此属性则不会触发响应式布局。 |
10 | * { | 10 | * { |
types/loading-bar.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class LoadingBar { | 7 | +export declare interface LoadingBar { |
8 | /** | 8 | /** |
9 | * 开始从 0 显示进度条,并自动加载进度 | 9 | * 开始从 0 显示进度条,并自动加载进度 |
10 | */ | 10 | */ |
@@ -33,7 +33,7 @@ export declare class LoadingBar { | @@ -33,7 +33,7 @@ export declare class LoadingBar { | ||
33 | destroy(): void; | 33 | destroy(): void; |
34 | } | 34 | } |
35 | 35 | ||
36 | -export declare class LoadingBarConfig { | 36 | +export declare interface LoadingBarConfig { |
37 | /** | 37 | /** |
38 | * 进度条的颜色,默认为 iView 主色 | 38 | * 进度条的颜色,默认为 iView 主色 |
39 | * @default primary | 39 | * @default primary |
types/menu.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Menu extends Vue { | 7 | +export declare interface Menu extends Vue { |
8 | /** | 8 | /** |
9 | * 菜单类型,可选值为 horizontal(水平) 和 vertical(垂直) | 9 | * 菜单类型,可选值为 horizontal(水平) 和 vertical(垂直) |
10 | * @default vertical | 10 | * @default vertical |
@@ -52,7 +52,7 @@ export declare class Menu extends Vue { | @@ -52,7 +52,7 @@ export declare class Menu extends Vue { | ||
52 | updateActiveName(): void; | 52 | updateActiveName(): void; |
53 | } | 53 | } |
54 | 54 | ||
55 | -export declare class MenuItem extends Vue { | 55 | +export declare interface MenuItem extends Vue { |
56 | /** | 56 | /** |
57 | * 菜单项的唯一标识,必填 | 57 | * 菜单项的唯一标识,必填 |
58 | */ | 58 | */ |
@@ -73,7 +73,7 @@ export declare class MenuItem extends Vue { | @@ -73,7 +73,7 @@ export declare class MenuItem extends Vue { | ||
73 | target?: '_blank' | '_self' | '_parent' | '_top'; | 73 | target?: '_blank' | '_self' | '_parent' | '_top'; |
74 | } | 74 | } |
75 | 75 | ||
76 | -export declare class MenuSub extends Vue { | 76 | +export declare interface MenuSub extends Vue { |
77 | /** | 77 | /** |
78 | * 子菜单的唯一标识,必填 | 78 | * 子菜单的唯一标识,必填 |
79 | */ | 79 | */ |
@@ -93,7 +93,7 @@ export declare class MenuSub extends Vue { | @@ -93,7 +93,7 @@ export declare class MenuSub extends Vue { | ||
93 | }; | 93 | }; |
94 | } | 94 | } |
95 | 95 | ||
96 | -export declare class MenuGroup extends Vue { | 96 | +export declare interface MenuGroup extends Vue { |
97 | /** | 97 | /** |
98 | * 分组标题 | 98 | * 分组标题 |
99 | * @default 空 | 99 | * @default 空 |
types/message.d.ts
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | import Vue, { VNode, CreateElement } from "vue"; | 5 | import Vue, { VNode, CreateElement } from "vue"; |
6 | 6 | ||
7 | -export declare class Message { | 7 | +export declare interface Message { |
8 | /** | 8 | /** |
9 | * 消息 | 9 | * 消息 |
10 | * @param config MessageConfig为相关配置,string为待显示的内容 | 10 | * @param config MessageConfig为相关配置,string为待显示的内容 |
@@ -41,7 +41,7 @@ export declare class Message { | @@ -41,7 +41,7 @@ export declare class Message { | ||
41 | destroy(): void; | 41 | destroy(): void; |
42 | } | 42 | } |
43 | 43 | ||
44 | -export declare class MessageConfig { | 44 | +export declare interface MessageConfig { |
45 | /** | 45 | /** |
46 | * 提示内容 | 46 | * 提示内容 |
47 | */ | 47 | */ |
types/modal.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Modal { | 7 | +export declare interface Modal { |
8 | /** | 8 | /** |
9 | * 对话框是否显示,可使用 v-model 双向绑定数据。 | 9 | * 对话框是否显示,可使用 v-model 双向绑定数据。 |
10 | * @default false | 10 | * @default false |
@@ -123,7 +123,7 @@ export declare class Modal { | @@ -123,7 +123,7 @@ export declare class Modal { | ||
123 | }; | 123 | }; |
124 | } | 124 | } |
125 | 125 | ||
126 | -export declare class ModalInstance { | 126 | +export declare interface ModalInstance { |
127 | /** | 127 | /** |
128 | * 消息 | 128 | * 消息 |
129 | * @param config ModalConfig为相关配置,string为待显示的内容 | 129 | * @param config ModalConfig为相关配置,string为待显示的内容 |
@@ -155,7 +155,7 @@ export declare class ModalInstance { | @@ -155,7 +155,7 @@ export declare class ModalInstance { | ||
155 | remove(): void; | 155 | remove(): void; |
156 | } | 156 | } |
157 | 157 | ||
158 | -export declare class ModalConfig { | 158 | +export declare interface ModalConfig { |
159 | /** | 159 | /** |
160 | * 标题或者Element选择器字符串 | 160 | * 标题或者Element选择器字符串 |
161 | */ | 161 | */ |
types/notice.d.ts
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | import Vue, { VNode, CreateElement } from "vue"; | 5 | import Vue, { VNode, CreateElement } from "vue"; |
6 | 6 | ||
7 | -export declare class Notice { | 7 | +export declare interface Notice { |
8 | /** | 8 | /** |
9 | * 打开 | 9 | * 打开 |
10 | * @param config NoticeConfig为相关配置,string为待显示的内容 | 10 | * @param config NoticeConfig为相关配置,string为待显示的内容 |
@@ -44,7 +44,7 @@ export declare class Notice { | @@ -44,7 +44,7 @@ export declare class Notice { | ||
44 | destroy(): void; | 44 | destroy(): void; |
45 | } | 45 | } |
46 | 46 | ||
47 | -export declare class NoticeConfig { | 47 | +export declare interface NoticeConfig { |
48 | /** | 48 | /** |
49 | * 通知提醒的标题 | 49 | * 通知提醒的标题 |
50 | */ | 50 | */ |
@@ -71,7 +71,7 @@ export declare class NoticeConfig { | @@ -71,7 +71,7 @@ export declare class NoticeConfig { | ||
71 | onClose?: Function; | 71 | onClose?: Function; |
72 | } | 72 | } |
73 | 73 | ||
74 | -export declare class NoticeGlobalConfig { | 74 | +export declare interface NoticeGlobalConfig { |
75 | /** | 75 | /** |
76 | * 通知组件距离顶端的距离,单位像素 默认24 | 76 | * 通知组件距离顶端的距离,单位像素 默认24 |
77 | */ | 77 | */ |
types/page.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Page extends Vue { | 7 | +export declare interface Page extends Vue { |
8 | /** | 8 | /** |
9 | * 当前页码,支持 .sync 修饰符 | 9 | * 当前页码,支持 .sync 修饰符 |
10 | * @default 1 | 10 | * @default 1 |
types/poptip.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Poptip extends Vue { | 7 | +export declare interface Poptip extends Vue { |
8 | /** | 8 | /** |
9 | * 触发方式,可选值为hover(悬停)click(点击)focus(聚焦), | 9 | * 触发方式,可选值为hover(悬停)click(点击)focus(聚焦), |
10 | * 在 confirm 模式下,只有 click 有效 | 10 | * 在 confirm 模式下,只有 click 有效 |
types/progress.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Progress extends Vue { | 7 | +export declare interface Progress extends Vue { |
8 | /** | 8 | /** |
9 | * 百分比 | 9 | * 百分比 |
10 | * @default 0 | 10 | * @default 0 |
types/radio.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Radio extends Vue { | 7 | +export declare interface Radio extends Vue { |
8 | /** | 8 | /** |
9 | * 只在单独使用时有效。可以使用 v-model 双向绑定数据 | 9 | * 只在单独使用时有效。可以使用 v-model 双向绑定数据 |
10 | * @default false | 10 | * @default false |
@@ -39,7 +39,7 @@ export declare class Radio extends Vue { | @@ -39,7 +39,7 @@ export declare class Radio extends Vue { | ||
39 | $emit(eventName: 'on-change', arg: string | number | boolean): this; | 39 | $emit(eventName: 'on-change', arg: string | number | boolean): this; |
40 | } | 40 | } |
41 | 41 | ||
42 | -export declare class RadioGroup extends Vue { | 42 | +export declare interface RadioGroup extends Vue { |
43 | /** | 43 | /** |
44 | * 指定当前选中的项目数据。可以使用 v-model 双向绑定数据 | 44 | * 指定当前选中的项目数据。可以使用 v-model 双向绑定数据 |
45 | */ | 45 | */ |
types/rate.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Rate extends Vue { | 7 | +export declare interface Rate extends Vue { |
8 | /** | 8 | /** |
9 | * star总数 | 9 | * star总数 |
10 | * @default 5 | 10 | * @default 5 |
types/scroll.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Scroll extends Vue { | 7 | +export declare interface Scroll extends Vue { |
8 | /** | 8 | /** |
9 | * 滚动区域的高度,单位像素 | 9 | * 滚动区域的高度,单位像素 |
10 | * @default 300 | 10 | * @default 300 |
types/select.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Select extends Vue { | 7 | +export declare interface Select extends Vue { |
8 | /** | 8 | /** |
9 | * 指定选中项目的 value 值,可以使用 v-model 双向绑定数据。 | 9 | * 指定选中项目的 value 值,可以使用 v-model 双向绑定数据。 |
10 | * 单选时只接受 String 或 Number,多选时只接受 Array | 10 | * 单选时只接受 String 或 Number,多选时只接受 Array |
@@ -114,7 +114,7 @@ export declare class Select extends Vue { | @@ -114,7 +114,7 @@ export declare class Select extends Vue { | ||
114 | clearSingleSelect(): void; | 114 | clearSingleSelect(): void; |
115 | } | 115 | } |
116 | 116 | ||
117 | -export declare class Option extends Vue { | 117 | +export declare interface Option extends Vue { |
118 | /** | 118 | /** |
119 | * 选项值,默认根据此属性值进行筛选,必填 | 119 | * 选项值,默认根据此属性值进行筛选,必填 |
120 | */ | 120 | */ |
@@ -132,7 +132,7 @@ export declare class Option extends Vue { | @@ -132,7 +132,7 @@ export declare class Option extends Vue { | ||
132 | disabled?: boolean; | 132 | disabled?: boolean; |
133 | } | 133 | } |
134 | 134 | ||
135 | -export declare class OptionGroup extends Vue { | 135 | +export declare interface OptionGroup extends Vue { |
136 | /** | 136 | /** |
137 | * 分组的组名 | 137 | * 分组的组名 |
138 | * @default 空 | 138 | * @default 空 |
types/sider.d.ts
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Sider extends Vue { | 7 | +export declare interface Sider extends Vue { |
8 | } | 8 | } |
9 | \ No newline at end of file | 9 | \ No newline at end of file |
types/slider.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Slider extends Vue { | 7 | +export declare interface Slider extends Vue { |
8 | /** | 8 | /** |
9 | * 滑块选定的值,可以使用 v-model 双向绑定数据。普通模式下,数据格式为数字, | 9 | * 滑块选定的值,可以使用 v-model 双向绑定数据。普通模式下,数据格式为数字, |
10 | * 在双滑块模式下,数据格式为长度是2的数组,且每项都为数字, | 10 | * 在双滑块模式下,数据格式为长度是2的数组,且每项都为数字, |
types/spin.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Spin extends Vue { | 7 | +export declare interface Spin extends Vue { |
8 | /** | 8 | /** |
9 | * Spin尺寸,可选值为large和small或者不设置 | 9 | * Spin尺寸,可选值为large和small或者不设置 |
10 | */ | 10 | */ |
types/split.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Split extends Vue { | 7 | +export declare interface Split extends Vue { |
8 | /** | 8 | /** |
9 | * 面板位置,可以是 0~1 代表百分比,或具体数值的像素,可用 v-model 双向绑定 | 9 | * 面板位置,可以是 0~1 代表百分比,或具体数值的像素,可用 v-model 双向绑定 |
10 | * @default 0.5 | 10 | * @default 0.5 |
types/steps.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Steps extends Vue { | 7 | +export declare interface Steps extends Vue { |
8 | /** | 8 | /** |
9 | * 当前步骤,从 0 开始计数 | 9 | * 当前步骤,从 0 开始计数 |
10 | * @default 0 | 10 | * @default 0 |
@@ -26,7 +26,7 @@ export declare class Steps extends Vue { | @@ -26,7 +26,7 @@ export declare class Steps extends Vue { | ||
26 | direction?: 'horizontal' | 'vertical'; | 26 | direction?: 'horizontal' | 'vertical'; |
27 | } | 27 | } |
28 | 28 | ||
29 | -export declare class StepsStep extends Vue { | 29 | +export declare interface StepsStep extends Vue { |
30 | /** | 30 | /** |
31 | * 步骤的状态,可选值为wait、process、finish、error,不设置时自动判断 | 31 | * 步骤的状态,可选值为wait、process、finish、error,不设置时自动判断 |
32 | * @default process | 32 | * @default process |
types/switch.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Switch extends Vue { | 7 | +export declare interface Switch extends Vue { |
8 | /** | 8 | /** |
9 | * 指定当前是否选中,可以使用 v-model 双向绑定数据 | 9 | * 指定当前是否选中,可以使用 v-model 双向绑定数据 |
10 | * @default false | 10 | * @default false |
types/table.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Table extends Vue { | 7 | +export declare interface Table extends Vue { |
8 | /** | 8 | /** |
9 | * 显示的结构化数据,其中,字段 cellClassName 用于设置任意单元格的样式名称, | 9 | * 显示的结构化数据,其中,字段 cellClassName 用于设置任意单元格的样式名称, |
10 | * 因此数据不能使用该字段,详见示例特定样式。 | 10 | * 因此数据不能使用该字段,详见示例特定样式。 |
@@ -163,7 +163,7 @@ export declare class Table extends Vue { | @@ -163,7 +163,7 @@ export declare class Table extends Vue { | ||
163 | }; | 163 | }; |
164 | } | 164 | } |
165 | 165 | ||
166 | -export declare class TableColumn { | 166 | +export declare interface TableColumn { |
167 | /** | 167 | /** |
168 | * 列类型,可选值为 index、selection、expand、html | 168 | * 列类型,可选值为 index、selection、expand、html |
169 | */ | 169 | */ |
@@ -279,7 +279,7 @@ export declare class TableColumn { | @@ -279,7 +279,7 @@ export declare class TableColumn { | ||
279 | children?: object[]; | 279 | children?: object[]; |
280 | } | 280 | } |
281 | 281 | ||
282 | -export declare class TableRenderCreateElementData { | 282 | +export declare interface TableRenderCreateElementData { |
283 | /** | 283 | /** |
284 | * 和`v-bind:class`一样的 API | 284 | * 和`v-bind:class`一样的 API |
285 | */ | 285 | */ |
@@ -329,7 +329,7 @@ export declare class TableRenderCreateElementData { | @@ -329,7 +329,7 @@ export declare class TableRenderCreateElementData { | ||
329 | ref?: string | 329 | ref?: string |
330 | } | 330 | } |
331 | 331 | ||
332 | -export declare class TableColumnRenderParams { | 332 | +export declare interface TableColumnRenderParams { |
333 | /** | 333 | /** |
334 | * 当前行数据 | 334 | * 当前行数据 |
335 | */ | 335 | */ |
@@ -344,7 +344,7 @@ export declare class TableColumnRenderParams { | @@ -344,7 +344,7 @@ export declare class TableColumnRenderParams { | ||
344 | index?: number; | 344 | index?: number; |
345 | } | 345 | } |
346 | 346 | ||
347 | -export declare class TableRenderCreateElementResult { | 347 | +export declare interface TableRenderCreateElementResult { |
348 | child?: object; | 348 | child?: object; |
349 | children?: Array<any>; | 349 | children?: Array<any>; |
350 | componentInstance?: object; | 350 | componentInstance?: object; |
@@ -366,7 +366,7 @@ export declare class TableRenderCreateElementResult { | @@ -366,7 +366,7 @@ export declare class TableRenderCreateElementResult { | ||
366 | text?: object; | 366 | text?: object; |
367 | } | 367 | } |
368 | 368 | ||
369 | -export declare class TableColumnRenderHeadParams { | 369 | +export declare interface TableColumnRenderHeadParams { |
370 | /** | 370 | /** |
371 | * 当前列数据 | 371 | * 当前列数据 |
372 | */ | 372 | */ |
@@ -377,7 +377,7 @@ export declare class TableColumnRenderHeadParams { | @@ -377,7 +377,7 @@ export declare class TableColumnRenderHeadParams { | ||
377 | index?: number; | 377 | index?: number; |
378 | } | 378 | } |
379 | 379 | ||
380 | -export declare class TableExportCsvParams { | 380 | +export declare interface TableExportCsvParams { |
381 | /** | 381 | /** |
382 | * 文件名,默认为 table.csv | 382 | * 文件名,默认为 table.csv |
383 | */ | 383 | */ |
types/tabs.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Tabs extends Vue { | 7 | +export declare interface Tabs extends Vue { |
8 | /** | 8 | /** |
9 | * 当前激活 tab 面板的 name,可以使用 v-model 双向绑定数据 | 9 | * 当前激活 tab 面板的 name,可以使用 v-model 双向绑定数据 |
10 | * @default 默认为第一项的 name | 10 | * @default 默认为第一项的 name |
@@ -54,7 +54,7 @@ export declare class Tabs extends Vue { | @@ -54,7 +54,7 @@ export declare class Tabs extends Vue { | ||
54 | }; | 54 | }; |
55 | } | 55 | } |
56 | 56 | ||
57 | -export declare class TabsPane extends Vue { | 57 | +export declare interface TabsPane extends Vue { |
58 | /** | 58 | /** |
59 | * 用于标识当前面板,对应 value,默认为其索引值 | 59 | * 用于标识当前面板,对应 value,默认为其索引值 |
60 | */ | 60 | */ |
types/tag.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Tag extends Vue { | 7 | +export declare interface Tag extends Vue { |
8 | /** | 8 | /** |
9 | * 标签是否可以关闭 | 9 | * 标签是否可以关闭 |
10 | * @default false | 10 | * @default false |
types/time-picker.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class TimePicker extends Vue { | 7 | +export declare interface TimePicker extends Vue { |
8 | /** | 8 | /** |
9 | * 显示类型,可选值为 time、timerange | 9 | * 显示类型,可选值为 time、timerange |
10 | * @default time | 10 | * @default time |
types/time.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Time extends Vue { | 7 | +export declare interface Time extends Vue { |
8 | /** | 8 | /** |
9 | * 需要对比的时间,可以是时间戳或 Date 类型 | 9 | * 需要对比的时间,可以是时间戳或 Date 类型 |
10 | */ | 10 | */ |
types/timeline.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Timeline extends Vue { | 7 | +export declare interface Timeline extends Vue { |
8 | /** | 8 | /** |
9 | * 指定是否最后一个节点为幽灵节点 | 9 | * 指定是否最后一个节点为幽灵节点 |
10 | * @default false | 10 | * @default false |
@@ -12,7 +12,7 @@ export declare class Timeline extends Vue { | @@ -12,7 +12,7 @@ export declare class Timeline extends Vue { | ||
12 | pending?: boolean; | 12 | pending?: boolean; |
13 | } | 13 | } |
14 | 14 | ||
15 | -export declare class TimelineItem extends Vue { | 15 | +export declare interface TimelineItem extends Vue { |
16 | /** | 16 | /** |
17 | * 圆圈颜色,可选值为blue、red、green,或自定义色值 | 17 | * 圆圈颜色,可选值为blue、red、green,或自定义色值 |
18 | * @default blue | 18 | * @default blue |
types/tooltip.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Tooltip extends Vue { | 7 | +export declare interface Tooltip extends Vue { |
8 | /** | 8 | /** |
9 | * 显示的内容 | 9 | * 显示的内容 |
10 | * @default 空 | 10 | * @default 空 |
types/transfer.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Transfer extends Vue { | 7 | +export declare interface Transfer extends Vue { |
8 | /** | 8 | /** |
9 | * 数据源,其中的数据将会被渲染到左边一栏中,targetKeys 中指定的除外。 | 9 | * 数据源,其中的数据将会被渲染到左边一栏中,targetKeys 中指定的除外。 |
10 | * @default [] | 10 | * @default [] |
types/tree.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Tree extends Vue { | 7 | +export declare interface Tree extends Vue { |
8 | /** | 8 | /** |
9 | * 可嵌套的节点属性的数组,生成 tree 的数据 | 9 | * 可嵌套的节点属性的数组,生成 tree 的数据 |
10 | */ | 10 | */ |
@@ -62,7 +62,7 @@ export declare class Tree extends Vue { | @@ -62,7 +62,7 @@ export declare class Tree extends Vue { | ||
62 | getSelectedNodes(): void; | 62 | getSelectedNodes(): void; |
63 | } | 63 | } |
64 | 64 | ||
65 | -export declare class TreeChild extends Vue { | 65 | +export declare interface TreeChild extends Vue { |
66 | /** | 66 | /** |
67 | * 标题 | 67 | * 标题 |
68 | */ | 68 | */ |
types/upload.d.ts
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | // Project: https://github.com/iview/iview | 2 | // Project: https://github.com/iview/iview |
3 | // Definitions by: yangdan | 3 | // Definitions by: yangdan |
4 | // Definitions: https://github.com/yangdan8/iview.git | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | -import Vue,{ VNode } from 'vue'; | 5 | +import Vue, { VNode } from 'vue'; |
6 | 6 | ||
7 | -export declare class Upload extends Vue { | 7 | +export declare interface Upload extends Vue { |
8 | /** | 8 | /** |
9 | * 上传的地址,必填 | 9 | * 上传的地址,必填 |
10 | */ | 10 | */ |