[Improvement] add type definition files (#361)

This commit is contained in:
neverland
2017-11-29 18:00:08 +08:00
committed by GitHub
parent c8915d3984
commit 121e2de375
12 changed files with 153 additions and 4 deletions
+3
View File
@@ -7,8 +7,11 @@ const defaultConfig = {
value: true,
title: '',
message: '',
overlay: true,
lockOnScroll: true,
confirmButtonText: '',
cancelButtonText: '',
showConfirmButton: true,
showCancelButton: false,
closeOnClickOverlay: false,
callback: action => {
+2 -2
View File
@@ -15,7 +15,7 @@ export default {
props: {
zIndex: Number,
className: String,
customStyle: Object,
customStyle: Object
},
computed: {
@@ -23,7 +23,7 @@ export default {
return {
zIndex: this.zIndex,
...this.customStyle
}
};
}
}
};
+2 -2
View File
@@ -4,11 +4,11 @@ import VueToast from './toast';
let instance;
const defaultOptions = {
visible: true,
type: 'text',
mask: false,
position: 'middle',
visible: true,
duration: 3000,
position: 'middle',
forbidClick: false,
clear: () => {
instance.visible = false;