Merge remote-tracking branch 'iview/2.0' into 2.0

This commit is contained in:
jilen 2020-02-13 17:52:42 +08:00
commit 82f2344b2a
268 changed files with 8115 additions and 24590 deletions

View file

@ -1,18 +1,14 @@
<!--
注意:关于用法、咨询等问题,请到 iView Developer 提问:
https://dev.iviewui.com
<!--
Bug 反馈、新功能请求,请到下面提交 issues
https://www.iviewui.com/new-issue
http://iview.talkingdata.com/#/new-issue
不是用上面的链接创建的 issue 会被立即关闭。
-->
<!--
IMPORTANT: Please use the following link to create a new issue:
https://www.iviewui.com/new-issue
http://iview.talkingdata.com/#/new-issue
If your issue was not created using the app above, it will be closed immediately.
-->

45
.gitignore vendored
View file

@ -1,22 +1,23 @@
*.iml
.idea
.ipr
.iws
*.diff
*.patch
*.bak
.DS_Store
node_modules/
node_modules2/
.project
.settings
npm-debug.log
.*proj
.svn/
*.swp
*.swo
*.log
examples/dist/
yarn-error.log
test/unit/coverage
.vscode
*.iml
.idea
.ipr
.iws
*.diff
*.patch
*.bak
.DS_Store
node_modules/
node_modules2/
.project
.settings
npm-debug.log
.*proj
.svn/
*.swp
*.swo
*.log
examples/dist/
yarn-error.log
test/unit/coverage
.vscode
package-lock.json

View file

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2016-present iView
Copyright (c) 2016-present TalkingData
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View file

