# message弹窗提示
这个其实没必要,但主要是老设置参数麻烦,所以顺带做了一下,提供了 message, warning, success, error, confirm 的居中。
```
# message
this.message(msg)
# warning
this.warning(msg)
# success
this.success(msg)
# error
this.error(msg)
~~~
# alert
this.alert(title,() => {
console.log('确定...');
},() => {
console.log('取消...');
},options={},content='')
# prompt
this.prompt(title,() => {
console.log('确定...');
},() => {
console.log('取消...');
},options={},content='')
# confirm
this.confirm(title,() => {
console.log('确定...');
},() => {
console.log('取消...');
},options={},content='')
~~~
```
**options**中可以使用**element ui**的原始配置进行覆盖,也可以不要该配置。
```
# alert
this.alert(title,() => {
console.log('确定...');
},() => {
console.log('取消...');
})
```