popup.js 602 Bytes
/*
 * @Description: 弹框组件的封装
 * @Autor: renchao
 * @LastEditTime: 2023-04-11 09:31:14
 */
import Popup from '@/components/Popup/index'
import Popup1 from '@/components/Popup1/index'
export function popupDialog (title, url, params, width = '75%', isMain, height, btnShow = false, callback, cancel) {
  // Popup.install
  Popup1(title, url, {
    height: height,
    width: width,
    formData: params,
    btnShow: btnShow,
    isMain: isMain,
    cancel: () => {
      cancel()
    },
    confirm: () => {
      callback()
    }
  })
}

export function popupCacel () {
  Popup1().close()
}