vonic
Version:
Mobile UI Components, based on Vue.js and ionic CSS.
22 lines (17 loc) • 485 B
JavaScript
import Vue from 'vue'
import {createElement, timeout} from '../utils'
import CascadePanel from '../../cascade/CascadePanel.vue'
class CascadePanelService {
_vm = undefined
show(title, options) {
createElement('von-cascade-panel')
this._vm = new Vue(CascadePanel).$mount('[von-cascade-panel]')
return timeout(50).then(() => {
return this._vm.show(title, options)
})
}
hide() {
this._vm.hide()
}
}
window.$cascadePanel = new CascadePanelService()