@ -1,5 +1,5 @@
<p align="center">
<a href="https://www.iviewui.com">
<a href="http://iview.talkingdata.com/">
<img width="200" src="https://file.iviewui.com/logo-new.svg">
</a>
</p>
@ -20,34 +20,9 @@ iView
[![Sponers on Open Collective](https://opencollective.com/iview/tiers/sponsor/badge.svg?label=sponsor&color=brightgreen)](#sponers)
<h2 align="center">Special Sponsors</h2>
<table>
<tbody>
<tr>
<td align="center" valign="middle">
<a href="https://segmentfault.com/ls/1650000016424063" target="_blank">
<img width="300" src="https://file.iviewui.com/asd/asd-i-2.png">
</a>
</td>
<td align="center" valign="middle">
<a href="https://e.coding.net/?utm_source=iview" target="_blank">
<img width="300" src="https://file.iviewui.com/asd/asd-coding3.png">
</a>
</td>
<td align="center" valign="middle">
<a href="https://cn.udacity.com/fend/?utm_source=iviewui&utm_medium=banner&utm_campaign=fend" target="_blank">
<img width="300" src="https://file.iviewui.com/asd/asd-u-new-2.png">
</a>
</td>
</tr>
</tbody>
</table>
> If you'd like be a sponsor, to show your ads in GitHub and iView doc, please email admin@aresn.com to get more infomation.
## Docs
**[3.x](https://www.iviewui.com)** | [2.x](http://v2.iviewui.com) | [1.x](http://v1.iviewui.com)
**[3.x](http://iview.talkingdata.com/)** | [2.x](http://v2.iviewui.com) | [1.x](http://v1.iviewui.com)
## Features
@ -134,7 +109,7 @@ If you want to contribute or have questions or bugs to report:
**Questions:** Find other users at the [Gitter chat](https://gitter.im/iview/iview) or post on [StackOverflow using `[iview-ui]` tag](https://stackoverflow.com/questions/tagged/iview-ui)
**Bugs:** [File a issue here](https://github.com/iview/iview/issues) - please provide a example so we can help you better
**Contribute:** Contact us in [Gitter chat](https://gitter.im/iview/iview), WeChat or via mail to `admin@aresn.com`. PRs welcome!
**Contribute:** Contact us in [Gitter chat](https://gitter.im/iview/iview), WeChat or via mail to `iview@tendcloud.com`. PRs welcome!
## Major Contributors
|Name|Avatar|Name|Avatar|Name|Avatar|
@ -155,13 +130,8 @@ If you want to contribute or have questions or bugs to report:
- [iView-Area](https://github.com/iview/iview-area)
- [iView-Editor](https://github.com/iview/iview-editor)
## Sponsors
![](https://opencollective.com/iview/tiers/sponsor.svg?avatarHeight=36)
## Backers
![](https://opencollective.com/iview/tiers/backer.svg?avatarHeight=36)
## License
[MIT](http://opensource.org/licenses/MIT)
Copyright (c) 2016-present, iView
Copyright (c) 2016-present, TalkingData

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

7468
dist/iview.js vendored

File diff suppressed because it is too large Load diff

2
dist/iview.js.map vendored

File diff suppressed because one or more lines are too long

19
dist/iview.min.js vendored

File diff suppressed because one or more lines are too long

BIN
dist/iview.min.js.gz vendored

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("iview/locale",["vue"],t):"object"==typeof exports?exports["iview/locale"]=t(require("vue")):e["iview/locale"]=t(e.Vue)}("undefined"!=typeof self?self:this,function(e){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/dist/locale/",a(a.s=28)}({0:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){n||void 0!==window.iview&&("langs"in iview||(iview.langs={}),iview.langs[e.i.locale]=e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(a(1)).default.prototype.$isServer},1:function(t,a){t.exports=e},28:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={i:{locale:"tr-TR",select:{placeholder:"Seç",noMatch:"Eşleşen veri yok",loading:"yükleme"},table:{noDataText:"Veri Yok",noFilteredDataText:"Süzülen veri yok",confirmFilter:"Onayla",resetFilter:"Sıfırla",clearFilter:"Hepsi"},datepicker:{selectDate:"Tarih seç",selectTime:"Zaman seç",startTime:"Başlangıç",endTime:"Bitişe",clear:"Temizle",ok:"Tamam",datePanelLabel:"[mmmm] [yyyy]",month:"",month1:"Ocak",month2:"Şubat",month3:"Mart",month4:"Nisan",month5:"Mayıs",month6:"Haziran",month7:"Temmuz",month8:"Ağustos",month9:"Eylül",month10:"Ekim",month11:"Kasım",month12:"Aralık",year:"",weekStartDay:"0",weeks:{sun:"Paz",mon:"Pzt",tue:"Sal",wed:"Çar",thu:"Per",fri:"Cum",sat:"Cmt"},months:{m1:"Oca",m2:"Şub",m3:"Mar",m4:"Nis",m5:"May",m6:"Haz",m7:"Tem",m8:"Ağu",m9:"Eyl",m10:"Ekm",m11:"Kas",m12:"Ara"}},transfer:{titles:{source:"Kaynak",target:"Hedef"},filterPlaceholder:"Arama yapın",notFoundText:"Bulunamadı"},modal:{okText:"Tamam",cancelText:"İptal"},poptip:{okText:"Tamam",cancelText:"İptal"},page:{prev:"Önceki",next:"Sonraki",total:"Toplam",item:"öğe",items:"öğeler",prev5:"Önceki 5 Sayfa",next5:"Sonraki 5 Sayfa",page:"/sayfa",goto:"Git",p:""},rate:{star:"Yıldız",stars:"Yıldız"},tree:{emptyText:"Veri Yok"}}};(0,function(e){return e&&e.__esModule?e:{default:e}}(a(0)).default)(n),t.default=n}})});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("iview/locale",["vue"],t):"object"==typeof exports?exports["iview/locale"]=t(require("vue")):e["iview/locale"]=t(e.Vue)}("undefined"!=typeof self?self:this,function(e){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/dist/locale/",a(a.s=28)}({0:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){n||void 0!==window.iview&&("langs"in iview||(iview.langs={}),iview.langs[e.i.locale]=e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(a(1)).default.prototype.$isServer},1:function(t,a){t.exports=e},28:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={i:{locale:"tr-TR",select:{placeholder:"Seç",noMatch:"Eşleşen veri yok",loading:"yükleme"},table:{noDataText:"Veri Yok",noFilteredDataText:"Süzülen veri yok",confirmFilter:"Onayla",resetFilter:"Sıfırla",clearFilter:"Hepsi"},datepicker:{selectDate:"Tarih seç",selectTime:"Zaman seç",startTime:"Başlangıç",endTime:"Bitişe",clear:"Temizle",ok:"Tamam",datePanelLabel:"[mmmm] [yyyy]",month:"",month1:"Ocak",month2:"Şubat",month3:"Mart",month4:"Nisan",month5:"Mayıs",month6:"Haziran",month7:"Temmuz",month8:"Ağustos",month9:"Eylül",month10:"Ekim",month11:"Kasım",month12:"Aralık",year:"",weekStartDay:"0",weeks:{sun:"Paz",mon:"Pzt",tue:"Sal",wed:"Çar",thu:"Per",fri:"Cum",sat:"Cmt"},months:{m1:"Oca",m2:"Şub",m3:"Mar",m4:"Nis",m5:"May",m6:"Haz",m7:"Tem",m8:"Ağu",m9:"Eyl",m10:"Ekm",m11:"Kas",m12:"Ara"}},transfer:{titles:{source:"Kaynak",target:"Hedef"},filterPlaceholder:"Arama yapın",notFoundText:"Bulunamadı"},modal:{okText:"Tamam",cancelText:"İptal"},poptip:{okText:"Tamam",cancelText:"İptal"},page:{prev:"Önceki",next:"Sonraki",total:"Toplam",item:"öğe",items:"öğeler",prev5:"Önceki 5 Sayfa",next5:"Sonraki 5 Sayfa",page:"/sayfa",goto:"Git",p:""},rate:{star:"Yıldız",stars:"Yıldız"},time:{before:" önce",after:" sonra",just:"hemen şimdi",seconds:" saniye",minutes:" dakika",hours:" saat",days:" gün"},tree:{emptyText:"Veri Yok"}}};(0,function(e){return e&&e.__esModule?e:{default:e}}(a(0)).default)(n),t.default=n}})});
//# sourceMappingURL=tr-TR.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

BIN
dist/styles/fonts/ionicons.woff2 vendored Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

22
dist/types/affix.d.ts vendored
View file

@ -1,22 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Affix extends Vue {
/**
*
* @default 0
*/
'offset-top'?: number;
/**
*
*/
'offset-bottom'?: number;
/**
*
* @param value true | false
*/
$emit(eventName: 'on-change', value: boolean): this;
}

48
dist/types/alert.d.ts vendored
View file

@ -1,48 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Alert extends Vue {
/**
* infosuccesswarningerror
* @default info
*/
type?: 'info' | 'success' | 'warning' | 'error';
/**
*
* @default false
*/
closable?: boolean;
/**
*
* @default false
*/
'show-icon'?: boolean;
/**
*
*/
$emit(eventName: 'on-close', event: HTMLElement): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
*
*/
desc: VNode[];
/**
*
*/
icon: VNode[];
/**
*
*/
close: VNode[];
};
}

View file

@ -1,67 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Anchor extends Vue {
/**
*
* @default true
*/
affix?: boolean;
/**
*
* @default 0
*/
'offset-top'?: number;
/**
*
*/
'offset-bottom'?: number;
/**
* px
* @default 5
*/
bounds?: number;
/**
*
* @default 0
*/
'scroll-offset'?: number;
/**
*
*/
container?: string | HTMLElement;
/**
*
* @default false
*/
'show-ink'?: boolean;
/**
*
*/
$emit(eventName: 'on-select', href: string): this;
/**
*
*/
$emit(eventName: 'on-change', []): this;
}
export declare interface AnchorLink extends Vue {
/**
*
* @default
*/
href?: string;
/**
*
* @default
*/
title?: string;
/**
*
* @default 0
*/
'scroll-offset'?: number;
}

View file

@ -1,75 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface AutoComplete extends Vue {
/**
* 使 v-model
*/
value?: string | number;
/**
*
* @default []
*/
data?: string[] | number[];
/**
*
* @default false
*/
clearable?: boolean;
/**
*
* @default false
*/
disabled?: boolean;
/**
*
*/
placeholder?: string;
/**
* largesmalldefault
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
*/
icon?: string;
/**
* value option
* option true false,
* @default false
*/
'filter-method'?: boolean | (() => boolean);
/**
* body Tabs fixed Table 使
* ,
* @default false
*/
transfer?: boolean;
/**
* id Form
*/
'element-id'?: string;
/**
* option input value
*/
$emit(eventName: 'on-change', value: string | number): this;
/**
* value
*/
$emit(eventName: 'on-select', value: string | number): this;
/**
*
*/
$emit(eventName: 'on-search', query: string): this;
/**
*
*/
$emit(eventName: 'on-focus', event: KeyboardEvent): this;
/**
*
*/
$emit(eventName: 'on-blur', event: KeyboardEvent): this;
}

View file

@ -1,30 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Avatar extends Vue {
/**
* circlesquare
* @default circle
*/
shape?: 'circle' | 'square';
/**
* largesmalldefault
* @default default
*/
size?: 'large'|'small'|'default';
/**
*
*/
src?: string;
/**
* Icon
*/
icon?: string;
/**
*
*/
'custom-icon'?: string;
}

View file

@ -1,32 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface BackTop extends Vue {
/**
* BackTop组件
* @default 400
*/
height?: number;
/**
*
* @default 30
*/
bottom?: number;
/**
*
* @default 30
*/
right?: number;
/**
*
* @default 1000
*/
duration?: number;
/**
*
*/
$emit(eventName: 'on-click'): this;
}

47
dist/types/badge.d.ts vendored
View file

@ -1,47 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Badge extends Vue {
/**
* overflowCount时${overflowCount}+ 0
*/
count?: number | string;
/**
*
* @default 99
*/
'overflow-count'?: number | string;
/**
* dot count为 0
* @default false
*/
dot?: boolean
/**
* class名称dot
*/
'class-name'?: string;
/**
* 使 successprimarynormalerrorwarninginfo
*/
type?: 'success' | 'primary' | 'normal' | 'error' | 'warning' | 'info';
/**
* 0 Badge
* @default false
*/
'show-zero'?: boolean;
/**
* Badge successprocessingdefaulterrorwarning
*/
status?: 'success' | 'processing' | 'default' | 'error' | 'warning';
/**
* status
*/
text?: string;
/**
* [x, y]
*/
offset?: number[];
}

View file

@ -1,30 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Breadcrumb extends Vue {
/**
*
* @default /
*/
separator?: string;
}
export declare interface BreadcrumbItem extends Vue {
/**
*
*/
to?: string | object;
/**
* replace history
* @default false
*/
replace?: boolean;
/**
* a target
* @default _self
*/
target?: '_blank' | '_self' | '_parent' | '_top';
}

View file

@ -1,86 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Button extends Vue {
/**
* defaultprimarydashedtextinfosuccesswarningerror或者不设置
* @default default
*/
type?: '' | 'default' | 'primary' | 'dashed' | 'text' | 'info' | 'success' | 'warning' | 'error';
/**
* 使
* @default false
*/
ghost?: boolean;
/**
* largesmalldefault或者不设置
* @default default
*/
size?: '' | 'large' | 'small' | 'default';
/**
* circle或者不设置
*/
shape?: '' | 'circle';
/**
* 100%
* @default false
*/
long?: boolean;
/**
* button原生的typebuttonsubmitreset
* @default button
*/
'html-type'?: 'button' | 'submit' | 'reset';
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default false
*/
loading?: boolean;
/**
*
*/
icon?: string;
/**
*
*/
'custom-icon'?: string;
/**
* vue-router
*/
to?: string | object;
/**
* replace history
* @default false
*/
replace?: boolean;
/**
* a target
* @default _self
*/
target?: '_blank' | '_self' | '_parent' | '_top';
}
export declare interface ButtonGroup extends Vue {
/**
* largesmalldefault或者不设置
* @default default
*/
size?: 'large' | 'small' | 'default';
/**
* circle或者不设置
*/
shape?: '' | 'circle';
/**
*
* @default false
*/
vertical?: boolean;
}

53
dist/types/card.d.ts vendored
View file

@ -1,53 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Card extends Vue {
/**
* 使
* @default true
*/
'bordered'?: boolean;
/**
*
* @default false
*/
'dis-hover'?: boolean;
/**
* 使
* @default false
*/
'shadow'?: boolean;
/**
* px
* @default 16
*/
'padding'?: number;
/**
* 2.12.0
*/
title?: string;
/**
* 2.12.0
*/
icon?: string;
/**
* slot插槽对象
*/
$slots: {
/**
* 使<p>
*/
title: VNode[];
/**
*
*/
extra: VNode[];
/**
*
*/
'': VNode[];
};
}

View file

@ -1,65 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Carousel extends Vue {
/**
* 0 使 v-model
* @default 0
*/
value?: number;
/**
* auto px
* @default auto
*/
height?: string | number;
/**
*
* @default false
*/
loop?: boolean;
/**
*
*/
autoplay?: boolean;
/**
*
* @default 2000
*/
'autoplay-speed'?: number;
/**
* inside outsidenone
* @default inside
*/
dots?: 'inside' | 'outside' | 'none';
/**
*
* @default false
*/
'radius-dot'?: boolean;
/**
* clickhover
* @default click
*/
trigger?: 'click' | 'hover';
/**
* hoveralwaysnever
* @default hover
*/
arrow?: 'hover' | 'always' | 'never';
/**
*
* @default ease
*/
easing?: string;
/**
*
*/
$emit(eventName: 'on-change', oldValue: number, value: number): this;
}
export declare interface CarouselItem extends Vue {
}

View file

@ -1,84 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Cascader extends Vue {
/**
*
* @default []
*/
data?: object[];
/**
*
* @default []
*/
value?: object[];
/**
*
* @default label => label.join(' / ')
*/
'render-format'?: (label?: string[]) => string
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default true
*/
clearable?: boolean;
/**
*
* @default
*/
placeholder?: string;
/**
* click hover
* @default click
*/
trigger?: 'click' | 'hover';
/**
* true
* @default false
*/
'change-on-select'?: boolean;
/**
* large和small或者不填
*/
size?: '' | 'large' | 'small';
/**
* loading
*/
'load-data'?: () => void;
/**
*
* @default false
*/
filterable?: boolean;
/**
*
* @default
*/
'not-found-text'?: string;
/**
* body Tabs fixed Table 使
*
* @default false
*/
transfer?: boolean;
/**
* id Form
*/
'element-id'?: string;
/**
* value valueselectedData
*/
$emit(eventName: 'on-change', value: object, selectedData: object[]): this;
/**
*
*/
$emit(eventName: 'on-visible-change', status: boolean): this;
}

81
dist/types/cell.d.ts vendored
View file

@ -1,81 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Cell extends Vue {
/**
*
*/
name?: string | number;
/**
*
*/
title?: string;
/**
*
*/
label?: string;
/**
*
*/
extra?: string;
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default false
*/
selected?: boolean;
/**
* vue-router
*/
to?: string | object;
/**
* replace history
* @default false
*/
replace?: boolean;
/**
* a target
* @default _self
*/
target?: '_blank' | '_self' | '_parent' | '_top';
/**
* slot插槽对象
*/
$slots: {
/**
* title
*/
'': VNode[];
/**
* Icon
*/
icon: VNode[];
/**
* label
*/
label: VNode[];
/**
* extra
*/
extra: VNode[];
/**
*
*/
arrow: VNode[];
}
}
export declare interface CellGroup extends Vue {
/**
*
*
*/
$emit(eventName: 'on-click', name: string): this;
}

View file

@ -1,61 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Checkbox extends Vue {
/**
* 使使 v-model
* @default false
*/
value?: boolean;
/**
* 使 value
*/
label?: string | number | boolean;
/**
*
* @default false
*/
disabled?: boolean;
/**
* indeterminate
* @default false
*/
indeterminate?: boolean;
/**
* largesmalldefault
*/
size?: '' | 'large' | 'small' | 'default';
/**
* 使 1 0
* @default true
*/
'true-value'?: string | number | boolean;
/**
* 使 1 0
* @default false
*/
'false-value'?: string | number | boolean;
/**
* 使
*/
$emit(eventName: 'on-change', value: boolean): this;
}
export declare interface CheckboxGroup extends Vue {
/**
* 使 v-model
* @default []
*/
value?: string[] | number[] | boolean[];
/**
* largesmalldefault
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
*/
$emit(eventName: 'on-change', values: Array<string | number | boolean>): this;
}

View file

@ -1,57 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Circle extends Vue {
/**
*
* @default 0
*/
percent?: number;
/**
* px
* @default 120
*/
size?: number;
/**
* squareround
* @default round
*/
'stroke-linecap'?: 'square' | 'round';
/**
* 线 px
* @default 6
*/
'stroke-width'?: number;
/**
*
* @default #2db7f5
*/
'stroke-color'?: string
/**
* 线 px
* @default 5
*/
'trail-width'?: number;
/**
*
* @default #eaeef2
*/
'trail-color'?: string;
/**
*
* @default false
*/
dashboard?: boolean;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
};
}

View file

@ -1,53 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Collapse extends Vue {
/**
* name使 v-model
*/
value?: string[] | string;
/**
*
* @default false
*/
accordion?: boolean;
/**
*
* @default false
*/
simple?: boolean;
/**
* key
* @default []
*/
$emit(eventName: 'on-change', []): this;
}
export declare interface CollapsePanel extends Vue {
/**
* name Collapse的value对应
* @default index的值
*/
name?: string;
/**
*
* @default false
*/
'hide-arrow'?: boolean;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
*
*/
content: VNode[];
};
}

View file

@ -1,64 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface ColorPicker extends Vue {
/**
* 使 v-model
*/
value?: string;
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default false
*/
editable?: boolean;
/**
*
* @default false
*/
alpha?: boolean;
/**
*
* @default true
*/
hue?: boolean;
/**
*
* @default false
*/
recommend?: boolean;
/**
*
*/
colors?: string[];
/**
* hslhsvhexrgb
* @default alpha rgb hex
*/
format?: 'hsl' | 'hsv' | 'hex' | 'rgb';
/**
* largesmalldefault或者不设置
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
* @default
*/
$emit(eventName: 'on-change', value: string): this;
/**
*
* @default
*/
$emit(eventName: 'on-active-change', value: string): this;
/**
*
*/
$emit(eventName: 'on-open-change', value: boolean): this;
}

View file

@ -1,8 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Content extends Vue {
}

View file

@ -1,153 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface DatePicker extends Vue {
/**
* datedaterangedatetimedatetimerangeyearmonth'|'date
*/
type?: 'date' | 'daterange' | 'datetime' | 'datetimerange' | 'year' | 'month';
/**
* JavaScript Date new Date()
* value 使 v-model Date @on-change 使
*/
value?: Date;
/**
*
* date | daterange?: yyyy-MM-dd
* datetime | datetimerangeyyyy-MM-dd HH:mm:ss
* yearyyyy
* monthyyyy-MM
*/
format?: string;
/**
*
* top,top-start,top-end,
* bottom,bottom-start,bottom-end,
* left,left-start,left-end,
* right,right-start,right-end
* 2.12.0
* @default bottom-start
*/
placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end'
/**
*
* @default
*/
placeholder?: string;
/**
*
*/
options?: DatePickerOptions;
/**
* daterange datetimerange
* @default false
*/
'split-panels'?: boolean;
/**
* date
* @default false
*/
multiple?: boolean;
/**
*
* @default false
*/
'show-week-numbers': boolean;
/**
*
*/
'start-date'?: Date;
/**
* ,
* @default false
*/
confirm?: boolean;
/**
* true false 使
* slot confirm 使
* @default null
*/
open?: boolean;
/**
* largesmalldefault或者不设置
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default true
*/
clearable?: boolean;
/**
* open
* @default false
*/
readonly?: boolean;
/**
* 使 slot
* @default true
*/
editable?: boolean;
/**
* body Tabs fixed Table 使
* ,
* @default false
*/
transfer?: boolean;
/**
* id Form
*/
'element-id'?: string;
/**
* type datetime datetimerange TimePicker
* steps:time-picker-options="{steps: [1, 10, 10]}"
* @default {}
*/
'time-picker-options'?: object;
/**
* 2016-01-01
*/
$emit(eventName: 'on-change', value: string): this;
/**
*
*/
$emit(eventName: 'on-open-change', value: boolean): this;
/**
* confirm
*/
$emit(eventName: 'on-ok'): this;
/**
* confirm clearable = true
*/
$emit(eventName: 'on-clear'): this;
/**
* slot插槽对象
*/
$slots: {
/**
* open 使
*/
'': VNode[];
};
}
export declare interface DatePickerOptions {
/**
*
* text
* value?: 返回指定的日期使 onClick
* onClick?: 点击时的回调 Vue 使
*/
shortcuts?: { text?: string, value?: () => void, onClick?: () => void }[];
/**
* Boolean
*/
disabledDate(): boolean;
}

View file

@ -1,23 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Divider extends Vue {
/**
* horizontal vertical
* @default horizontal
*/
type?: 'horizontal' | 'vertical';
/**
* 线 leftright center
* @default center
*/
orientation?: 'left' | 'right' | 'center';
/**
* 线
* @default false
*/
dashed?: boolean;
}

View file

@ -1,95 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Drawer extends Vue {
/**
* 使 v-model
* @default false
*/
value?: boolean;
/**
* 使 slot title
* @default center
*/
title?: string;
/**
* 100 100
* @default 256
*/
width?: number | string;
/**
*
* @default true
*/
closable?: boolean;
/**
*
* @default true
*/
'mask-closable'?: boolean;
/**
*
* @default true
*/
mask?: boolean;
/**
*
*/
'mask-style'?: object;
/**
*
*/
styles?: object;
/**
*
* @default false
*/
scrollable?: boolean;
/**
* left right
* @default right
*/
placement?: 'left' | 'right';
/**
*
* @default true
*/
transfer?: boolean;
/**
*
*/
'class-name'?: string;
/**
* transfer
* @default false
*/
'inner'?: boolean;
/**
*
*/
$emit(eventName: 'on-close'): this;
/**
*
*/
$emit(eventName: 'on-visible-change', value: boolean): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
*
*/
header: VNode[];
/**
*
*/
close: VNode[];
};
}

View file

@ -1,82 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Dropdown extends Vue {
/**
* hoverclickcontextMenucustom使 custom visible 使
* @default hover
*/
trigger?: 'hover'|'click'|'custom'|'contextMenu';
/**
* trigger = 'custom' 使
* @default false
*/
visible?: boolean;
/**
*
* toptop-starttop-endbottombottom-startbottom-end
* leftleft-startleft-endrightright-startright-end
* 2.12.0
* @default bottom
*/
placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
/**
* body Tabs fixed Table 使
* @default false
*/
transfer?: boolean;
/**
*
*
*/
$emit(eventName: 'on-click', value: string): this;
/**
*
*/
$emit(eventName: 'on-visible-change', value: boolean): this;
/**
*
*/
$emit(eventName: 'on-clickoutside', event: object): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
* DropdownMenu
*/
list: VNode[];
};
}
export declare interface DropdownMenu extends Vue {
}
export declare interface DropdownItem extends Vue {
/**
*
*/
name?: string;
/**
*
* @default false
*/
disabled?: boolean;
/**
* 线
* @default false
*/
divided?: boolean;
/**
*
* @default false
*/
selected?: boolean;
}

View file

@ -1,8 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Footer extends Vue {
}

100
dist/types/form.d.ts vendored
View file

@ -1,100 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Form extends Vue {
/**
*
*/
model?: object;
/**
* async-validator
*/
rules?: object;
/**
*
* @default false
*/
inline?: boolean;
/**
* leftrighttop
* @default right
*/
'label-position'?: 'left'|'right'|'top';
/**
* FormItem Form label-width
*/
'label-width'?: number;
/**
*
* @default true
*/
'show-message'?: boolean;
/**
* Boolean
*/
validate(callback?: (valid?: boolean) => void): void;
/**
* 1 prop2
*/
validateField(prop?: string, callback?: (valid?: boolean) => void): void;
/**
*
*/
resetFields(): void;
}
export declare interface FormItem extends Vue {
/**
* model
*/
prop?: string;
/**
*
*/
label?: string;
/**
*
*/
'label-width'?: number;
/**
* label for element-id label
*/
'label-for'?: string;
/**
*
*/
required?: boolean;
/**
*
*/
rules?: object | Array<any>;
/**
* , 使error
*/
error?: string;
/**
*
* @default true
*/
'show-message'?: boolean;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
* label
*/
label: VNode[];
};
}

72
dist/types/grid.d.ts vendored
View file

@ -1,72 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Row extends Vue {
/**
* px
* @default 0
*/
gutter?: number;
/**
* flex或不选
*/
type?: string;
/**
* lex topmiddlebottom
*/
align?: 'top'|'middle'|'bottom';
/**
* flex startendcenterspace-aroundspace-between
*/
justify?: 'start'|'end'|'center'|'space-around'|'space-between';
/**
* class名称
*/
'class-name'?: string;
}
export declare interface Col extends Vue {
/**
* 0~24 0 相当于display:none
*/
span?: number | string;
/**
* flex布局模式下有效
*/
order?: number | string;
/**
*
*/
offset?: number | string;
/**
*
*/
push?: number | string;
/**
*
*/
pull?: number | string;
/**
* class名称
*/
'class-name'?: string;
/**
* <768px 响应式栅格可为栅格数或一个包含其他属性的对象
*/
xs?: number | object;
/**
* 768px
*/
sm?: number | object;
/**
* 992px
*/
md?: number | object;
/**
* 1200px
*/
lg?: number | object;
}

View file

@ -1,8 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Header extends Vue {
}

20
dist/types/icon.d.ts vendored
View file

@ -1,20 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Icon extends Vue {
/**
*
*/
type?: string;
/**
* px
*/
size?: number | string;
/**
*
*/
color?: string;
}

10
dist/types/index.d.ts vendored
View file

@ -1,10 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import iView from './iview';
export default iView;
export as namespace iView;
export * from './iview.components';

View file

@ -1,80 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface InputNumber extends Vue {
/**
* Infinity
*/
max?: number;
/**
* -Infinity
*/
min?: number;
/**
* 使 v-model 1
*/
value?: number;
/**
* 1
*/
step?: number;
/**
* largesmalldefault或者不填
*/
size?: '' | 'large' | 'small' | 'default';
/**
* false
*/
disabled?: boolean;
/**
*
* @default
*/
placeholder?: string;
/**
*
*/
formatter?: () => void;
/**
* formatter formatter 使
*/
parser?: () => void;
/**
*
* @default false
*/
readonly?: boolean;
/**
*
* @default true
*/
editable?: boolean;
/**
*
*/
precision?: number;
/**
* id Form
*/
'element-id'?: string;
/**
* false
* @default true
*/
'active-change'?: boolean;
/**
*
*/
$emit(eventName: 'on-change', value: number): this;
/**
*
*/
$emit(eventName: 'on-focus', event: KeyboardEvent): this;
/**
*
*/
$emit(eventName: 'on-blur', event: KeyboardEvent): this;
}

168
dist/types/input.d.ts vendored
View file

@ -1,168 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Input extends Vue {
/**
* textpasswordtextareaurlemaildate
* @default text
*/
type?: 'text' | 'password' | 'textarea' | 'url' | 'email' | 'date';
/**
* 使 v-model
* @default
*/
value?: string | number;
/**
* largesmalldefault或者不设置
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
*/
placeholder?: string;
/**
*
* @default false
*/
clearable?: boolean;
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default false
*/
readonly?: boolean;
/**
*
*/
maxlength?: number;
/**
* text
*/
icon?: string;
/**
*
* @default false
*/
prefix?: string;
/**
*
* @default false
*/
suffix?: String;
/**
*
* @default false
*/
search?: boolean;
/**
* search
* @default false
*/
'enter-button'?: boolean | string;
/**
* textarea
* @default 2
*/
rows?: number;
/**
* textarea { minRows: 2, maxRows: 6 }
* @default false
*/
autosize?: boolean | { minRows?: number, maxRows?: number };
/**
* number
* @default false
*/
number?: boolean;
/**
*
* @default false
*/
autofocus?: boolean;
/**
* off on,off
*/
autocomplete?: string;
/**
* id Form
*/
'element-id'?: string;
/**
* spellcheck
* @default false
*/
spellcheck?: boolean;
/**
* wrap hard soft textarea
* @default soft
*/
wrap?: 'hard' | 'soft';
/**
*
*/
$emit(eventName: 'on-enter'): this;
/**
* icon
*/
$emit(eventName: 'on-click'): this;
/**
*
*/
$emit(eventName: 'on-change', event: string): this;
/**
*
*/
$emit(eventName: 'on-focus'): this;
/**
*
*/
$emit(eventName: 'on-blur'): this;
/**
* keyup
*/
$emit(eventName: 'on-keyup', event: KeyboardEvent): this;
/**
* keydown
*/
$emit(eventName: 'on-keydown', event: KeyboardEvent): this;
/**
* keypress
*/
$emit(eventName: 'on-keypress', event: KeyboardEvent): this;
/**
* search
*/
$emit(eventName: 'on-search', value: string): this;
/**
*
*/
focus(): void;
/**
* slot插槽对象
*/
$slots: {
/**
* text
*/
prepend: VNode[];
/**
* text
*/
append: VNode[];
/**
*
*/
prefix: VNode[];
/**
*
*/
suffix: VNode[];
};
}

View file

@ -1,91 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export { Affix } from './affix';
export { Alert } from './alert';
export { Anchor, AnchorLink } from './anchor';
export { AutoComplete } from './auto-complete';
export { Avatar } from './avatar';
export { BackTop } from './back-top';
export { Badge } from './badge';
export { Breadcrumb, BreadcrumbItem } from './breadcrumb';
export { Button, ButtonGroup } from './button';
export { Card } from './card';
export { Carousel, CarouselItem } from './carousel';
export { Cascader } from './cascader';
export { Cell, CellGroup } from './cell';
export { Checkbox, CheckboxGroup } from './checkbox';
export { Circle, Circle as ICircle } from './circle';
export { Collapse, CollapsePanel } from './collapse';
export { ColorPicker } from './color-picker';
export { Content } from './content';
export { DatePicker, DatePickerOptions } from './date-picker';
export { Divider } from './divider';
export { Drawer } from './drawer';
export { Dropdown, DropdownMenu, DropdownItem } from './dropdown';
export { Footer } from './footer';
export { Form, FormItem } from './form';
export { Row, Col } from './grid';
export { Header } from './header';
export { Icon } from './icon';
export { Input } from './input';
export { InputNumber } from './input-number';
export { Scroll } from './scroll';
export { Split } from './split';
export { Layout } from './layout';
export { LoadingBar, LoadingBarConfig } from './loading-bar';
export { Menu, MenuGroup, MenuItem, MenuSub } from './menu';
export { Message, MessageConfig } from './message';
export { Modal, ModalInstance, ModalConfig } from './modal';
export { Notice, NoticeConfig, NoticeGlobalConfig } from './notice';
export { Page } from './page';
export { Poptip } from './poptip';
export { Progress } from './progress';
export { Radio, RadioGroup } from './radio';
export { Rate } from './rate';
export { Select, Option, OptionGroup } from './select';
export { Sider } from './sider';
export { Slider } from './slider';
export { Spin } from './spin';
export { Steps, StepsStep } from './steps';
export { Switch, Switch as ISwitch } from './switch';
export { Table, TableColumn, TableRenderCreateElementData, TableColumnRenderParams, TableRenderCreateElementResult, TableColumnRenderHeadParams, TableExportCsvParams } from './table';
export { Tabs, TabsPane } from './tabs';
export { Tag } from './tag';
export { Time } from './time';
export { Timeline, TimelineItem } from './timeline';
export { TimePicker } from './time-picker';
export { Tooltip } from './tooltip';
export { Transfer } from './transfer';
export { Tree, TreeChild } from './tree';
export { Upload } from './upload';
declare const API: {
version: string;
locale: (l:any) => void;
i18n: (fn:any) => void;
install: (
Vue: Vue,
opts: {
locale?: any;
i18n?: any;
size?: any;
transfer?: any;
}
) => void;
lang: (code: string) => void;
};
export default API;
declare module 'vue/types/vue' {
interface Vue {
$IVIEW: {
size?: string;
transfer?: string;
};
}
}

View file

@ -1,6 +0,0 @@
import { PluginFunction } from 'vue';
interface IView extends PluginFunction<any> {}
declare const iView: IView;
export default iView;

View file

@ -1,72 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Layout extends Vue {
/**
* xs,sm,md,lg,xl或xxl
* {
* xs?: '480px',
* sm?: '768px',
* md?: '992px',
* lg?: '1200px',
* xl?: '1600px'
* }
*/
breakpoint?: string;
/**
* 使 v-model
* @default false
*/
value?: boolean;
/**
*
* @default 200
*/
width?: number;
/**
* false后
* @default false
*/
collapsible?: boolean;
/**
* 0 trigger
* @default 64
*/
'collapsed-width'?: number;
/**
*
* @default false
*/
'hide-trigger'?: boolean;
/**
* collapsible后设置此属性侧边栏仍会收起
* @default false
*/
'default-collapsed'?: boolean;
/**
* Sider在右边时可以使用
* @default false
*/
'reverse-arrow'?: boolean;
/**
* -true/false
*/
$emit(eventName: 'on-collapse', []): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
* @default
*/
trigger: VNode[];
};
/**
* methods, Sider展开-
*/
toggleCollapse(): void;
}

View file

@ -1,61 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface LoadingBar {
/**
* 0
*/
start(): void;
/**
*
*/
finish(): void;
/**
*
*/
error(): void;
/**
*
* @param percent
*/
update(percent?: number): void;
/**
*
* @param options
*/
config(options?: LoadingBarConfig): void;
/**
*
*/
destroy(): void;
}
export declare interface LoadingBarConfig {
/**
* iView
* @default primary
*/
color?: string;
/**
* iView
* @default error
*/
failedColor?: string;
/**
* px
* @default 2
*/
height?: number;
}
declare module 'vue/types/vue' {
interface Vue {
/**
*
*/
$Loading: LoadingBar;
}
}

102
dist/types/menu.d.ts vendored
View file

@ -1,102 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Menu extends Vue {
/**
* horizontal vertical
* @default vertical
*/
mode?: 'horizontal' | 'vertical';
/**
* lightdarkprimary primary mode="horizontal"
* @default light
*/
theme?: 'light' | 'dark' | 'primary';
/**
* name
*/
'active-name'?: string | number;
/**
* Submenu name
*/
'open-names'?: string[] | number[];
/**
*
* @default false
*/
accordion?: boolean;
/**
* mode="vertical" 使 Col auto
* @default 240px
*/
width?: string;
/**
* MenuItem
*/
$emit(eventName: 'on-select', name?: string | number): this;
/**
* /
* @default Submenu name
*/
$emit(eventName: 'on-open-change', names: string[] | number[]): this;
/**
* $nextTick
*/
updateOpened(): void;
/**
* $nextTick
*/
updateActiveName(): void;
}
export declare interface MenuItem extends Vue {
/**
*
*/
name?: string | number;
/**
* vue-router
*/
to?: string | object;
/**
* replace history
* @default false
*/
replace?: boolean;
/**
* a target
* @default _self
*/
target?: '_blank' | '_self' | '_parent' | '_top';
}
export declare interface MenuSub extends Vue {
/**
*
*/
name?: string | number;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
*
*/
title: VNode[];
};
}
export declare interface MenuGroup extends Vue {
/**
*
* @default
*/
title?: string;
}

View file

@ -1,84 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode, CreateElement } from "vue";
export declare interface Message {
/**
*
* @param config MessageConfig为相关配置,string为待显示的内容
*/
info(config?: MessageConfig | string): void;
/**
*
* @param config MessageConfig为相关配置,string为待显示的内容
*/
success(config?: MessageConfig | string): void;
/**
*
* @param config MessageConfig为相关配置,string为待显示的内容
*/
warning(config?: MessageConfig | string): void;
/**
*
* @param config MessageConfig为相关配置,string为待显示的内容
*/
error(config?: MessageConfig | string): void;
/**
*
* @param config MessageConfig为相关配置,string为待显示的内容
*/
loading(options?: MessageConfig | string): void;
/**
*
* @param config MessageConfig为相关配置,string为待显示的内容
*/
config(options?: MessageConfig): void;
/**
*
*/
destroy(): void;
}
export declare interface MessageConfig {
/**
*
*/
content?: string;
/**
* 使 Vue Render
*/
render?: (h: CreateElement) => VNode;
/**
*
*/
onClose?: () => void;
/**
*
* @default false
*/
closable?: boolean;
/**
*
* @default 24
*/
top?: number;
/**
*
* @default 1.5
*/
duration?: number;
}
declare module 'vue/types/vue' {
interface Vue {
/**
*
*/
$Message: Message;
}
}

223
dist/types/modal.d.ts vendored
View file

@ -1,223 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Modal {
/**
* 使 v-model
* @default false
*/
value?: boolean;
/**
* 使 slot title
*/
title?: string;
/**
* Esc ,
* @default true
*/
closable?: boolean;
/**
*
* @default true
*/
'mask-closable'?: boolean;
/**
* loading visible来关闭对话框,
* @default false
*/
loading?: boolean;
/**
*
* @default false
*/
scrollable?: boolean;
/**
*
* @default false
*/
fullscreen?: boolean;
/**
*
* @default false
*/
draggable?: boolean;
/**
* draggable
* @default true
*/
mask?: boolean;
/**
*
* @default
*/
'ok-text'?: string;
/**
*
* @default
*/
'cancel-text'?: string;
/**
* px
* 768px auto,
* @default 520
*/
width?: number | string;
/**
*
* @default false
*/
'footer-hide'?: boolean;
/**
* .ivu-modal的样式
*/
style?: object;
/**
* .ivu-modal-wrap的类名
*/
'class-name'?: string;
/**
*
* @default 1000
*/
'z-index'?: number;
/**
* ,
* @default ['ease', 'fade']
*/
'transition-names'?: Array<string>;
/**
* body true
* @default true
*/
transfer?: boolean;
/**
*
*/
$emit(eventName: 'on-ok'): this;
/**
*
*/
$emit(eventName: 'on-cancel'): this;
/**
*
*/
$emit(eventName: 'on-visible-change', visible: boolean): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
*
*/
header: VNode[];
/**
*
*/
footer: VNode[];
/**
*
*/
close: VNode[];
};
}
export declare interface ModalInstance {
/**
*
* @param config ModalConfig为相关配置,string为待显示的内容
*/
info(config?: ModalConfig | string): void;
/**
*
* @param config ModalConfig为相关配置,string为待显示的内容
*/
success(config?: ModalConfig | string): void;
/**
*
* @param config ModalConfig为相关配置,string为待显示的内容
*/
warning(config?: ModalConfig | string): void;
/**
*
* @param config ModalConfig为相关配置,string为待显示的内容
*/
error(config?: ModalConfig | string): void;
/**
*
* @param config ModalConfig为相关配置,string为待显示的内容
*/
confirm(config?: ModalConfig | string): void;
/**
*
*/
remove(): void;
}
export declare interface ModalConfig {
/**
* Element选择器字符串
*/
title?: string;
/**
* Element选择器字符串
*/
content?: string;
/**
* 使 content
*/
render?: () => void;
/**
* px
* @default 416
*/
width?: number | string;
/**
*
* @default
*/
okText?: string;
/**
* Modal.confirm()
* @default
*/
cancelText?: string;
/**
* loading Modal.remove()
* @default false
*/
loading?: boolean;
/**
*
* @default false
*/
scrollable?: boolean;
/**
*
* @default false
*/
closable?: boolean;
/**
*
*/
onOk?: () => void;
/**
* Modal.confirm()
*/
onCancel?: () => void;
}
declare module 'vue/types/vue' {
interface Vue {
/**
*
*/
$Modal: ModalInstance;
}
}

