Commit 6d845889198f9e363f0942000789a9d09a2a7d58
1 parent
33b3672e
更新d.ts file到3.3.0版本
Showing
60 changed files
with
139 additions
and
66 deletions
Show diff stats
types/affix.d.ts
types/alert.d.ts
types/anchor.d.ts
types/auto-complete.d.ts
1 | -// Type definitions for iview 3.1.0 | |
1 | +// Type definitions for iview 3.3.0 | |
2 | 2 | // Project: https://github.com/iview/iview |
3 | 3 | // Definitions by: yangdan |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
... | ... | @@ -72,4 +72,8 @@ export declare interface AutoComplete extends Vue { |
72 | 72 | * 搜索补全项的时候调用 |
73 | 73 | */ |
74 | 74 | $emit(eventName: 'on-blur', event: KeyboardEvent): this; |
75 | + /** | |
76 | + * 清空时触发 | |
77 | + */ | |
78 | + $emit(eventName: 'on-clear'): this; | |
75 | 79 | } | ... | ... |
types/avatar.d.ts
1 | -// Type definitions for iview 3.1.0 | |
1 | +// Type definitions for iview 3.3.0 | |
2 | 2 | // Project: https://github.com/iview/iview |
3 | 3 | // Definitions by: yangdan |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
... | ... | @@ -27,4 +27,8 @@ export declare interface Avatar extends Vue { |
27 | 27 | * 自定义图标 |
28 | 28 | */ |
29 | 29 | 'custom-icon'?: string; |
30 | + /** | |
31 | + * 在设置 src 且图片加载不成功时触发 | |
32 | + */ | |
33 | + $emit(eventName: 'on-error', event: Event): this; | |
30 | 34 | } |
31 | 35 | \ No newline at end of file | ... | ... |
types/back-top.d.ts
types/badge.d.ts
types/breadcrumb.d.ts
types/button.d.ts
types/card.d.ts
types/carousel.d.ts
types/cascader.d.ts
types/cell.d.ts
types/checkbox.d.ts
types/circle.d.ts
types/collapse.d.ts
types/color-picker.d.ts
types/content.d.ts
types/date-picker.d.ts
1 | -// Type definitions for iview 3.1.0 | |
1 | +// Type definitions for iview 3.3.0 | |
2 | 2 | // Project: https://github.com/iview/iview |
3 | 3 | // Definitions by: yangdan |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
... | ... | @@ -112,6 +112,10 @@ export declare interface DatePicker extends Vue { |
112 | 112 | */ |
113 | 113 | 'time-picker-options'?: object; |
114 | 114 | /** |
115 | + * 两个日期间的分隔符 | |
116 | + */ | |
117 | + 'separator'?: string; | |
118 | + /** | |
115 | 119 | * 日期发生变化时触发 已经格式化后的日期,比如 2016-01-01 |
116 | 120 | */ |
117 | 121 | $emit(eventName: 'on-change', value: string): this; | ... | ... |
types/divider.d.ts
1 | -// Type definitions for iview 3.1.0 | |
1 | +// Type definitions for iview 3.3.0 | |
2 | 2 | // Project: https://github.com/iview/iview |
3 | 3 | // Definitions by: yangdan |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
... | ... | @@ -20,4 +20,9 @@ export declare interface Divider extends Vue { |
20 | 20 | * @default false |
21 | 21 | */ |
22 | 22 | dashed?: boolean; |
23 | + /** | |
24 | + * 尺寸,可选值为 small 或 default | |
25 | + * @default default | |
26 | + */ | |
27 | + size?: string; | |
23 | 28 | } |
24 | 29 | \ No newline at end of file | ... | ... |
types/drawer.d.ts
1 | -// Type definitions for iview 3.1.0 | |
1 | +// Type definitions for iview 3.3.0 | |
2 | 2 | // Project: https://github.com/iview/iview |
3 | 3 | // Definitions by: yangdan |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
... | ... | @@ -68,6 +68,15 @@ export declare interface Drawer extends Vue { |
68 | 68 | */ |
69 | 69 | 'inner'?: boolean; |
70 | 70 | /** |
71 | + * 是否开启拖拽调整宽度 | |
72 | + * @default false | |
73 | + */ | |
74 | + 'draggable'?: boolean; | |
75 | + /** | |
76 | + * 返回 Promise 可以阻止关闭 | |
77 | + */ | |
78 | + 'before-close'?: () => void | PromiseConstructor; | |
79 | + /** | |
71 | 80 | * 关闭抽屉时触发 |
72 | 81 | */ |
73 | 82 | $emit(eventName: 'on-close'): this; |
... | ... | @@ -76,6 +85,10 @@ export declare interface Drawer extends Vue { |
76 | 85 | */ |
77 | 86 | $emit(eventName: 'on-visible-change', value: boolean): this; |
78 | 87 | /** |
88 | + * 调整宽度时触发,返回宽度 | |
89 | + */ | |
90 | + $emit(eventName: 'on-resize-width'): number; | |
91 | + /** | |
79 | 92 | * slot插槽对象 |
80 | 93 | */ |
81 | 94 | $slots: { |
... | ... | @@ -91,5 +104,9 @@ export declare interface Drawer extends Vue { |
91 | 104 | * 抽屉主体内容 |
92 | 105 | */ |
93 | 106 | close: VNode[]; |
107 | + /** | |
108 | + * 自定义调整宽度节点 | |
109 | + */ | |
110 | + trigger: VNode[]; | |
94 | 111 | }; |
95 | 112 | } | ... | ... |
types/dropdown.d.ts
1 | -// Type definitions for iview 3.1.0 | |
1 | +// Type definitions for iview 3.3.0 | |
2 | 2 | // Project: https://github.com/iview/iview |
3 | 3 | // Definitions by: yangdan |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
... | ... | @@ -29,6 +29,10 @@ export declare interface Dropdown extends Vue { |
29 | 29 | */ |
30 | 30 | transfer?: boolean; |
31 | 31 | /** |
32 | + * 开启 transfer 时,给浮层添加额外的 class 名称 | |
33 | + */ | |
34 | + 'transfer-class-name'?: string; | |
35 | + /** | |
32 | 36 | * 点击菜单项时触发 |
33 | 37 | * |
34 | 38 | */ | ... | ... |
types/footer.d.ts
types/form.d.ts
types/grid.d.ts
types/header.d.ts
types/icon.d.ts
types/index.d.ts
types/input-number.d.ts
types/input.d.ts
types/iview.components.d.ts
types/layout.d.ts
1 | -// Type definitions for iview 3.1.0 | |
1 | +// Type definitions for iview 3.3.0 | |
2 | 2 | // Project: https://github.com/iview/iview |
3 | 3 | // Definitions by: yangdan |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
... | ... | @@ -8,11 +8,12 @@ export declare interface Layout extends Vue { |
8 | 8 | /** |
9 | 9 | * 触发响应式布局的断点,可选值为xs,sm,md,lg,xl或xxl,若不设此属性则不会触发响应式布局。 |
10 | 10 | * { |
11 | - * xs?: '480px', | |
12 | - * sm?: '768px', | |
13 | - * md?: '992px', | |
14 | - * lg?: '1200px', | |
15 | - * xl?: '1600px' | |
11 | + * xs: '480px', | |
12 | + * sm: '576px', | |
13 | + * md: '768px', | |
14 | + * lg: '992px', | |
15 | + * xl: '1200px', | |
16 | + * xxl: '1600px' | |
16 | 17 | * } |
17 | 18 | */ |
18 | 19 | breakpoint?: string; |
... | ... | @@ -69,4 +70,4 @@ export declare interface Layout extends Vue { |
69 | 70 | * methods, 改变Sider展开-收起状态。 |
70 | 71 | */ |
71 | 72 | toggleCollapse(): void; |
72 | -} | |
73 | 73 | \ No newline at end of file |
74 | +}更多· | |
74 | 75 | \ No newline at end of file | ... | ... |
types/loading-bar.d.ts
types/menu.d.ts
types/message.d.ts
types/modal.d.ts
types/notice.d.ts
types/page.d.ts
types/poptip.d.ts
types/progress.d.ts
1 | -// Type definitions for iview 3.1.0 | |
1 | +// Type definitions for iview 3.3.0 | |
2 | 2 | // Project: https://github.com/iview/iview |
3 | 3 | // Definitions by: yangdan |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
... | ... | @@ -36,6 +36,10 @@ export declare interface Progress extends Vue { |
36 | 36 | */ |
37 | 37 | 'success-percent'?: number; |
38 | 38 | /** |
39 | + * 进度条的颜色 | |
40 | + */ | |
41 | + 'stroke-color'?: string; | |
42 | + /** | |
39 | 43 | * slot插槽对象 |
40 | 44 | */ |
41 | 45 | $slots: { | ... | ... |
types/radio.d.ts
types/rate.d.ts
types/scroll.d.ts
types/select.d.ts
1 | -// Type definitions for iview 3.1.0 | |
1 | +// Type definitions for iview 3.3.0 | |
2 | 2 | // Project: https://github.com/iview/iview |
3 | 3 | // Definitions by: yangdan |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
... | ... | @@ -89,6 +89,10 @@ export declare interface Select extends Vue { |
89 | 89 | */ |
90 | 90 | 'element-id'?: string; |
91 | 91 | /** |
92 | + * 开启 transfer 时,给浮层添加额外的 class 名称 | |
93 | + */ | |
94 | + 'transfer-class-name'?: string; | |
95 | + /** | |
92 | 96 | * 选中的Option变化时触发,默认返回 value,如需返回 label,详见 label-in-value 属性 当前选中项 |
93 | 97 | */ |
94 | 98 | $emit(eventName: 'on-change'): this; | ... | ... |
types/sider.d.ts
types/slider.d.ts
types/spin.d.ts
types/split.d.ts
types/steps.d.ts
types/switch.d.ts
types/table.d.ts
1 | -// Type definitions for iview 3.1.0 | |
1 | +// Type definitions for iview 3.3.0 | |
2 | 2 | // Project: https://github.com/iview/iview |
3 | 3 | // Definitions by: yangdan |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
... | ... | @@ -76,6 +76,16 @@ export declare interface Table extends Vue { |
76 | 76 | */ |
77 | 77 | "no-filtered-data-text"?: string; |
78 | 78 | /** |
79 | + * 是否开启拖拽调整行顺序,需配合 @on-drag-drop 事件使用 | |
80 | + * @default false | |
81 | + */ | |
82 | + "draggable"?: boolean; | |
83 | + /** | |
84 | + * 列使用 tooltip 时,配置它的主题,可选值为 dark 或 light | |
85 | + * @default dark | |
86 | + */ | |
87 | + "tooltip-theme"?: string; | |
88 | + /** | |
79 | 89 | * 开启 highlight-row 后有效,当表格的当前行发生变化的时候会触发 |
80 | 90 | * currentRow:当前高亮行的数据 |
81 | 91 | * oldCurrentRow:上一次高亮的数据 |
... | ... | @@ -155,6 +165,12 @@ export declare interface Table extends Vue { |
155 | 165 | */ |
156 | 166 | $emit(eventName: "on-expand", row: object, status: string): this; |
157 | 167 | /** |
168 | + * 拖拽排序松开时触发,返回置换的两行数据索引 | |
169 | + * index1 | |
170 | + * index2 | |
171 | + */ | |
172 | + $emit(eventName: "on-drag-drop", index1: number, index2: number): this; | |
173 | + /** | |
158 | 174 | * 导出数据 |
159 | 175 | */ |
160 | 176 | exportCsv(params: TableExportCsvParams): void; | ... | ... |
types/tabs.d.ts
types/tag.d.ts
types/time-picker.d.ts
types/time.ts
types/timeline.d.ts
types/tooltip.d.ts
types/transfer.d.ts
types/tree.d.ts
1 | -// Type definitions for iview 3.1.0 | |
1 | +// Type definitions for iview 3.3.0 | |
2 | 2 | // Project: https://github.com/iview/iview |
3 | 3 | // Definitions by: yangdan |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
... | ... | @@ -44,6 +44,11 @@ export declare interface Tree extends Vue { |
44 | 44 | */ |
45 | 45 | "check-strictly"?: boolean; |
46 | 46 | /** |
47 | + * 开启后,在 show-checkbox 模式下,select 的交互也将转为 check | |
48 | + * @default false | |
49 | + */ | |
50 | + "check-directly"?: boolean; | |
51 | + /** | |
47 | 52 | * 点击树节点时触发 |
48 | 53 | * @default 当前已勾选节点的数组、当前项 |
49 | 54 | */ | ... | ... |
types/upload.d.ts
1 | -// Type definitions for iview 3.1.0 | |
1 | +// Type definitions for iview 3.3.0 | |
2 | 2 | // Project: https://github.com/iview/iview |
3 | 3 | // Definitions by: yangdan |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
... | ... | @@ -25,6 +25,11 @@ export declare interface Upload extends Vue { |
25 | 25 | */ |
26 | 26 | paste?: boolean; |
27 | 27 | /** |
28 | + * 是否禁用 | |
29 | + * @default false | |
30 | + */ | |
31 | + disabled?: boolean; | |
32 | + /** | |
28 | 33 | * 上传时附带的额外参数 |
29 | 34 | */ |
30 | 35 | data?: object; | ... | ... |