1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| import { MessageBox } from 'element-ui'
|
| // 定义comfirm样式
| export const comfirm = (title,content,callback) => {
| MessageBox.confirm(content, title, {
| confirmButtonText: '是',
| cancelButtonText: '否',
| center: true
| }).then(() => {
| callback();
| }).catch(() => {});
| }
|
| // 自定义alert样式
| export const alert = (title,content,func) => {
| MessageBox.alert(content, title, {
| confirmButtonText: '确定',
| center: true,
| callback: action => {
| func()
| }
| });
| }
|
|