Skip to content
  • This project
    • Loading...
  • Sign in

bdc / bdcdj-web

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • bdcdj-web
  • src
  • components
  • tanchuang
  • index.js
  • liangyifan's avatar
    弹窗封装 · 919f3698
    919f3698 Browse Directory
    liangyifan committed 2022-10-09 17:46:03 +0800
index.js 321 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
import Vue from 'vue'
import Popup from './index.vue'

const PopupBox = Vue.extend(Popup)
Popup.install = function (data) {
  console.log(data)
  let instance = new PopupBox({
    data
  }).$mount()

  document.body.appendChild(instance.$el)

  Vue.nextTick(() => {
    instance.isShow = true
  })
}

export default Popup