UNPKG

@u3u/vue-hooks

Version:
17 lines (16 loc) 452 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var runtime = {}; function getRuntimeVM() { if (runtime.vm) return runtime.vm; throw new ReferenceError('[vue-hooks] Not found vue instance.'); } exports.getRuntimeVM = getRuntimeVM; function setRuntimeVM(vue) { var vm = this || vue; if (typeof vm.$options.setup === 'function') { runtime.vm = vm; } } exports.setRuntimeVM = setRuntimeVM;