View file

@ -1,92 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode, CreateElement } from "vue";
export declare interface Notice {
/**
*
* @param config NoticeConfig为相关配置,string为待显示的内容
*/
open(config?: NoticeConfig | string): void;
/**
*
* @param config NoticeConfig为相关配置,string为待显示的内容
*/
info(config?: NoticeConfig | string): void;
/**
*
* @param config NoticeConfig为相关配置,string为待显示的内容
*/
success(config?: NoticeConfig | string): void;
/**
*
* @param config NoticeConfig为相关配置,string为待显示的内容
*/
warning(config?: NoticeConfig | string): void;
/**
*
* @param config NoticeConfig为相关配置,string为待显示的内容
*/
error(config?: NoticeConfig): void;
/**
*
*/
config(options?: NoticeGlobalConfig): void;
/**
*
*/
close(name?: string): void;
/**
*
*/
destroy(): void;
}
export declare interface NoticeConfig {
/**
*
*/
title?: string;
/**
*
*/
desc?: string;
/**
* 使 Vue Render
*/
render?: (h: CreateElement) => VNode;
/**
* 0 4.5
*/
duration?: number;
/**
*
*/
name?: string;
/**
*
*/
onClose?: Function;
}
export declare interface NoticeGlobalConfig {
/**
* 24
*/
top?: number;
/**
* 4.5
*/
duration?: number;
}
declare module 'vue/types/vue' {
interface Vue {
/**
*
*/
$Notice: Notice;
}
}

