diff --git a/types/affix.d.ts b/types/affix.d.ts index f812e71..881551c 100644 --- a/types/affix.d.ts +++ b/types/affix.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/alert.d.ts b/types/alert.d.ts index fe533cd..b2a8819 100644 --- a/types/alert.d.ts +++ b/types/alert.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/anchor.d.ts b/types/anchor.d.ts index be1320e..049d99f 100644 --- a/types/anchor.d.ts +++ b/types/anchor.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/auto-complete.d.ts b/types/auto-complete.d.ts index fd647ef..72953c2 100644 --- a/types/auto-complete.d.ts +++ b/types/auto-complete.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git @@ -72,4 +72,8 @@ export declare interface AutoComplete extends Vue { * 搜索补全项的时候调用 */ $emit(eventName: 'on-blur', event: KeyboardEvent): this; + /** + * 清空时触发 + */ + $emit(eventName: 'on-clear'): this; } diff --git a/types/avatar.d.ts b/types/avatar.d.ts index 14c2176..8532e5f 100644 --- a/types/avatar.d.ts +++ b/types/avatar.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git @@ -27,4 +27,8 @@ export declare interface Avatar extends Vue { * 自定义图标 */ 'custom-icon'?: string; + /** + * 在设置 src 且图片加载不成功时触发 + */ + $emit(eventName: 'on-error', event: Event): this; } \ No newline at end of file diff --git a/types/back-top.d.ts b/types/back-top.d.ts index 5bfc548..d190c53 100644 --- a/types/back-top.d.ts +++ b/types/back-top.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/badge.d.ts b/types/badge.d.ts index 46ac4b2..8197c95 100644 --- a/types/badge.d.ts +++ b/types/badge.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/breadcrumb.d.ts b/types/breadcrumb.d.ts index 8106024..d064419 100644 --- a/types/breadcrumb.d.ts +++ b/types/breadcrumb.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/button.d.ts b/types/button.d.ts index 6034697..810bdd9 100644 --- a/types/button.d.ts +++ b/types/button.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/card.d.ts b/types/card.d.ts index d7d1d31..75936c0 100644 --- a/types/card.d.ts +++ b/types/card.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/carousel.d.ts b/types/carousel.d.ts index 1746553..1044982 100644 --- a/types/carousel.d.ts +++ b/types/carousel.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/cascader.d.ts b/types/cascader.d.ts index 0967678..b9925b3 100644 --- a/types/cascader.d.ts +++ b/types/cascader.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/cell.d.ts b/types/cell.d.ts index ca9e179..e7a5971 100644 --- a/types/cell.d.ts +++ b/types/cell.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/checkbox.d.ts b/types/checkbox.d.ts index 65679bd..041cec6 100644 --- a/types/checkbox.d.ts +++ b/types/checkbox.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/circle.d.ts b/types/circle.d.ts index 2add049..2bd9fbe 100644 --- a/types/circle.d.ts +++ b/types/circle.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/collapse.d.ts b/types/collapse.d.ts index 3856b02..5d58242 100644 --- a/types/collapse.d.ts +++ b/types/collapse.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/color-picker.d.ts b/types/color-picker.d.ts index e7bf76d..77a9dca 100644 --- a/types/color-picker.d.ts +++ b/types/color-picker.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/content.d.ts b/types/content.d.ts index bed131b..c34cebc 100644 --- a/types/content.d.ts +++ b/types/content.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/date-picker.d.ts b/types/date-picker.d.ts index 4912086..cbc4b1c 100644 --- a/types/date-picker.d.ts +++ b/types/date-picker.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git @@ -112,6 +112,10 @@ export declare interface DatePicker extends Vue { */ 'time-picker-options'?: object; /** + * 两个日期间的分隔符 + */ + 'separator'?: string; + /** * 日期发生变化时触发 已经格式化后的日期,比如 2016-01-01 */ $emit(eventName: 'on-change', value: string): this; diff --git a/types/divider.d.ts b/types/divider.d.ts index 8a7899a..7431f36 100644 --- a/types/divider.d.ts +++ b/types/divider.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git @@ -20,4 +20,9 @@ export declare interface Divider extends Vue { * @default false */ dashed?: boolean; + /** + * 尺寸,可选值为 small 或 default + * @default default + */ + size?: string; } \ No newline at end of file diff --git a/types/drawer.d.ts b/types/drawer.d.ts index 3b5c512..6c209b6 100644 --- a/types/drawer.d.ts +++ b/types/drawer.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git @@ -68,6 +68,15 @@ export declare interface Drawer extends Vue { */ 'inner'?: boolean; /** + * 是否开启拖拽调整宽度 + * @default false + */ + 'draggable'?: boolean; + /** + * 返回 Promise 可以阻止关闭 + */ + 'before-close'?: () => void | PromiseConstructor; + /** * 关闭抽屉时触发 */ $emit(eventName: 'on-close'): this; @@ -76,6 +85,10 @@ export declare interface Drawer extends Vue { */ $emit(eventName: 'on-visible-change', value: boolean): this; /** + * 调整宽度时触发,返回宽度 + */ + $emit(eventName: 'on-resize-width'): number; + /** * slot插槽对象 */ $slots: { @@ -91,5 +104,9 @@ export declare interface Drawer extends Vue { * 抽屉主体内容 */ close: VNode[]; + /** + * 自定义调整宽度节点 + */ + trigger: VNode[]; }; } diff --git a/types/dropdown.d.ts b/types/dropdown.d.ts index dc8aa33..b35b99e 100644 --- a/types/dropdown.d.ts +++ b/types/dropdown.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git @@ -29,6 +29,10 @@ export declare interface Dropdown extends Vue { */ transfer?: boolean; /** + * 开启 transfer 时,给浮层添加额外的 class 名称 + */ + 'transfer-class-name'?: string; + /** * 点击菜单项时触发 * */ diff --git a/types/footer.d.ts b/types/footer.d.ts index bffbe03..4f3fafc 100644 --- a/types/footer.d.ts +++ b/types/footer.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/form.d.ts b/types/form.d.ts index bc88225..acf1fe5 100644 --- a/types/form.d.ts +++ b/types/form.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/grid.d.ts b/types/grid.d.ts index cfcac4c..b7731ed 100644 --- a/types/grid.d.ts +++ b/types/grid.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/header.d.ts b/types/header.d.ts index 8b87bdf..b6e14e0 100644 --- a/types/header.d.ts +++ b/types/header.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/icon.d.ts b/types/icon.d.ts index c695494..8e9dfae 100644 --- a/types/icon.d.ts +++ b/types/icon.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/index.d.ts b/types/index.d.ts index d5af1ac..cf004b3 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/input-number.d.ts b/types/input-number.d.ts index 745bc35..9178058 100644 --- a/types/input-number.d.ts +++ b/types/input-number.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/input.d.ts b/types/input.d.ts index bd7b2b5..7b4241a 100644 --- a/types/input.d.ts +++ b/types/input.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/iview.components.d.ts b/types/iview.components.d.ts index db21499..4fb03ee 100644 --- a/types/iview.components.d.ts +++ b/types/iview.components.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/layout.d.ts b/types/layout.d.ts index 36eb9a5..9e8a866 100644 --- a/types/layout.d.ts +++ b/types/layout.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git @@ -8,11 +8,12 @@ export declare interface Layout extends Vue { /** * 触发响应式布局的断点,可选值为xs,sm,md,lg,xl或xxl,若不设此属性则不会触发响应式布局。 * { - * xs?: '480px', - * sm?: '768px', - * md?: '992px', - * lg?: '1200px', - * xl?: '1600px' + * xs: '480px', + * sm: '576px', + * md: '768px', + * lg: '992px', + * xl: '1200px', + * xxl: '1600px' * } */ breakpoint?: string; @@ -69,4 +70,4 @@ export declare interface Layout extends Vue { * methods, 改变Sider展开-收起状态。 */ toggleCollapse(): void; -} \ No newline at end of file +}更多· \ No newline at end of file diff --git a/types/loading-bar.d.ts b/types/loading-bar.d.ts index 2d70200..d66d2d5 100644 --- a/types/loading-bar.d.ts +++ b/types/loading-bar.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/menu.d.ts b/types/menu.d.ts index 03aed4f..0e03598 100644 --- a/types/menu.d.ts +++ b/types/menu.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/message.d.ts b/types/message.d.ts index c209b2c..5675033 100644 --- a/types/message.d.ts +++ b/types/message.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/modal.d.ts b/types/modal.d.ts index be4ee69..e3900dc 100644 --- a/types/modal.d.ts +++ b/types/modal.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/notice.d.ts b/types/notice.d.ts index e1cae5c..edabec8 100644 --- a/types/notice.d.ts +++ b/types/notice.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/page.d.ts b/types/page.d.ts index 99bd229..8a832bd 100644 --- a/types/page.d.ts +++ b/types/page.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/poptip.d.ts b/types/poptip.d.ts index 95a9037..0dee6d3 100644 --- a/types/poptip.d.ts +++ b/types/poptip.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/progress.d.ts b/types/progress.d.ts index 7662ded..789b2e8 100644 --- a/types/progress.d.ts +++ b/types/progress.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git @@ -36,6 +36,10 @@ export declare interface Progress extends Vue { */ 'success-percent'?: number; /** + * 进度条的颜色 + */ + 'stroke-color'?: string; + /** * slot插槽对象 */ $slots: { diff --git a/types/radio.d.ts b/types/radio.d.ts index b672b97..9047227 100644 --- a/types/radio.d.ts +++ b/types/radio.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/rate.d.ts b/types/rate.d.ts index cc76d4a..9a826b5 100644 --- a/types/rate.d.ts +++ b/types/rate.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/scroll.d.ts b/types/scroll.d.ts index 1e6cc45..522e978 100644 --- a/types/scroll.d.ts +++ b/types/scroll.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/select.d.ts b/types/select.d.ts index e6b06c7..5b2c981 100644 --- a/types/select.d.ts +++ b/types/select.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git @@ -89,6 +89,10 @@ export declare interface Select extends Vue { */ 'element-id'?: string; /** + * 开启 transfer 时,给浮层添加额外的 class 名称 + */ + 'transfer-class-name'?: string; + /** * 选中的Option变化时触发,默认返回 value,如需返回 label,详见 label-in-value 属性 当前选中项 */ $emit(eventName: 'on-change'): this; diff --git a/types/sider.d.ts b/types/sider.d.ts index ea2152c..1127606 100644 --- a/types/sider.d.ts +++ b/types/sider.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/slider.d.ts b/types/slider.d.ts index 457ca70..8366459 100644 --- a/types/slider.d.ts +++ b/types/slider.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/spin.d.ts b/types/spin.d.ts index d363bb8..67d3481 100644 --- a/types/spin.d.ts +++ b/types/spin.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/split.d.ts b/types/split.d.ts index 8d503ef..b01679e 100644 --- a/types/split.d.ts +++ b/types/split.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/steps.d.ts b/types/steps.d.ts index c16ba66..13ff1b8 100644 --- a/types/steps.d.ts +++ b/types/steps.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/switch.d.ts b/types/switch.d.ts index f8d4e2c..8b0856d 100644 --- a/types/switch.d.ts +++ b/types/switch.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/table.d.ts b/types/table.d.ts index ab4f767..828c568 100644 --- a/types/table.d.ts +++ b/types/table.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git @@ -76,6 +76,16 @@ export declare interface Table extends Vue { */ "no-filtered-data-text"?: string; /** + * 是否开启拖拽调整行顺序,需配合 @on-drag-drop 事件使用 + * @default false + */ + "draggable"?: boolean; + /** + * 列使用 tooltip 时,配置它的主题,可选值为 dark 或 light + * @default dark + */ + "tooltip-theme"?: string; + /** * 开启 highlight-row 后有效,当表格的当前行发生变化的时候会触发 * currentRow:当前高亮行的数据 * oldCurrentRow:上一次高亮的数据 @@ -155,6 +165,12 @@ export declare interface Table extends Vue { */ $emit(eventName: "on-expand", row: object, status: string): this; /** + * 拖拽排序松开时触发,返回置换的两行数据索引 + * index1 + * index2 + */ + $emit(eventName: "on-drag-drop", index1: number, index2: number): this; + /** * 导出数据 */ exportCsv(params: TableExportCsvParams): void; diff --git a/types/tabs.d.ts b/types/tabs.d.ts index a7eebaa..76a4959 100644 --- a/types/tabs.d.ts +++ b/types/tabs.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/tag.d.ts b/types/tag.d.ts index 18eb2a1..694420c 100644 --- a/types/tag.d.ts +++ b/types/tag.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/time-picker.d.ts b/types/time-picker.d.ts index e02d617..09514ba 100644 --- a/types/time-picker.d.ts +++ b/types/time-picker.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/time.ts b/types/time.ts index 1f6f85f..30a9160 100644 --- a/types/time.ts +++ b/types/time.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/timeline.d.ts b/types/timeline.d.ts index d38f9ff..fed4e59 100644 --- a/types/timeline.d.ts +++ b/types/timeline.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/tooltip.d.ts b/types/tooltip.d.ts index 02c330b..e58ff4c 100644 --- a/types/tooltip.d.ts +++ b/types/tooltip.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/transfer.d.ts b/types/transfer.d.ts index a9945aa..8bc2e4e 100644 --- a/types/transfer.d.ts +++ b/types/transfer.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git diff --git a/types/tree.d.ts b/types/tree.d.ts index 61f399b..d358556 100644 --- a/types/tree.d.ts +++ b/types/tree.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git @@ -44,6 +44,11 @@ export declare interface Tree extends Vue { */ "check-strictly"?: boolean; /** + * 开启后,在 show-checkbox 模式下,select 的交互也将转为 check + * @default false + */ + "check-directly"?: boolean; + /** * 点击树节点时触发 * @default 当前已勾选节点的数组、当前项 */ diff --git a/types/upload.d.ts b/types/upload.d.ts index 465ce3f..70e3f02 100644 --- a/types/upload.d.ts +++ b/types/upload.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iview 3.1.0 +// Type definitions for iview 3.3.0 // Project: https://github.com/iview/iview // Definitions by: yangdan // Definitions: https://github.com/yangdan8/iview.git @@ -25,6 +25,11 @@ export declare interface Upload extends Vue { */ paste?: boolean; /** + * 是否禁用 + * @default false + */ + disabled?: boolean; + /** * 上传时附带的额外参数 */ data?: object; -- libgit2 0.21.4