[Improvement] add type definition files (#361)
This commit is contained in:
@@ -7,8 +7,11 @@ const defaultConfig = {
|
||||
value: true,
|
||||
title: '',
|
||||
message: '',
|
||||
overlay: true,
|
||||
lockOnScroll: true,
|
||||
confirmButtonText: '',
|
||||
cancelButtonText: '',
|
||||
showConfirmButton: true,
|
||||
showCancelButton: false,
|
||||
closeOnClickOverlay: false,
|
||||
callback: action => {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user