99
dist/types/page.d.ts vendored
View file

@ -1,99 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Page extends Vue {
/**
* .sync
* @default 1
*/
current?: number;
/**
*
* @default 0
*/
total?: number;
/**
*
* @default 10
*/
'page-size'?: number;
/**
*
* @default [10, 20, 30, 40]
*/
'page-size-opts'?: number[];
/**
* bottom top
* @default bottom
*/
placement?: string;
/**
* small
*/
size?: string;
/**
*
* @default false
*/
simple?: boolean;
/**
*
* @default false
*/
'show-total'?: boolean;
/**
*
* @default false
*/
'show-elevator'?: boolean;
/**
* page-size
* @default false
*/
'show-sizer'?: boolean;
/**
* class
*/
'class-name'?: string;
/**
* style
*/
styles?: object;
/**
* body
* Tabs fixed Table 使
*
* @default false
*/
transfer?: boolean;
/**
*
*/
'prev-text'?: string;
/**
*
*/
'next-text'?: string;
/**
*
* @param pageNum
*/
$emit(eventName: 'on-change', pageNum: number): this;
/**
*
* @param pageSize
*/
$emit(eventName: 'on-page-size-change', pageSize: number): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
};
}

123
dist/types/poptip.d.ts vendored
View file

@ -1,123 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Poptip extends Vue {
/**
* hoverclickfocus,
* confirm click
* @default click
*/
trigger?: string;
/**
*
*/
title?: string | number;
/**
* confirm \
* @default
*/
content?: string | number;
/**
*
* toptop-starttop-endbottombottom-startbottom-end
* leftleft-startleft-endrightright-startright-end
* 2.12.0
* @default top
*/
placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
/**
* 150px confirm 300px
*/
width?: string | number;
/**
*
* @default false
*/
confirm?: boolean;
/**
* confirm
* @default
*/
'ok-text'?: string;
/**
* confirm
* @default
*/
'cancel-text'?: string;
/**
* body Tabs fixed Table 使
*
* @default false
*/
transfer?: boolean;
/**
* Poptip class-name使 transfer
* @default false
*/
'popper-class'?: string;
/**
*
* @default false
*/
'word-wrap'?: boolean;
/**
*
* @default 8px 16px
*/
padding?: string;
/**
*
* @default false
*/
offset?: string;
/**
* popper.js popper.js
* @default {
modifiers: {
computeStyle:{
gpuAcceleration: false,
},
preventOverflow :{
boundariesElement: 'window'
}
}
}
*/
options?: object;
/**
*
*/
$emit(eventName: 'on-popper-show'): this;
/**
*
*/
$emit(eventName: 'on-popper-hide'): this;
/**
* confirm
*/
$emit(eventName: 'on-ok'): this;
/**
* confirm
*/
$emit(eventName: 'on-cancel'): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
* slot props title
*/
title: VNode[];
/**
* slot props content confirm
*/
content: VNode[];
}
}

