Blame view

src/utils/popup.js 433 Bytes
任超 committed
1 2
import Popup from '@/components/Popup/index'
export function popupDialog (title, url, params, width = '75%', height, btnShow = false, callback) {
任超 committed
3 4
  // Popup.install
  Popup(title, url, {
任超 committed
5 6 7 8 9 10 11 12 13 14 15
    height: height,
    width: width,
    formData: params,
    btnShow: btnShow,
    cancel: () => {
      console.log("取消回调");
    },
    confirm: () => {
      callback
    }
  })
任超 committed
16 17 18 19
}

export function popupCacel () {
  Popup1().close()
任超 committed
20
}