Commit da5d3d4e0cb4fdd0299464d5843077ab2fb045dd
Committed by
GitHub
Merge pull request #31 from iview/2.0
update
Showing
60 changed files
with
110 additions
and
93 deletions
Show diff stats
README.md
... | ... | @@ -40,6 +40,14 @@ iView |
40 | 40 | </a> |
41 | 41 | </td> |
42 | 42 | </tr> |
43 | + <tr> | |
44 | + </td> | |
45 | + <td align="center" valign="middle"> | |
46 | + <a href="https://file.iviewui.com/asd/asd-uniapp.png" target="_blank"> | |
47 | + <img width="300" src="https://file.iviewui.com/asd/asd-uniapp.png"> | |
48 | + </a> | |
49 | + </td> | |
50 | + </tr> | |
43 | 51 | </tbody> |
44 | 52 | </table> |
45 | 53 | ... | ... |
src/locale/lang/tr-TR.js
... | ... | @@ -94,6 +94,15 @@ const lang = { |
94 | 94 | star: 'Yıldız', |
95 | 95 | stars: 'Yıldız' |
96 | 96 | }, |
97 | + time: { | |
98 | + before: ' önce', | |
99 | + after: ' sonra', | |
100 | + just: 'hemen şimdi', | |
101 | + seconds: ' saniye', | |
102 | + minutes: ' dakika', | |
103 | + hours: ' saat', | |
104 | + days: ' gün' | |
105 | + }, | |
97 | 106 | tree: { |
98 | 107 | emptyText: 'Veri Yok' |
99 | 108 | } |
... | ... | @@ -102,4 +111,4 @@ const lang = { |
102 | 111 | |
103 | 112 | setLang(lang); |
104 | 113 | |
105 | -export default lang; | |
106 | 114 | \ No newline at end of file |
115 | +export default lang; | ... | ... |
types/affix.d.ts
types/alert.d.ts
types/anchor.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue from 'vue'; |
6 | 6 | |
7 | -export declare interface Anchor extends Vue { | |
7 | +export declare class Anchor extends Vue { | |
8 | 8 | /** |
9 | 9 | * 固定模式 |
10 | 10 | * @default true |
... | ... | @@ -48,7 +48,7 @@ export declare interface Anchor extends Vue { |
48 | 48 | $emit(eventName: 'on-change', []): this; |
49 | 49 | } |
50 | 50 | |
51 | -export declare interface AnchorLink extends Vue { | |
51 | +export declare class AnchorLink extends Vue { | |
52 | 52 | /** |
53 | 53 | * 锚点链接 |
54 | 54 | * @default | ... | ... |
types/auto-complete.d.ts
types/avatar.d.ts
types/back-top.d.ts
types/badge.d.ts
types/breadcrumb.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare interface Breadcrumb extends Vue { | |
7 | +export declare class Breadcrumb extends Vue { | |
8 | 8 | /** |
9 | 9 | * 自定义分隔符 |
10 | 10 | * @default / |
... | ... | @@ -12,7 +12,7 @@ export declare interface Breadcrumb extends Vue { |
12 | 12 | separator?: string; |
13 | 13 | } |
14 | 14 | |
15 | -export declare interface BreadcrumbItem extends Vue { | |
15 | +export declare class BreadcrumbItem extends Vue { | |
16 | 16 | /** |
17 | 17 | * 链接,不传则没有链接 |
18 | 18 | */ | ... | ... |
types/button.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue from 'vue'; |
6 | 6 | |
7 | -export declare 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 |
... | ... | @@ -73,7 +73,7 @@ export declare interface Button extends Vue { |
73 | 73 | append?: boolean; |
74 | 74 | } |
75 | 75 | |
76 | -export declare interface ButtonGroup extends Vue { | |
76 | +export declare class ButtonGroup extends Vue { | |
77 | 77 | /** |
78 | 78 | * 按钮组合大小,可选值为large、small、default或者不设置 |
79 | 79 | * @default default | ... | ... |
types/card.d.ts
types/carousel.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue from 'vue'; |
6 | 6 | |
7 | -export declare interface Carousel extends Vue { | |
7 | +export declare class Carousel extends Vue { | |
8 | 8 | /** |
9 | 9 | * 幻灯片的索引,从 0 开始,可以使用 v-model 双向绑定数据 |
10 | 10 | * @default 0 |
... | ... | @@ -60,6 +60,6 @@ export declare interface Carousel extends Vue { |
60 | 60 | $emit(eventName: 'on-change', oldValue: number, value: number): this; |
61 | 61 | } |
62 | 62 | |
63 | -export declare interface CarouselItem extends Vue { | |
63 | +export declare class CarouselItem extends Vue { | |
64 | 64 | |
65 | 65 | } |
66 | 66 | \ No newline at end of file | ... | ... |
types/cascader.d.ts
types/cell.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare interface Cell extends Vue { | |
7 | +export declare class Cell extends Vue { | |
8 | 8 | /** |
9 | 9 | * 用来标识这一项 |
10 | 10 | */ |
... | ... | @@ -77,7 +77,7 @@ export declare interface Cell extends Vue { |
77 | 77 | } |
78 | 78 | } |
79 | 79 | |
80 | -export declare interface CellGroup extends Vue { | |
80 | +export declare class CellGroup extends Vue { | |
81 | 81 | /** |
82 | 82 | * 点击单元格时触发 |
83 | 83 | * | ... | ... |
types/checkbox.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare 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 declare interface Checkbox extends Vue { |
44 | 44 | $emit(eventName: 'on-change', value: boolean): this; |
45 | 45 | } |
46 | 46 | |
47 | -export declare interface CheckboxGroup extends Vue { | |
47 | +export declare class CheckboxGroup extends Vue { | |
48 | 48 | /** |
49 | 49 | * 指定选中项目的集合,可以使用 v-model 双向绑定数据 |
50 | 50 | * @default [] | ... | ... |
types/circle.d.ts
types/collapse.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare 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 declare interface Collapse extends Vue { |
26 | 26 | $emit(eventName: 'on-change', []): this; |
27 | 27 | } |
28 | 28 | |
29 | -export declare interface CollapsePanel extends Vue { | |
29 | +export declare class CollapsePanel extends Vue { | |
30 | 30 | /** |
31 | 31 | * 当前面板的 name,与 Collapse的value对应,不填为索引值 |
32 | 32 | * @default index的值 | ... | ... |
types/color-picker.d.ts
types/content.d.ts
types/date-picker.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare interface DatePicker extends Vue { | |
7 | +export declare class DatePicker extends Vue { | |
8 | 8 | /** |
9 | 9 | * 显示类型,可选值为 date、daterange、datetime、datetimerange、year、month'|'默认值date |
10 | 10 | */ |
... | ... | @@ -146,7 +146,7 @@ export declare interface DatePicker extends Vue { |
146 | 146 | }; |
147 | 147 | } |
148 | 148 | |
149 | -export declare interface DatePickerOptions { | |
149 | +export declare class DatePickerOptions { | |
150 | 150 | /** |
151 | 151 | * 设置快捷选项,每项内容: |
152 | 152 | * text:显示的文案 | ... | ... |
types/divider.d.ts
types/drawer.d.ts
types/dropdown.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare 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 |
... | ... | @@ -65,10 +65,10 @@ export declare interface Dropdown extends Vue { |
65 | 65 | }; |
66 | 66 | } |
67 | 67 | |
68 | -export declare interface DropdownMenu extends Vue { | |
68 | +export declare class DropdownMenu extends Vue { | |
69 | 69 | } |
70 | 70 | |
71 | -export declare interface DropdownItem extends Vue { | |
71 | +export declare class DropdownItem extends Vue { | |
72 | 72 | /** |
73 | 73 | * 用来标识这一项 |
74 | 74 | */ | ... | ... |
types/footer.d.ts
types/form.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare interface Form extends Vue { | |
7 | +export declare class Form extends Vue { | |
8 | 8 | /** |
9 | 9 | * 表单数据对象 |
10 | 10 | */ |
... | ... | @@ -46,7 +46,7 @@ export declare interface Form extends Vue { |
46 | 46 | resetFields(): void; |
47 | 47 | } |
48 | 48 | |
49 | -export declare interface FormItem extends Vue { | |
49 | +export declare class FormItem extends Vue { | |
50 | 50 | /** |
51 | 51 | * 对应表单域 model 里的字段 |
52 | 52 | */ | ... | ... |
types/grid.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare interface Row extends Vue { | |
7 | +export declare class Row extends Vue { | |
8 | 8 | /** |
9 | 9 | * 栅格间距,单位 px,左右平分 |
10 | 10 | * @default 0 |
... | ... | @@ -28,7 +28,7 @@ export declare interface Row extends Vue { |
28 | 28 | 'class-name'?: string; |
29 | 29 | } |
30 | 30 | |
31 | -export declare interface Col extends Vue { | |
31 | +export declare class Col extends Vue { | |
32 | 32 | /** |
33 | 33 | * 栅格的占位格数,可选值为0~24的整数,为 0 时,相当于display:none |
34 | 34 | */ | ... | ... |
types/header.d.ts
types/icon.d.ts
types/input-number.d.ts
types/input.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare interface Input extends Vue { | |
7 | +export declare class Input extends Vue { | |
8 | 8 | /** |
9 | 9 | * 输入框类型,可选值为 text、password、textarea、url、email、date、number、tel |
10 | 10 | * @default text | ... | ... |
types/layout.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare interface Layout extends Vue { | |
7 | +export declare class Layout extends Vue { | |
8 | 8 | /** |
9 | 9 | * 触发响应式布局的断点,可选值为xs,sm,md,lg,xl或xxl,若不设此属性则不会触发响应式布局。 |
10 | 10 | * { | ... | ... |
types/loading-bar.d.ts
... | ... | @@ -6,7 +6,7 @@ import Vue from 'vue'; |
6 | 6 | |
7 | 7 | export const LoadingBar: LoadingBarClass; |
8 | 8 | |
9 | -export declare interface LoadingBarClass { | |
9 | +export declare class LoadingBarClass { | |
10 | 10 | /** |
11 | 11 | * 开始从 0 显示进度条,并自动加载进度 |
12 | 12 | */ |
... | ... | @@ -35,7 +35,7 @@ export declare interface LoadingBarClass { |
35 | 35 | destroy(): void; |
36 | 36 | } |
37 | 37 | |
38 | -export declare interface LoadingBarConfig { | |
38 | +export declare class LoadingBarConfig { | |
39 | 39 | /** |
40 | 40 | * 进度条的颜色,默认为 iView 主色 |
41 | 41 | * @default primary | ... | ... |
types/menu.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare 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 declare interface Menu extends Vue { |
52 | 52 | updateActiveName(): void; |
53 | 53 | } |
54 | 54 | |
55 | -export declare interface MenuItem extends Vue { | |
55 | +export declare class MenuItem extends Vue { | |
56 | 56 | /** |
57 | 57 | * 菜单项的唯一标识,必填 |
58 | 58 | */ |
... | ... | @@ -78,7 +78,7 @@ export declare interface MenuItem extends Vue { |
78 | 78 | append?: boolean; |
79 | 79 | } |
80 | 80 | |
81 | -export declare interface MenuSub extends Vue { | |
81 | +export declare class MenuSub extends Vue { | |
82 | 82 | /** |
83 | 83 | * 子菜单的唯一标识,必填 |
84 | 84 | */ |
... | ... | @@ -98,7 +98,7 @@ export declare interface MenuSub extends Vue { |
98 | 98 | }; |
99 | 99 | } |
100 | 100 | |
101 | -export declare interface MenuGroup extends Vue { | |
101 | +export declare class MenuGroup extends Vue { | |
102 | 102 | /** |
103 | 103 | * 分组标题 |
104 | 104 | * @default 空 | ... | ... |
types/message.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode, CreateElement } from "vue"; |
6 | 6 | |
7 | -export declare interface Message { | |
7 | +export declare class Message { | |
8 | 8 | /** |
9 | 9 | * 消息 |
10 | 10 | * @param config MessageConfig为相关配置,string为待显示的内容 |
... | ... | @@ -41,7 +41,7 @@ export declare interface Message { |
41 | 41 | destroy(): void; |
42 | 42 | } |
43 | 43 | |
44 | -export declare interface MessageConfig { | |
44 | +export declare class MessageConfig { | |
45 | 45 | /** |
46 | 46 | * 提示内容 |
47 | 47 | */ | ... | ... |
types/modal.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode, CreateElement } from "vue"; |
6 | 6 | |
7 | -export declare interface Modal { | |
7 | +export declare class Modal { | |
8 | 8 | /** |
9 | 9 | * 对话框是否显示,可使用 v-model 双向绑定数据。 |
10 | 10 | * @default false |
... | ... | @@ -128,7 +128,7 @@ export declare interface Modal { |
128 | 128 | }; |
129 | 129 | } |
130 | 130 | |
131 | -export declare interface ModalInstance { | |
131 | +export declare class ModalInstance { | |
132 | 132 | /** |
133 | 133 | * 消息 |
134 | 134 | * @param config ModalConfig为相关配置,string为待显示的内容 |
... | ... | @@ -160,7 +160,7 @@ export declare interface ModalInstance { |
160 | 160 | remove(): void; |
161 | 161 | } |
162 | 162 | |
163 | -export declare interface ModalConfig { | |
163 | +export declare class ModalConfig { | |
164 | 164 | /** |
165 | 165 | * 标题或者Element选择器字符串 |
166 | 166 | */ | ... | ... |
types/notice.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode, CreateElement } from "vue"; |
6 | 6 | |
7 | -export declare interface Notice { | |
7 | +export declare class Notice { | |
8 | 8 | /** |
9 | 9 | * 打开 |
10 | 10 | * @param config NoticeConfig为相关配置,string为待显示的内容 |
... | ... | @@ -44,7 +44,7 @@ export declare interface Notice { |
44 | 44 | destroy(): void; |
45 | 45 | } |
46 | 46 | |
47 | -export declare interface NoticeConfig { | |
47 | +export declare class NoticeConfig { | |
48 | 48 | /** |
49 | 49 | * 通知提醒的标题 |
50 | 50 | */ |
... | ... | @@ -72,7 +72,7 @@ export declare interface NoticeConfig { |
72 | 72 | onClose?: Function; |
73 | 73 | } |
74 | 74 | |
75 | -export declare interface NoticeGlobalConfig { | |
75 | +export declare class NoticeGlobalConfig { | |
76 | 76 | /** |
77 | 77 | * 通知组件距离顶端的距离,单位像素 默认24 |
78 | 78 | */ | ... | ... |
types/page.d.ts
types/poptip.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare interface Poptip extends Vue { | |
7 | +export declare class Poptip extends Vue { | |
8 | 8 | /** |
9 | 9 | * 触发方式,可选值为hover(悬停)click(点击)focus(聚焦), |
10 | 10 | * 在 confirm 模式下,只有 click 有效 | ... | ... |
types/progress.d.ts
types/radio.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare 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 declare interface Radio extends Vue { |
39 | 39 | $emit(eventName: 'on-change', arg: string | number | boolean): this; |
40 | 40 | } |
41 | 41 | |
42 | -export declare interface RadioGroup extends Vue { | |
42 | +export declare class RadioGroup extends Vue { | |
43 | 43 | /** |
44 | 44 | * 指定当前选中的项目数据。可以使用 v-model 双向绑定数据 |
45 | 45 | */ | ... | ... |
types/rate.d.ts
types/scroll.d.ts
types/select.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare interface Select extends Vue { | |
7 | +export declare class Select extends Vue { | |
8 | 8 | /** |
9 | 9 | * 指定选中项目的 value 值,可以使用 v-model 双向绑定数据。 |
10 | 10 | * 单选时只接受 String 或 Number,多选时只接受 Array |
... | ... | @@ -139,7 +139,7 @@ export declare interface Select extends Vue { |
139 | 139 | }; |
140 | 140 | } |
141 | 141 | |
142 | -export declare interface Option extends Vue { | |
142 | +export declare class Option extends Vue { | |
143 | 143 | /** |
144 | 144 | * 选项值,默认根据此属性值进行筛选,必填 |
145 | 145 | */ |
... | ... | @@ -157,7 +157,7 @@ export declare interface Option extends Vue { |
157 | 157 | disabled?: boolean; |
158 | 158 | } |
159 | 159 | |
160 | -export declare interface OptionGroup extends Vue { | |
160 | +export declare class OptionGroup extends Vue { | |
161 | 161 | /** |
162 | 162 | * 分组的组名 |
163 | 163 | * @default 空 | ... | ... |
types/sider.d.ts
types/slider.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare interface Slider extends Vue { | |
7 | +export declare class Slider extends Vue { | |
8 | 8 | /** |
9 | 9 | * 滑块选定的值,可以使用 v-model 双向绑定数据。普通模式下,数据格式为数字, |
10 | 10 | * 在双滑块模式下,数据格式为长度是2的数组,且每项都为数字, | ... | ... |
types/spin.d.ts
types/split.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare 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/steps.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue from 'vue'; |
6 | 6 | |
7 | -export declare 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 declare interface Steps extends Vue { |
26 | 26 | direction?: 'horizontal' | 'vertical'; |
27 | 27 | } |
28 | 28 | |
29 | -export declare interface StepsStep extends Vue { | |
29 | +export declare class StepsStep extends Vue { | |
30 | 30 | /** |
31 | 31 | * 步骤的状态,可选值为wait、process、finish、error,不设置时自动判断 |
32 | 32 | * @default process | ... | ... |
types/switch.d.ts
types/table.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode, CreateElement } from "vue"; |
6 | 6 | |
7 | -export declare interface Table extends Vue { | |
7 | +export declare class Table extends Vue { | |
8 | 8 | /** |
9 | 9 | * 显示的结构化数据,其中,字段 cellClassName 用于设置任意单元格的样式名称, |
10 | 10 | * 因此数据不能使用该字段,详见示例特定样式。 |
... | ... | @@ -210,7 +210,7 @@ export declare interface Table extends Vue { |
210 | 210 | }; |
211 | 211 | } |
212 | 212 | |
213 | -export declare interface TableColumn { | |
213 | +export declare class TableColumn { | |
214 | 214 | /** |
215 | 215 | * 列类型,可选值为 index、selection、expand、html |
216 | 216 | */ |
... | ... | @@ -332,7 +332,7 @@ export declare interface TableColumn { |
332 | 332 | children?: object[]; |
333 | 333 | } |
334 | 334 | |
335 | -export declare interface TableRenderCreateElementData { | |
335 | +export declare class TableRenderCreateElementData { | |
336 | 336 | /** |
337 | 337 | * 和`v-bind:class`一样的 API |
338 | 338 | */ |
... | ... | @@ -382,7 +382,7 @@ export declare interface TableRenderCreateElementData { |
382 | 382 | ref?: string; |
383 | 383 | } |
384 | 384 | |
385 | -export declare interface TableColumnRenderParams { | |
385 | +export declare class TableColumnRenderParams { | |
386 | 386 | /** |
387 | 387 | * 当前行数据 |
388 | 388 | */ |
... | ... | @@ -397,7 +397,7 @@ export declare interface TableColumnRenderParams { |
397 | 397 | index?: number; |
398 | 398 | } |
399 | 399 | |
400 | -export declare interface TableColumnRenderHeadParams { | |
400 | +export declare class TableColumnRenderHeadParams { | |
401 | 401 | /** |
402 | 402 | * 当前列数据 |
403 | 403 | */ |
... | ... | @@ -408,7 +408,7 @@ export declare interface TableColumnRenderHeadParams { |
408 | 408 | index?: number; |
409 | 409 | } |
410 | 410 | |
411 | -export declare interface TableExportCsvParams { | |
411 | +export declare class TableExportCsvParams { | |
412 | 412 | /** |
413 | 413 | * 文件名,默认为 table.csv |
414 | 414 | */ |
... | ... | @@ -432,7 +432,7 @@ export declare interface TableExportCsvParams { |
432 | 432 | /** |
433 | 433 | * 添加此函数后,不会下载,而是返回数据 |
434 | 434 | */ |
435 | - callback?: (data?: any) => void; | |
435 | + callback?: (data?: string) => void; | |
436 | 436 | /** |
437 | 437 | * 数据分隔符,默认是逗号(,) |
438 | 438 | * @default , | ... | ... |
types/tabs.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare interface Tabs extends Vue { | |
7 | +export declare class Tabs extends Vue { | |
8 | 8 | /** |
9 | 9 | * 当前激活 tab 面板的 name,可以使用 v-model 双向绑定数据 |
10 | 10 | * @default 默认为第一项的 name |
... | ... | @@ -62,7 +62,7 @@ export declare interface Tabs extends Vue { |
62 | 62 | }; |
63 | 63 | } |
64 | 64 | |
65 | -export declare interface TabPane extends Vue { | |
65 | +export declare class TabPane extends Vue { | |
66 | 66 | /** |
67 | 67 | * 用于标识当前面板,对应 value,默认为其索引值 |
68 | 68 | */ | ... | ... |
types/tag.d.ts
types/time-picker.d.ts
types/time.d.ts
types/timeline.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare interface Timeline extends Vue { | |
7 | +export declare class Timeline extends Vue { | |
8 | 8 | /** |
9 | 9 | * 指定是否最后一个节点为幽灵节点 |
10 | 10 | * @default false |
... | ... | @@ -12,7 +12,7 @@ export declare interface Timeline extends Vue { |
12 | 12 | pending?: boolean; |
13 | 13 | } |
14 | 14 | |
15 | -export declare interface TimelineItem extends Vue { | |
15 | +export declare class TimelineItem extends Vue { | |
16 | 16 | /** |
17 | 17 | * 圆圈颜色,可选值为blue、red、green,或自定义色值 |
18 | 18 | * @default blue | ... | ... |
types/tooltip.d.ts
types/transfer.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode } from 'vue'; |
6 | 6 | |
7 | -export declare interface Transfer extends Vue { | |
7 | +export declare class Transfer extends Vue { | |
8 | 8 | /** |
9 | 9 | * 数据源,其中的数据将会被渲染到左边一栏中,targetKeys 中指定的除外。 |
10 | 10 | * @default [] | ... | ... |
types/tree.d.ts
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | // Definitions: https://github.com/yangdan8/iview.git |
5 | 5 | import Vue, { VNode, CreateElement } from "vue"; |
6 | 6 | |
7 | -export declare interface Tree extends Vue { | |
7 | +export declare class Tree extends Vue { | |
8 | 8 | /** |
9 | 9 | * 可嵌套的节点属性的数组,生成 tree 的数据 |
10 | 10 | */ |
... | ... | @@ -77,7 +77,7 @@ export declare interface Tree extends Vue { |
77 | 77 | getCheckedAndIndeterminateNodes(): any[]; |
78 | 78 | } |
79 | 79 | |
80 | -export declare interface TreeChild extends Vue { | |
80 | +export declare class TreeChild extends Vue { | |
81 | 81 | /** |
82 | 82 | * 标题 |
83 | 83 | */ | ... | ... |
types/upload.d.ts