View file

@ -1,47 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Progress extends Vue {
/**
*
* @default 0
*/
percent?: number;
/**
* normalactivewrongsuccess
* @default normal
*/
status?: 'normal'|'active'|'wrong'|'success';
/**
* 线 px
* @default 10
*/
'stroke-width'?: number;
/**
*
* @default false
*/
'hide-info'?: boolean;
/**
*
* @default false
*/
vertical?: boolean;
/**
*
* @default 0
*/
'success-percent'?: number;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
};
}

64
dist/types/radio.d.ts vendored
View file

@ -1,64 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Radio extends Vue {
/**
* 使使 v-model
* @default false
*/
value?: boolean;
/**
* 使 value
*/
label?: string | number;
/**
*
* @default false
*/
disabled?: boolean;
/**
* largesmalldefault
*/
size?: '' | 'large' | 'small' | 'default';
/**
* 使 1 0
* @default true
*/
'true-value'?: string | number | boolean;
/**
* 使 1 0
* @default false
*/
'false-value'?: string | number | boolean;
/**
*
*/
$emit(eventName: 'on-change', arg: string | number | boolean): this;
}
export declare interface RadioGroup extends Vue {
/**
* 使 v-model
*/
value?: string | number;
/**
* button button 使
*/
type?: string;
/**
* largesmalldefault或者不设置
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
* @default false
*/
vertical?: boolean;
/**
*
*/
$emit(eventName: 'on-change', ...args: Array<string | number | boolean>): this;
}

