popup.js
773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-11 16:31:01
*/
import Popup from '@/components/Popup/index'
/**
* @description: popupDialog
* @param {*} title
* @param {*} url
* @param {*} params
* @param {*} width
* @param {*} height
* @param {*} btnShow
* @param {*} callback
* @author: renchao
*/
export function popupDialog (title, url, params, width = '75%', height, btnShow = false, callback) {
// Popup.install
Popup(title, url, {
height: height,
width: width,
formData: params,
btnShow: btnShow,
cancel: () => {
console.log("取消回调");
},
confirm: () => {
callback
}
})
}
/**
* @description: popupCacel
* @author: renchao
*/
export function popupCacel () {
Popup1().close()
}