Commit 0b86461fb528205864f88947c3ffbc6957802e0a

Authored by Aresn
Committed by GitHub
2 parents a3d60e12 6d845889

Merge pull request #5406 from yangdan8/2.0_更新d.ts到3.3.0

2.0 更新d.ts到3.3.0
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
types/auto-complete.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
@@ -72,4 +72,8 @@ export declare interface AutoComplete extends Vue { @@ -72,4 +72,8 @@ export declare interface AutoComplete extends Vue {
72 * 搜索补全项的时候调用 72 * 搜索补全项的时候调用
73 */ 73 */
74 $emit(eventName: 'on-blur', event: KeyboardEvent): this; 74 $emit(eventName: 'on-blur', event: KeyboardEvent): this;
  75 + /**
  76 + * 清空时触发
  77 + */
  78 + $emit(eventName: 'on-clear'): this;
75 } 79 }
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
@@ -27,4 +27,8 @@ export declare interface Avatar extends Vue { @@ -27,4 +27,8 @@ export declare interface Avatar extends Vue {
27 * 自定义图标 27 * 自定义图标
28 */ 28 */
29 'custom-icon'?: string; 29 'custom-icon'?: string;
  30 + /**
  31 + * 在设置 src 且图片加载不成功时触发
  32 + */
  33 + $emit(eventName: 'on-error', event: Event): this;
30 } 34 }
31 \ No newline at end of file 35 \ No newline at end of file
types/back-top.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
types/breadcrumb.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
types/carousel.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
types/cascader.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
types/checkbox.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
types/collapse.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
types/color-picker.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
types/content.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
types/date-picker.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
@@ -112,6 +112,10 @@ export declare interface DatePicker extends Vue { @@ -112,6 +112,10 @@ export declare interface DatePicker extends Vue {
112 */ 112 */
113 'time-picker-options'?: object; 113 'time-picker-options'?: object;
114 /** 114 /**
  115 + * 两个日期间的分隔符
  116 + */
  117 + 'separator'?: string;
  118 + /**
115 * 日期发生变化时触发 已经格式化后的日期,比如 2016-01-01 119 * 日期发生变化时触发 已经格式化后的日期,比如 2016-01-01
116 */ 120 */
117 $emit(eventName: 'on-change', value: string): this; 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 // 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
@@ -20,4 +20,9 @@ export declare interface Divider extends Vue { @@ -20,4 +20,9 @@ export declare interface Divider extends Vue {
20 * @default false 20 * @default false
21 */ 21 */
22 dashed?: boolean; 22 dashed?: boolean;
  23 + /**
  24 + * 尺寸,可选值为 small 或 default
  25 + * @default default
  26 + */
  27 + size?: string;
23 } 28 }
24 \ No newline at end of file 29 \ No newline at end of file
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
@@ -68,6 +68,15 @@ export declare interface Drawer extends Vue { @@ -68,6 +68,15 @@ export declare interface Drawer extends Vue {
68 */ 68 */
69 'inner'?: boolean; 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 $emit(eventName: 'on-close'): this; 82 $emit(eventName: 'on-close'): this;
@@ -76,6 +85,10 @@ export declare interface Drawer extends Vue { @@ -76,6 +85,10 @@ export declare interface Drawer extends Vue {
76 */ 85 */
77 $emit(eventName: 'on-visible-change', value: boolean): this; 86 $emit(eventName: 'on-visible-change', value: boolean): this;
78 /** 87 /**
  88 + * 调整宽度时触发,返回宽度
  89 + */
  90 + $emit(eventName: 'on-resize-width'): number;
  91 + /**
79 * slot插槽对象 92 * slot插槽对象
80 */ 93 */
81 $slots: { 94 $slots: {
@@ -91,5 +104,9 @@ export declare interface Drawer extends Vue { @@ -91,5 +104,9 @@ export declare interface Drawer extends Vue {
91 * 抽屉主体内容 104 * 抽屉主体内容
92 */ 105 */
93 close: VNode[]; 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 // 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
@@ -29,6 +29,10 @@ export declare interface Dropdown extends Vue { @@ -29,6 +29,10 @@ export declare interface Dropdown extends Vue {
29 */ 29 */
30 transfer?: boolean; 30 transfer?: boolean;
31 /** 31 /**
  32 + * 开启 transfer 时,给浮层添加额外的 class 名称
  33 + */
  34 + 'transfer-class-name'?: string;
  35 + /**
32 * 点击菜单项时触发 36 * 点击菜单项时触发
33 * 37 *
34 */ 38 */
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
types/input-number.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
types/iview.components.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
@@ -8,11 +8,12 @@ export declare interface Layout extends Vue { @@ -8,11 +8,12 @@ export declare interface Layout extends Vue {
8 /** 8 /**
9 * 触发响应式布局的断点,可选值为xs,sm,md,lg,xl或xxl,若不设此属性则不会触发响应式布局。 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 breakpoint?: string; 19 breakpoint?: string;
@@ -69,4 +70,4 @@ export declare interface Layout extends Vue { @@ -69,4 +70,4 @@ export declare interface Layout extends Vue {
69 * methods, 改变Sider展开-收起状态。 70 * methods, 改变Sider展开-收起状态。
70 */ 71 */
71 toggleCollapse(): void; 72 toggleCollapse(): void;
72 -}  
73 \ No newline at end of file 73 \ No newline at end of file
  74 +}更多·
74 \ No newline at end of file 75 \ No newline at end of file
types/loading-bar.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
types/message.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
types/progress.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
@@ -36,6 +36,10 @@ export declare interface Progress extends Vue { @@ -36,6 +36,10 @@ export declare interface Progress extends Vue {
36 */ 36 */
37 'success-percent'?: number; 37 'success-percent'?: number;
38 /** 38 /**
  39 + * 进度条的颜色
  40 + */
  41 + 'stroke-color'?: string;
  42 + /**
39 * slot插槽对象 43 * slot插槽对象
40 */ 44 */
41 $slots: { 45 $slots: {
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
@@ -89,6 +89,10 @@ export declare interface Select extends Vue { @@ -89,6 +89,10 @@ export declare interface Select extends Vue {
89 */ 89 */
90 'element-id'?: string; 90 'element-id'?: string;
91 /** 91 /**
  92 + * 开启 transfer 时,给浮层添加额外的 class 名称
  93 + */
  94 + 'transfer-class-name'?: string;
  95 + /**
92 * 选中的Option变化时触发,默认返回 value,如需返回 label,详见 label-in-value 属性 当前选中项 96 * 选中的Option变化时触发,默认返回 value,如需返回 label,详见 label-in-value 属性 当前选中项
93 */ 97 */
94 $emit(eventName: 'on-change'): this; 98 $emit(eventName: 'on-change'): this;
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
@@ -76,6 +76,16 @@ export declare interface Table extends Vue { @@ -76,6 +76,16 @@ export declare interface Table extends Vue {
76 */ 76 */
77 "no-filtered-data-text"?: string; 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 * 开启 highlight-row 后有效,当表格的当前行发生变化的时候会触发 89 * 开启 highlight-row 后有效,当表格的当前行发生变化的时候会触发
80 * currentRow:当前高亮行的数据 90 * currentRow:当前高亮行的数据
81 * oldCurrentRow:上一次高亮的数据 91 * oldCurrentRow:上一次高亮的数据
@@ -155,6 +165,12 @@ export declare interface Table extends Vue { @@ -155,6 +165,12 @@ export declare interface Table extends Vue {
155 */ 165 */
156 $emit(eventName: "on-expand", row: object, status: string): this; 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 exportCsv(params: TableExportCsvParams): void; 176 exportCsv(params: TableExportCsvParams): void;
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
types/time-picker.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
types/timeline.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
types/tooltip.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
types/transfer.d.ts
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
@@ -44,6 +44,11 @@ export declare interface Tree extends Vue { @@ -44,6 +44,11 @@ export declare interface Tree extends Vue {
44 */ 44 */
45 "check-strictly"?: boolean; 45 "check-strictly"?: boolean;
46 /** 46 /**
  47 + * 开启后,在 show-checkbox 模式下,select 的交互也将转为 check
  48 + * @default false
  49 + */
  50 + "check-directly"?: boolean;
  51 + /**
47 * 点击树节点时触发 52 * 点击树节点时触发
48 * @default 当前已勾选节点的数组、当前项 53 * @default 当前已勾选节点的数组、当前项
49 */ 54 */
1 -// Type definitions for iview 3.1.0 1 +// Type definitions for iview 3.3.0
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
@@ -25,6 +25,11 @@ export declare interface Upload extends Vue { @@ -25,6 +25,11 @@ export declare interface Upload extends Vue {
25 */ 25 */
26 paste?: boolean; 26 paste?: boolean;
27 /** 27 /**
  28 + * 是否禁用
  29 + * @default false
  30 + */
  31 + disabled?: boolean;
  32 + /**
28 * 上传时附带的额外参数 33 * 上传时附带的额外参数
29 */ 34 */
30 data?: object; 35 data?: object;