54
dist/types/rate.d.ts vendored
View file

@ -1,54 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Rate extends Vue {
/**
* star总数
* @default 5
*/
count?: number;
/**
* star 使 v-model
* @default 0
*/
value?: number;
/**
*
* @default false
*/
'allow-half'?: boolean;
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default false
*/
'show-text'?: boolean;
/**
*
* @default false
*/
clearable?: boolean;
/**
*
*/
character?: string;
/**
* 使
*/
icon?: string;
/**
* 使
*/
'custom-icon'?: string;
/**
*
*/
$emit(eventName: 'on-change', value: number): this;
}

View file

@ -1,35 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Scroll extends Vue {
/**
*
* @default 300
*/
height?: string | number;
/**
*
* @default
*/
'loading-text'?: string;
/**
* Promise
*/
'on-reach-top'?: () => void;
/**
* Promise
*/
'on-reach-bottom'?: () => void;
/**
* Promise
*/
'on-reach-edge'?: () => void;
/**
* 24
* @default [20, 20]
*/
'distance-to-edge'?: number | number[];
}

141
dist/types/select.d.ts vendored
View file

@ -1,141 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Select extends Vue {
/**
* value 使 v-model
* String Number Array
* @default
*/
value?: string | number | string[] | number[];
/**
*
* @default false
*/
multiple?: boolean;
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default false
*/
clearable?: boolean;
/**
*
* @default false
*/
filterable?: boolean;
/**
* 使
* @default false
*/
remote?: boolean;
/**
*
*/
'remote-method'?: () => void;
/**
*
* @default false
*/
loading?: boolean;
/**
*
* @default
*/
'loading-text'?: string;
/**
* remote 使 value label
*/
label?: string | number | string[] | number[];
/**
* largesmalldefault或者不填
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
* @default
*/
placeholder?: string;
/**
*
* @default
*/
'not-found-text'?: string;
/**
* label value
* @default false
*/
'label-in-value'?: boolean;
/**
* topbottomtop-startbottom-starttop-endbottom-end
* @default bottom-start
*/
placement?: 'bottom' | 'top' | 'top-start' | 'bottom-start' | 'top-end' | 'bottom-end';
/**
* body Tabs fixed Table 使
*
* @default false
*/
transfer?: boolean;
/**
* id Form
*/
'element-id'?: string;
/**
* Option变化时触发 value label label-in-value
*/
$emit(eventName: 'on-change'): this;
/**
* ,query
*/
$emit(eventName: 'on-query-change', query: string): this;
/**
* ,query
*/
$emit(eventName: 'on-clear'): this;
/**
* ,query
*/
$emit(eventName: 'on-open-change', params: boolean): this;
/**
* filterable="true"
*/
setQuery(query: string): void;
/**
* clearable="true"
*/
clearSingleSelect(): void;
}
export declare interface Option extends Vue {
/**
*
*/
value?: string | number;
/**
* slot slot label
* label value label
* slot
*/
label?: string;
/**
*
* @default false
*/
disabled?: boolean;
}
export declare interface OptionGroup extends Vue {
/**
*
* @default
*/
label?: string;
}

