修复使用ts模式时不能按需引入组件的问题
This commit is contained in:
parent
9837e9af02
commit
539e96c58c
58 changed files with 92 additions and 92 deletions
2
types/affix.d.ts
vendored
2
types/affix.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare interface Affix extends Vue {
|
||||
export declare class Affix extends Vue {
|
||||
/**
|
||||
* 距离窗口顶部达到指定偏移量后触发
|
||||
* @default 0
|
||||
|
|
2
types/alert.d.ts
vendored
2
types/alert.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Alert extends Vue {
|
||||
export declare class Alert extends Vue {
|
||||
/**
|
||||
* 警告提示样式,可选值为info、success、warning、error
|
||||
* @default info
|
||||
|
|
4
types/anchor.d.ts
vendored
4
types/anchor.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare interface Anchor extends Vue {
|
||||
export declare class Anchor extends Vue {
|
||||
/**
|
||||
* 固定模式
|
||||
* @default true
|
||||
|
@ -48,7 +48,7 @@ export declare interface Anchor extends Vue {
|
|||
$emit(eventName: 'on-change', []): this;
|
||||
}
|
||||
|
||||
export declare interface AnchorLink extends Vue {
|
||||
export declare class AnchorLink extends Vue {
|
||||
/**
|
||||
* 锚点链接
|
||||
* @default
|
||||
|
|
2
types/auto-complete.d.ts
vendored
2
types/auto-complete.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface AutoComplete extends Vue {
|
||||
export declare class AutoComplete extends Vue {
|
||||
/**
|
||||
* 绑定的值,可使用 v-model 双向绑定
|
||||
*/
|
||||
|
|
2
types/avatar.d.ts
vendored
2
types/avatar.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare interface Avatar extends Vue {
|
||||
export declare class Avatar extends Vue {
|
||||
/**
|
||||
* 指定头像的形状,可选值为 circle、square
|
||||
* @default circle
|
||||
|
|
2
types/back-top.d.ts
vendored
2
types/back-top.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare interface BackTop extends Vue {
|
||||
export declare class BackTop extends Vue {
|
||||
/**
|
||||
* 页面滚动高度达到该值时才显示BackTop组件
|
||||
* @default 400
|
||||
|
|
2
types/badge.d.ts
vendored
2
types/badge.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare interface Badge extends Vue {
|
||||
export declare class Badge extends Vue {
|
||||
/**
|
||||
* 显示的数字,大于overflowCount时,显示${overflowCount}+,为 0 时隐藏
|
||||
*/
|
||||
|
|
4
types/breadcrumb.d.ts
vendored
4
types/breadcrumb.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Breadcrumb extends Vue {
|
||||
export declare class Breadcrumb extends Vue {
|
||||
/**
|
||||
* 自定义分隔符
|
||||
* @default /
|
||||
|
@ -12,7 +12,7 @@ export declare interface Breadcrumb extends Vue {
|
|||
separator?: string;
|
||||
}
|
||||
|
||||
export declare interface BreadcrumbItem extends Vue {
|
||||
export declare class BreadcrumbItem extends Vue {
|
||||
/**
|
||||
* 链接,不传则没有链接
|
||||
*/
|
||||
|
|
4
types/button.d.ts
vendored
4
types/button.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare interface Button extends Vue {
|
||||
export declare class Button extends Vue {
|
||||
/**
|
||||
* 按钮类型,可选值为 default、primary、dashed、text、info、success、warning、error或者不设置
|
||||
* @default default
|
||||
|
@ -73,7 +73,7 @@ export declare interface Button extends Vue {
|
|||
append?: boolean;
|
||||
}
|
||||
|
||||
export declare interface ButtonGroup extends Vue {
|
||||
export declare class ButtonGroup extends Vue {
|
||||
/**
|
||||
* 按钮组合大小,可选值为large、small、default或者不设置
|
||||
* @default default
|
||||
|
|
2
types/card.d.ts
vendored
2
types/card.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Card extends Vue {
|
||||
export declare class Card extends Vue {
|
||||
/**
|
||||
* 是否显示边框,建议在灰色背景下使用
|
||||
* @default true
|
||||
|
|
4
types/carousel.d.ts
vendored
4
types/carousel.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare interface Carousel extends Vue {
|
||||
export declare class Carousel extends Vue {
|
||||
/**
|
||||
* 幻灯片的索引,从 0 开始,可以使用 v-model 双向绑定数据
|
||||
* @default 0
|
||||
|
@ -60,6 +60,6 @@ export declare interface Carousel extends Vue {
|
|||
$emit(eventName: 'on-change', oldValue: number, value: number): this;
|
||||
}
|
||||
|
||||
export declare interface CarouselItem extends Vue {
|
||||
export declare class CarouselItem extends Vue {
|
||||
|
||||
}
|
2
types/cascader.d.ts
vendored
2
types/cascader.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare interface Cascader extends Vue {
|
||||
export declare class Cascader extends Vue {
|
||||
/**
|
||||
* 可选项的数据源,格式参照示例说明
|
||||
* @default []
|
||||
|
|
4
types/cell.d.ts
vendored
4
types/cell.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Cell extends Vue {
|
||||
export declare class Cell extends Vue {
|
||||
/**
|
||||
* 用来标识这一项
|
||||
*/
|
||||
|
@ -77,7 +77,7 @@ export declare interface Cell extends Vue {
|
|||
}
|
||||
}
|
||||
|
||||
export declare interface CellGroup extends Vue {
|
||||
export declare class CellGroup extends Vue {
|
||||
/**
|
||||
* 点击单元格时触发
|
||||
*
|
||||
|
|
4
types/checkbox.d.ts
vendored
4
types/checkbox.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Checkbox extends Vue {
|
||||
export declare class Checkbox extends Vue {
|
||||
/**
|
||||
* 只在单独使用时有效。可以使用 v-model 双向绑定数据
|
||||
* @default false
|
||||
|
@ -44,7 +44,7 @@ export declare interface Checkbox extends Vue {
|
|||
$emit(eventName: 'on-change', value: boolean): this;
|
||||
}
|
||||
|
||||
export declare interface CheckboxGroup extends Vue {
|
||||
export declare class CheckboxGroup extends Vue {
|
||||
/**
|
||||
* 指定选中项目的集合,可以使用 v-model 双向绑定数据
|
||||
* @default []
|
||||
|
|
2
types/circle.d.ts
vendored
2
types/circle.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Circle extends Vue {
|
||||
export declare class Circle extends Vue {
|
||||
/**
|
||||
* 百分比
|
||||
* @default 0
|
||||
|
|
4
types/collapse.d.ts
vendored
4
types/collapse.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Collapse extends Vue {
|
||||
export declare class Collapse extends Vue {
|
||||
/**
|
||||
* 当前激活的面板的 name,可以使用 v-model 双向绑定
|
||||
*/
|
||||
|
@ -26,7 +26,7 @@ export declare interface Collapse extends Vue {
|
|||
$emit(eventName: 'on-change', []): this;
|
||||
}
|
||||
|
||||
export declare interface CollapsePanel extends Vue {
|
||||
export declare class CollapsePanel extends Vue {
|
||||
/**
|
||||
* 当前面板的 name,与 Collapse的value对应,不填为索引值
|
||||
* @default index的值
|
||||
|
|
2
types/color-picker.d.ts
vendored
2
types/color-picker.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface ColorPicker extends Vue {
|
||||
export declare class ColorPicker extends Vue {
|
||||
/**
|
||||
* 绑定的值,可使用 v-model 双向绑定
|
||||
*/
|
||||
|
|
2
types/content.d.ts
vendored
2
types/content.d.ts
vendored
|
@ -4,5 +4,5 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare interface Content extends Vue {
|
||||
export declare class Content extends Vue {
|
||||
}
|
4
types/date-picker.d.ts
vendored
4
types/date-picker.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface DatePicker extends Vue {
|
||||
export declare class DatePicker extends Vue {
|
||||
/**
|
||||
* 显示类型,可选值为 date、daterange、datetime、datetimerange、year、month'|'默认值date
|
||||
*/
|
||||
|
@ -146,7 +146,7 @@ export declare interface DatePicker extends Vue {
|
|||
};
|
||||
}
|
||||
|
||||
export declare interface DatePickerOptions {
|
||||
export declare class DatePickerOptions {
|
||||
/**
|
||||
* 设置快捷选项,每项内容:
|
||||
* text:显示的文案
|
||||
|
|
2
types/divider.d.ts
vendored
2
types/divider.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare interface Divider extends Vue {
|
||||
export declare class Divider extends Vue {
|
||||
/**
|
||||
* 水平还是垂直类型,可选值为 horizontal 或 vertical
|
||||
* @default horizontal
|
||||
|
|
2
types/drawer.d.ts
vendored
2
types/drawer.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Drawer extends Vue {
|
||||
export declare class Drawer extends Vue {
|
||||
/**
|
||||
* 抽屉是否显示,可使用 v-model 双向绑定数据
|
||||
* @default false
|
||||
|
|
6
types/dropdown.d.ts
vendored
6
types/dropdown.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Dropdown extends Vue {
|
||||
export declare class Dropdown extends Vue {
|
||||
/**
|
||||
* 触发方式,可选值为 hover(悬停)click(点击)contextMenu(右键)custom(自定义),使用 custom 时,需配合 visible 一起使用
|
||||
* @default hover
|
||||
|
@ -65,10 +65,10 @@ export declare interface Dropdown extends Vue {
|
|||
};
|
||||
}
|
||||
|
||||
export declare interface DropdownMenu extends Vue {
|
||||
export declare class DropdownMenu extends Vue {
|
||||
}
|
||||
|
||||
export declare interface DropdownItem extends Vue {
|
||||
export declare class DropdownItem extends Vue {
|
||||
/**
|
||||
* 用来标识这一项
|
||||
*/
|
||||
|
|
2
types/footer.d.ts
vendored
2
types/footer.d.ts
vendored
|
@ -4,5 +4,5 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare interface Footer extends Vue {
|
||||
export declare class Footer extends Vue {
|
||||
}
|
4
types/form.d.ts
vendored
4
types/form.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Form extends Vue {
|
||||
export declare class Form extends Vue {
|
||||
/**
|
||||
* 表单数据对象
|
||||
*/
|
||||
|
@ -46,7 +46,7 @@ export declare interface Form extends Vue {
|
|||
resetFields(): void;
|
||||
}
|
||||
|
||||
export declare interface FormItem extends Vue {
|
||||
export declare class FormItem extends Vue {
|
||||
/**
|
||||
* 对应表单域 model 里的字段
|
||||
*/
|
||||
|
|
4
types/grid.d.ts
vendored
4
types/grid.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Row extends Vue {
|
||||
export declare class Row extends Vue {
|
||||
/**
|
||||
* 栅格间距,单位 px,左右平分
|
||||
* @default 0
|
||||
|
@ -28,7 +28,7 @@ export declare interface Row extends Vue {
|
|||
'class-name'?: string;
|
||||
}
|
||||
|
||||
export declare interface Col extends Vue {
|
||||
export declare class Col extends Vue {
|
||||
/**
|
||||
* 栅格的占位格数,可选值为0~24的整数,为 0 时,相当于display:none
|
||||
*/
|
||||
|
|
2
types/header.d.ts
vendored
2
types/header.d.ts
vendored
|
@ -4,5 +4,5 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare interface Header extends Vue {
|
||||
export declare class Header extends Vue {
|
||||
}
|
2
types/icon.d.ts
vendored
2
types/icon.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare interface Icon extends Vue {
|
||||
export declare class Icon extends Vue {
|
||||
/**
|
||||
* 图标的名称
|
||||
*/
|
||||
|
|
2
types/input-number.d.ts
vendored
2
types/input-number.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare interface InputNumber extends Vue {
|
||||
export declare class InputNumber extends Vue {
|
||||
/**
|
||||
* 最大值,默认值Infinity
|
||||
*/
|
||||
|
|
2
types/input.d.ts
vendored
2
types/input.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Input extends Vue {
|
||||
export declare class Input extends Vue {
|
||||
/**
|
||||
* 输入框类型,可选值为 text、password、textarea、url、email、date、number、tel
|
||||
* @default text
|
||||
|
|
2
types/layout.d.ts
vendored
2
types/layout.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Layout extends Vue {
|
||||
export declare class Layout extends Vue {
|
||||
/**
|
||||
* 触发响应式布局的断点,可选值为xs,sm,md,lg,xl或xxl,若不设此属性则不会触发响应式布局。
|
||||
* {
|
||||
|
|
4
types/loading-bar.d.ts
vendored
4
types/loading-bar.d.ts
vendored
|
@ -6,7 +6,7 @@ import Vue from 'vue';
|
|||
|
||||
export const LoadingBar: LoadingBarClass;
|
||||
|
||||
export declare interface LoadingBarClass {
|
||||
export declare class LoadingBarClass {
|
||||
/**
|
||||
* 开始从 0 显示进度条,并自动加载进度
|
||||
*/
|
||||
|
@ -35,7 +35,7 @@ export declare interface LoadingBarClass {
|
|||
destroy(): void;
|
||||
}
|
||||
|
||||
export declare interface LoadingBarConfig {
|
||||
export declare class LoadingBarConfig {
|
||||
/**
|
||||
* 进度条的颜色,默认为 iView 主色
|
||||
* @default primary
|
||||
|
|
8
types/menu.d.ts
vendored
8
types/menu.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Menu extends Vue {
|
||||
export declare class Menu extends Vue {
|
||||
/**
|
||||
* 菜单类型,可选值为 horizontal(水平) 和 vertical(垂直)
|
||||
* @default vertical
|
||||
|
@ -52,7 +52,7 @@ export declare interface Menu extends Vue {
|
|||
updateActiveName(): void;
|
||||
}
|
||||
|
||||
export declare interface MenuItem extends Vue {
|
||||
export declare class MenuItem extends Vue {
|
||||
/**
|
||||
* 菜单项的唯一标识,必填
|
||||
*/
|
||||
|
@ -78,7 +78,7 @@ export declare interface MenuItem extends Vue {
|
|||
append?: boolean;
|
||||
}
|
||||
|
||||
export declare interface MenuSub extends Vue {
|
||||
export declare class MenuSub extends Vue {
|
||||
/**
|
||||
* 子菜单的唯一标识,必填
|
||||
*/
|
||||
|
@ -98,7 +98,7 @@ export declare interface MenuSub extends Vue {
|
|||
};
|
||||
}
|
||||
|
||||
export declare interface MenuGroup extends Vue {
|
||||
export declare class MenuGroup extends Vue {
|
||||
/**
|
||||
* 分组标题
|
||||
* @default 空
|
||||
|
|
4
types/message.d.ts
vendored
4
types/message.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode, CreateElement } from "vue";
|
||||
|
||||
export declare interface Message {
|
||||
export declare class Message {
|
||||
/**
|
||||
* 消息
|
||||
* @param config MessageConfig为相关配置,string为待显示的内容
|
||||
|
@ -41,7 +41,7 @@ export declare interface Message {
|
|||
destroy(): void;
|
||||
}
|
||||
|
||||
export declare interface MessageConfig {
|
||||
export declare class MessageConfig {
|
||||
/**
|
||||
* 提示内容
|
||||
*/
|
||||
|
|
6
types/modal.d.ts
vendored
6
types/modal.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode, CreateElement } from "vue";
|
||||
|
||||
export declare interface Modal {
|
||||
export declare class Modal {
|
||||
/**
|
||||
* 对话框是否显示,可使用 v-model 双向绑定数据。
|
||||
* @default false
|
||||
|
@ -128,7 +128,7 @@ export declare interface Modal {
|
|||
};
|
||||
}
|
||||
|
||||
export declare interface ModalInstance {
|
||||
export declare class ModalInstance {
|
||||
/**
|
||||
* 消息
|
||||
* @param config ModalConfig为相关配置,string为待显示的内容
|
||||
|
@ -160,7 +160,7 @@ export declare interface ModalInstance {
|
|||
remove(): void;
|
||||
}
|
||||
|
||||
export declare interface ModalConfig {
|
||||
export declare class ModalConfig {
|
||||
/**
|
||||
* 标题或者Element选择器字符串
|
||||
*/
|
||||
|
|
6
types/notice.d.ts
vendored
6
types/notice.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode, CreateElement } from "vue";
|
||||
|
||||
export declare interface Notice {
|
||||
export declare class Notice {
|
||||
/**
|
||||
* 打开
|
||||
* @param config NoticeConfig为相关配置,string为待显示的内容
|
||||
|
@ -44,7 +44,7 @@ export declare interface Notice {
|
|||
destroy(): void;
|
||||
}
|
||||
|
||||
export declare interface NoticeConfig {
|
||||
export declare class NoticeConfig {
|
||||
/**
|
||||
* 通知提醒的标题
|
||||
*/
|
||||
|
@ -72,7 +72,7 @@ export declare interface NoticeConfig {
|
|||
onClose?: Function;
|
||||
}
|
||||
|
||||
export declare interface NoticeGlobalConfig {
|
||||
export declare class NoticeGlobalConfig {
|
||||
/**
|
||||
* 通知组件距离顶端的距离,单位像素 默认24
|
||||
*/
|
||||
|
|
2
types/page.d.ts
vendored
2
types/page.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Page extends Vue {
|
||||
export declare class Page extends Vue {
|
||||
/**
|
||||
* 当前页码,支持 .sync 修饰符
|
||||
* @default 1
|
||||
|
|
2
types/poptip.d.ts
vendored
2
types/poptip.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Poptip extends Vue {
|
||||
export declare class Poptip extends Vue {
|
||||
/**
|
||||
* 触发方式,可选值为hover(悬停)click(点击)focus(聚焦),
|
||||
* 在 confirm 模式下,只有 click 有效
|
||||
|
|
2
types/progress.d.ts
vendored
2
types/progress.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Progress extends Vue {
|
||||
export declare class Progress extends Vue {
|
||||
/**
|
||||
* 百分比
|
||||
* @default 0
|
||||
|
|
4
types/radio.d.ts
vendored
4
types/radio.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Radio extends Vue {
|
||||
export declare class Radio extends Vue {
|
||||
/**
|
||||
* 只在单独使用时有效。可以使用 v-model 双向绑定数据
|
||||
* @default false
|
||||
|
@ -39,7 +39,7 @@ export declare interface Radio extends Vue {
|
|||
$emit(eventName: 'on-change', arg: string | number | boolean): this;
|
||||
}
|
||||
|
||||
export declare interface RadioGroup extends Vue {
|
||||
export declare class RadioGroup extends Vue {
|
||||
/**
|
||||
* 指定当前选中的项目数据。可以使用 v-model 双向绑定数据
|
||||
*/
|
||||
|
|
2
types/rate.d.ts
vendored
2
types/rate.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Rate extends Vue {
|
||||
export declare class Rate extends Vue {
|
||||
/**
|
||||
* star总数
|
||||
* @default 5
|
||||
|
|
2
types/scroll.d.ts
vendored
2
types/scroll.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Scroll extends Vue {
|
||||
export declare class Scroll extends Vue {
|
||||
/**
|
||||
* 滚动区域的高度,单位像素
|
||||
* @default 300
|
||||
|
|
6
types/select.d.ts
vendored
6
types/select.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Select extends Vue {
|
||||
export declare class Select extends Vue {
|
||||
/**
|
||||
* 指定选中项目的 value 值,可以使用 v-model 双向绑定数据。
|
||||
* 单选时只接受 String 或 Number,多选时只接受 Array
|
||||
|
@ -139,7 +139,7 @@ export declare interface Select extends Vue {
|
|||
};
|
||||
}
|
||||
|
||||
export declare interface Option extends Vue {
|
||||
export declare class Option extends Vue {
|
||||
/**
|
||||
* 选项值,默认根据此属性值进行筛选,必填
|
||||
*/
|
||||
|
@ -157,7 +157,7 @@ export declare interface Option extends Vue {
|
|||
disabled?: boolean;
|
||||
}
|
||||
|
||||
export declare interface OptionGroup extends Vue {
|
||||
export declare class OptionGroup extends Vue {
|
||||
/**
|
||||
* 分组的组名
|
||||
* @default 空
|
||||
|
|
2
types/sider.d.ts
vendored
2
types/sider.d.ts
vendored
|
@ -4,5 +4,5 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Sider extends Vue {
|
||||
export declare class Sider extends Vue {
|
||||
}
|
2
types/slider.d.ts
vendored
2
types/slider.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Slider extends Vue {
|
||||
export declare class Slider extends Vue {
|
||||
/**
|
||||
* 滑块选定的值,可以使用 v-model 双向绑定数据。普通模式下,数据格式为数字,
|
||||
* 在双滑块模式下,数据格式为长度是2的数组,且每项都为数字,
|
||||
|
|
2
types/spin.d.ts
vendored
2
types/spin.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Spin extends Vue {
|
||||
export declare class Spin extends Vue {
|
||||
/**
|
||||
* Spin尺寸,可选值为large和small或者不设置
|
||||
*/
|
||||
|
|
2
types/split.d.ts
vendored
2
types/split.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Split extends Vue {
|
||||
export declare class Split extends Vue {
|
||||
/**
|
||||
* 面板位置,可以是 0~1 代表百分比,或具体数值的像素,可用 v-model 双向绑定
|
||||
* @default 0.5
|
||||
|
|
4
types/steps.d.ts
vendored
4
types/steps.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare interface Steps extends Vue {
|
||||
export declare class Steps extends Vue {
|
||||
/**
|
||||
* 当前步骤,从 0 开始计数
|
||||
* @default 0
|
||||
|
@ -26,7 +26,7 @@ export declare interface Steps extends Vue {
|
|||
direction?: 'horizontal' | 'vertical';
|
||||
}
|
||||
|
||||
export declare interface StepsStep extends Vue {
|
||||
export declare class StepsStep extends Vue {
|
||||
/**
|
||||
* 步骤的状态,可选值为wait、process、finish、error,不设置时自动判断
|
||||
* @default process
|
||||
|
|
2
types/switch.d.ts
vendored
2
types/switch.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Switch extends Vue {
|
||||
export declare class Switch extends Vue {
|
||||
/**
|
||||
* 指定当前是否选中,可以使用 v-model 双向绑定数据
|
||||
* @default false
|
||||
|
|
14
types/table.d.ts
vendored
14
types/table.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode, CreateElement } from "vue";
|
||||
|
||||
export declare interface Table extends Vue {
|
||||
export declare class Table extends Vue {
|
||||
/**
|
||||
* 显示的结构化数据,其中,字段 cellClassName 用于设置任意单元格的样式名称,
|
||||
* 因此数据不能使用该字段,详见示例特定样式。
|
||||
|
@ -210,7 +210,7 @@ export declare interface Table extends Vue {
|
|||
};
|
||||
}
|
||||
|
||||
export declare interface TableColumn {
|
||||
export declare class TableColumn {
|
||||
/**
|
||||
* 列类型,可选值为 index、selection、expand、html
|
||||
*/
|
||||
|
@ -332,7 +332,7 @@ export declare interface TableColumn {
|
|||
children?: object[];
|
||||
}
|
||||
|
||||
export declare interface TableRenderCreateElementData {
|
||||
export declare class TableRenderCreateElementData {
|
||||
/**
|
||||
* 和`v-bind:class`一样的 API
|
||||
*/
|
||||
|
@ -382,7 +382,7 @@ export declare interface TableRenderCreateElementData {
|
|||
ref?: string;
|
||||
}
|
||||
|
||||
export declare interface TableColumnRenderParams {
|
||||
export declare class TableColumnRenderParams {
|
||||
/**
|
||||
* 当前行数据
|
||||
*/
|
||||
|
@ -397,7 +397,7 @@ export declare interface TableColumnRenderParams {
|
|||
index?: number;
|
||||
}
|
||||
|
||||
export declare interface TableColumnRenderHeadParams {
|
||||
export declare class TableColumnRenderHeadParams {
|
||||
/**
|
||||
* 当前列数据
|
||||
*/
|
||||
|
@ -408,7 +408,7 @@ export declare interface TableColumnRenderHeadParams {
|
|||
index?: number;
|
||||
}
|
||||
|
||||
export declare interface TableExportCsvParams {
|
||||
export declare class TableExportCsvParams {
|
||||
/**
|
||||
* 文件名,默认为 table.csv
|
||||
*/
|
||||
|
@ -432,7 +432,7 @@ export declare interface TableExportCsvParams {
|
|||
/**
|
||||
* 添加此函数后,不会下载,而是返回数据
|
||||
*/
|
||||
callback?: (data?: any) => void;
|
||||
callback?: (data?: string) => void;
|
||||
/**
|
||||
* 数据分隔符,默认是逗号(,)
|
||||
* @default ,
|
||||
|
|
4
types/tabs.d.ts
vendored
4
types/tabs.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Tabs extends Vue {
|
||||
export declare class Tabs extends Vue {
|
||||
/**
|
||||
* 当前激活 tab 面板的 name,可以使用 v-model 双向绑定数据
|
||||
* @default 默认为第一项的 name
|
||||
|
@ -62,7 +62,7 @@ export declare interface Tabs extends Vue {
|
|||
};
|
||||
}
|
||||
|
||||
export declare interface TabPane extends Vue {
|
||||
export declare class TabPane extends Vue {
|
||||
/**
|
||||
* 用于标识当前面板,对应 value,默认为其索引值
|
||||
*/
|
||||
|
|
2
types/tag.d.ts
vendored
2
types/tag.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Tag extends Vue {
|
||||
export declare class Tag extends Vue {
|
||||
/**
|
||||
* 标签是否可以关闭
|
||||
* @default false
|
||||
|
|
2
types/time-picker.d.ts
vendored
2
types/time-picker.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface TimePicker extends Vue {
|
||||
export declare class TimePicker extends Vue {
|
||||
/**
|
||||
* 显示类型,可选值为 time、timerange
|
||||
* @default time
|
||||
|
|
2
types/time.d.ts
vendored
2
types/time.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare interface Time extends Vue {
|
||||
export declare class Time extends Vue {
|
||||
/**
|
||||
* 需要对比的时间,可以是时间戳或 Date 类型
|
||||
*/
|
||||
|
|
4
types/timeline.d.ts
vendored
4
types/timeline.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Timeline extends Vue {
|
||||
export declare class Timeline extends Vue {
|
||||
/**
|
||||
* 指定是否最后一个节点为幽灵节点
|
||||
* @default false
|
||||
|
@ -12,7 +12,7 @@ export declare interface Timeline extends Vue {
|
|||
pending?: boolean;
|
||||
}
|
||||
|
||||
export declare interface TimelineItem extends Vue {
|
||||
export declare class TimelineItem extends Vue {
|
||||
/**
|
||||
* 圆圈颜色,可选值为blue、red、green,或自定义色值
|
||||
* @default blue
|
||||
|
|
2
types/tooltip.d.ts
vendored
2
types/tooltip.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Tooltip extends Vue {
|
||||
export declare class Tooltip extends Vue {
|
||||
/**
|
||||
* 显示的内容
|
||||
* @default 空
|
||||
|
|
2
types/transfer.d.ts
vendored
2
types/transfer.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Transfer extends Vue {
|
||||
export declare class Transfer extends Vue {
|
||||
/**
|
||||
* 数据源,其中的数据将会被渲染到左边一栏中,targetKeys 中指定的除外。
|
||||
* @default []
|
||||
|
|
4
types/tree.d.ts
vendored
4
types/tree.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode, CreateElement } from "vue";
|
||||
|
||||
export declare interface Tree extends Vue {
|
||||
export declare class Tree extends Vue {
|
||||
/**
|
||||
* 可嵌套的节点属性的数组,生成 tree 的数据
|
||||
*/
|
||||
|
@ -77,7 +77,7 @@ export declare interface Tree extends Vue {
|
|||
getCheckedAndIndeterminateNodes(): any[];
|
||||
}
|
||||
|
||||
export declare interface TreeChild extends Vue {
|
||||
export declare class TreeChild extends Vue {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
|
|
2
types/upload.d.ts
vendored
2
types/upload.d.ts
vendored
|
@ -4,7 +4,7 @@
|
|||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare interface Upload extends Vue {
|
||||
export declare class Upload extends Vue {
|
||||
/**
|
||||
* 上传的地址,必填
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue