Skip to content

Instantly share code, notes, and snippets.

View enixlee's full-sized avatar
🏠
Working Everywhere

enixlee enixlee

🏠
Working Everywhere
View GitHub Profile
const marky = require('marky')
const render = Vue.prototype._render
const update = Vue.prototype._update
const camelize = str => str && Vue.util.camelize(str)
function getName (vm) {
if (!vm.$parent) return 'root'
return (
camelize(vm.$options.name) ||
camelize(vm.$options._componentTag) ||