View file

@ -1,8 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Sider extends Vue {
}

View file

@ -1,70 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Slider extends Vue {
/**
* 使 v-model
* 2,
* @default 0
*/
value?: number | number[];
/**
*
* @default 0
*/
min?: number;
/**
*
* @default 100
*/
max?: number;
/**
* max - min
* @default 1
*/
step?: number;
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default false
*/
range?: boolean;
/**
*
* @default false
*/
'show-input'?: boolean;
/**
* step 使
* @default false
*/
'show-stops'?: boolean;
/**
* hoveralwaysnever
* @default false
*/
'show-tip'?: boolean;
/**
* tip-format Tooltip tip-format null Tooltip
*/
'tip-format'?: (value?: number | number[]) => void;
/**
* largesmalldefault或者不填 show-input
*/
'input-size'?: '' | 'large' | 'small' | 'default';
/**
*
*/
$emit(eventName: 'on-change', value: number | number[]): this;
/**
*
*/
$emit(eventName: 'on-input', value: number | number[]): this;
}

35
dist/types/spin.d.ts vendored
View file

@ -1,35 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Spin extends Vue {
/**
* Spin尺寸large和small或者不设置
*/
size?: 'large' | 'small';
/**
* relative或absolute
* @default false
*/
fix?: boolean;
/**
* slot插槽对象
*/
$slots: {
/**
* Spin slot后
*/
'': VNode[];
};
}
declare module 'vue/types/vue' {
interface Vue {
/**
*
*/
$Spin: Spin;
}
}

68
dist/types/split.d.ts vendored
View file

@ -1,68 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Split extends Vue {
/**
* 0~1 v-model
* @default 0.5
*/
value?: number | string;
/**
* horizontal vertical
* @default horizontal
*/
mode?: 'horizontal' | 'vertical';
/**
*
* @default 40px
*/
min?: number | string;
/**
*
* @default 40px
*/
max?: number | string;
/**
* -
* @default false
*/
$emit(eventName: 'on-move-start', []): this;
/**
*
*/
$emit(eventName: 'on-moving', []): this;
/**
*
* @default false
*/
$emit(eventName: 'on-move-end', []): this;
/**
* slot插槽对象
*/
$slots: {
/**
* mode horizontal
* @default false
*/
left: VNode[];
/**
* mode horizontal
*/
right: VNode[];
/**
* mode vertical
*/
top: VNode[];
/**
* mode vertical
*/
bottom: VNode[];
/**
*
*/
trigger: VNode[];
}
}

48
dist/types/steps.d.ts vendored
View file

@ -1,48 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Steps extends Vue {
/**
* 0
* @default 0
*/
current?: number;
/**
* waitprocessfinisherror
* @default process
*/
status?: 'wait' | 'process' | 'finish' | 'error';
/**
* small或者不写
*/
size?: '' | 'small';
/**
* horizontalvertical
* @default horizontal
*/
direction?: 'horizontal' | 'vertical';
}
export declare interface StepsStep extends Vue {
/**
* waitprocessfinisherror
* @default process
*/
status?: 'wait' | 'process' | 'finish' | 'error';
/**
*
* @default
*/
title?: string;
/**
*
*/
content?: string;
/**
*
*/
icon?: string;
}

View file

@ -1,54 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Switch extends Vue {
/**
* 使 v-model
* @default false
*/
value?: boolean;
/**
* largesmalldefault或者不写使2使 large
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
* @default false
*/
disabled?: boolean;
/**
* 使 1 0
* @default true
*/
'true-value'?: string | number | boolean;
/**
* 使 1 0
* @default false
*/
'false-value'?: string | number | boolean;
/**
*
* @default false
*/
loading?: boolean;
/**
*
*/
$emit(eventName: 'on-change', value: boolean): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
open: VNode[];
/**
*
*/
close: VNode[];
};
}

419
dist/types/table.d.ts vendored
View file

@ -1,419 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Table extends Vue {
/**
* cellClassName
* 使
* @default []
*/
data?: object[];
/**
*
* @default []
*/
columns?: object[];
/**
*
* @default false
*/
stripe?: boolean;
/**
*
* @default false
*/
border?: boolean;
/**
*
* @default true
*/
'show-header'?: boolean;
/**
* px
* @default
*/
width?: number | string;
/**
* px
*/
height?: number | string;
/**
*
* @default false
*/
loading?: boolean;
/**
*
* @default false
*/
'disabled-hover'?: boolean;
/**
*
* @default false
*/
'highlight-row'?: boolean;
/**
* className
* row
* index
*/
'row-class-name'?: (row?: object, index?: number) => void;
/**
* largesmalldefault
*/
size?: string;
/**
*
* @default
*/
'no-data-text'?: string;
/**
*
* @default
*/
'no-filtered-data-text'?: string;
/**
* highlight-row
* currentRow
* oldCurrentRow
*/
$emit(eventName: 'on-current-change', currentRow: object, oldCurrentRow: object): this;
/**
*
* selection
* row
*/
$emit(eventName: 'on-select', selection: object[], row: object): this;
/**
*
* selection
* row
*/
$emit(eventName: 'on-select-cancel', selection: object[], row: object): this;
/**
*
* selection
*/
$emit(eventName: 'on-select-all', selection: object[]): this;
/**
*
* selection
*/
$emit(eventName: 'on-selection-change', selection: object[]): this;
/**
*
* column
* key
* order asc desc
*/
$emit(eventName: 'on-sort-change', column?: object, key?: string, order?: 'asc' | 'desc'): this;
/**
*
*/
$emit(eventName: 'on-filter-change', value: any): this;
/**
*
* currentRow
* index?: 当前行的索引
*/
$emit(eventName: 'on-row-click', currentRow: object, index: number): this;
/**
*
* currentRow
* index?: 当前行的索引
*/
$emit(eventName: 'on-row-dblclick', currentRow: object, index: number): this;
/**
*
* row
* status
*/
$emit(eventName: 'on-expand', row: object, status: string): this;
/**
*
*/
exportCsv(params: TableExportCsvParams): void;
/**
* table
*/
handleResize(): void;
/**
* highlight-row
*/
clearCurrentRow(): void;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
header: VNode[];
/**
*
*/
footer: VNode[];
/**
*
*/
loading: VNode[];
};
}
export declare interface TableColumn {
/**
* indexselectionexpandhtml
*/
type?: 'index' | 'selection' | 'expand' | 'html';
/**
*
* @default #
*/
title?: string;
/**
*
*/
key?: string;
/**
*
*/
width?: number;
/**
*
*/
minWidth?: number;
/**
*
*/
maxWidth?: number;
/**
* left right center , left
* @default left
*/
align?: 'left' | 'right' | 'center';
/**
*
*/
className?: string;
/**
* left right
*/
fixed?: 'left' | 'right';
/**
*
* @default false
*/
ellipsis?: boolean;
/**
* Tooltip
* @default false
*/
tooltip?: boolean;
/**
* 使 Vue Render
* h rowcolumn index
*
* Render rc.18 render
*/
render?: (h?:
(
el?: string | object | Function,
data?: string | TableRenderCreateElementData | TableRenderCreateElementResult | Array<TableRenderCreateElementResult>,
vnode?: string | TableRenderCreateElementResult[]
) => TableRenderCreateElementResult,
params?: TableColumnRenderParams
) => TableRenderCreateElementResult;
/**
* column index
*/
renderHeader?: (h?:
(
el?: string | object | Function,
data?: string | TableRenderCreateElementData | TableRenderCreateElementResult | Array<TableRenderCreateElementResult>,
vnode?: string | TableRenderCreateElementResult[]
) => TableRenderCreateElementResult,
params?: TableColumnRenderHeadParams
) => TableRenderCreateElementResult;
/**
* custom
* Table on- sort - change ,false
* @default false
*/
sortable?: boolean | 'custom';
/**
* 使 a b type
* sortable?: true type asc desc
*/
sortMethod?: (a: any, b: any, type: 'asc' | 'desc') => void;
/**
* asc desc
*/
sortType?: 'asc' | 'desc';
/**
* label value 使filterMethod
*/
filters?: { label: string, value: string | number | boolean }[];
/**
* 使 true
*/
filterMethod?: () => void;
/**
*
* @default true
*/
filterMultiple?: boolean;
/**
* 使 value
*/
filteredValue?: (string | number | boolean)[];
/**
* 使
*/
filterRemote?: () => void;
/**
*
*/
children?: object[];
}
export declare interface TableRenderCreateElementData {
/**
* `v-bind:class` API
*/
'class'?: object;
/**
* `v-bind:style` API
*/
style?: object;
/**
* HTML
*/
attrs?: object,
/**
* props
*/
props?: object;
/**
* DOM
*/
domProps?: object;
/**
* "on"
* v-on?:keyup.enter
* keyCode
*/
on?: object;
/**
* 使 vm.$emit
*/
nativeOn?: object;
/**
* .
* Vue
*/
directives?: object[];
/**
* slot
*/
slot?: string;
/**
* ,myKey
*/
key?: string;
/**
* myRef
*/
ref?: string
}
export declare interface TableColumnRenderParams {
/**
*
*/
row?: object;
/**
*
*/
column?: object;
/**
*
*/
index?: number;
}
export declare interface TableRenderCreateElementResult {
child?: object;
children?: Array<any>;
componentInstance?: object;
componentOptions?: object;
context?: object;
data?: object;
elm?: object;
functionalContext?: object;
isCloned?: boolean;
isComment?: boolean;
isOnce?: boolean;
isRootInsert?: boolean;
isStatic?: boolean;
key?: object;
ns?: object;
parent?: object;
raw?: boolean;
tag?: string;
text?: object;
}
export declare interface TableColumnRenderHeadParams {
/**
*
*/
column?: object;
/**
*
*/
index?: number;
}
export declare interface TableExportCsvParams {
/**
* table.csv
*/
filename?: string;
/**
* true
*/
original?: boolean;
/**
* false
*/
noHeader?: boolean;
/**
*
*/
columns?: any[];
/**
*
*/
data?: any[];
/**
*
*/
callback?: () => void;
/**
* (,)
* @default ,
*/
separator?: string;
/**
*
* @default false
*/
quoted?: boolean;
}

85
dist/types/tabs.d.ts vendored
View file

@ -1,85 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Tabs extends Vue {
/**
* tab name使 v-model
* @default name
*/
value?: string;
/**
* line card
* @default line
*/
type?: 'line' | 'card';
/**
* default small type="line"
* @default default
*/
size?: 'default' | 'small';
/**
* type="card"
* @default false
*/
closable?: boolean;
/**
* 使 CSS3
* @default true
*/
animated?: boolean;
/**
* Tabs
* @default false
*/
'capture-focus'?: boolean;
/**
* Promise
*/
'before-remove'?: (index: number) => {};
/**
* tab
*/
$emit(eventName: 'on-click', name: string): this;
/**
* tab
*/
$emit(eventName: 'on-tab-remove', name: string): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
extra: VNode[];
};
}
export declare interface TabPane extends Vue {
/**
* value
*/
name?: string | number;
/**
* Render
* @default
*/
label?: string | (() => void);
/**
*
*/
icon?: string;
/**
*
* @default false
*/
disabled?: boolean;
/**
* type="card"
* @default null
*/
closable?: boolean;
}

48
dist/types/tag.d.ts vendored
View file

@ -1,48 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Tag extends Vue {
/**
*
* @default false
*/
closable?: boolean
/**
*
* @default false
*/
checkable?: boolean;
/**
*
* @default true
*/
checked?: boolean;
/**
* borderdot或不填
*/
type?: '' | 'border' | 'dot';
/**
*
* defaultprimarysuccesswarningerrorbluegreen
* redyellowpinkmagentavolcanoorangegold
* limecyangeekbluepurple
*
*/
color?: 'default' | 'primary' | 'success' | 'warning' | 'error' | 'blue' | 'green' | 'red' | 'yellow' | 'pink' | 'magenta' | 'volcano' | 'orange' | 'gold' | 'lime' | 'cyan' | 'geekblue' | 'purple';
/**
* 使 v-for
*/
name?: string | number;
/**
* 使
* @default true
*/
fade?: boolean;
/**
*
*/
$emit(eventName: 'on-close', event: object, name: string): this;
}

View file

@ -1,169 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface TimePicker extends Vue {
/**
* timetimerange
* @default time
*/
type?: 'time' | 'timerange';
/**
* JavaScript Date new Date()
* value 使 v-model Date @on-change 使
*
* yyyy 2016
* yy 16
* MM 01
* M 1
* MMMM January
* MMM Jan
* dd 01
* d 1
* Do 1st
* DD 00
* D 0
* dddd Monday
* ddd Mon
* HH 24 01
* H 24 1
* hh 12 01
* h 12 1
* mm 01
* m 1
* ss 01
* s 1
* SSS 019
* SS 01
* S 1
* A AM/PM
* a am/pm
* ZZ +0800
*/
value?: Date;
/**
*
* @default HH:mm:ss
*
* yyyy 2016
* yy 16
* MM 01
* M 1
* MMMM January
* MMM Jan
* dd 01
* d 1
* Do 1st
* DD 00
* D 0
* dddd Monday
* ddd Mon
* HH 24 01
* H 24 1
* hh 12 01
* h 12 1
* mm 01
* m 1
* ss 01
* s 1
* SSS 019
* SS 01
* S 1
* A AM/PM
* a am/pm
* ZZ +0800
*/
format?: string;
/**
*
* [1, 15] 00153045
* @default []
*/
steps?: any[];
/**
*
* top,top-start,top-end
* bottom,bottom-start,bottom-end
* left,left-start,left-end
* right,right-start,right-end
* @default bottom-start
*/
placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
/**
*
* @default
*/
placeholder?: string;
/**
*
* @default false
*/
confirm?: boolean;
/**
* true false
* 使 slot confirm 使,
* @default null
*/
open?: boolean;
/**
* largesmalldefault或者不设置
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default true
*/
clearable?: boolean;
/**
* open
* @default false
*/
readonly?: boolean;
/**
* 使 slot
* @default true
*/
editable?: boolean;
/**
* body Tabs fixed Table 使
* @default false
*/
transfer?: boolean;
/**
* id Form
*/
'element-id'?: boolean;
/**
* 09:41:00
*/
$emit(eventName: 'on-change', value: string): this;
/**
*
*/
$emit(eventName: 'on-open-change', value: boolean): this;
/**
*
*/
$emit(eventName: 'on-ok'): this;
/**
*
*/
$emit(eventName: 'on-clear'): this;
/**
* slot插槽对象
*/
$slots: {
/**
* open 使
*/
'': VNode[];
};
}

27
dist/types/time.ts vendored
View file

@ -1,27 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Time extends Vue {
/**
* Date
*/
time?: number |Date |string;
/**
* relativedate datetime
* @default relative
*/
type?: 'relative'|'date'|'datetime';
/**
*
* @default 60
*/
interval?: number;
/**
*
* @default false
*/
hash?: string;
}

Some files were not shown because too many files have changed in this diff Show more