12 lines
351 B
JavaScript
12 lines
351 B
JavaScript
|
import Vue from 'vue';
|
||
|
import Panel from './panel.vue';
|
||
|
|
||
|
export default (containerId = '#js-google-cloud-databases') => {
|
||
|
const element = document.querySelector(containerId);
|
||
|
const { ...attrs } = JSON.parse(element.getAttribute('data'));
|
||
|
return new Vue({
|
||
|
el: element,
|
||
|
render: (createElement) => createElement(Panel, { attrs }),
|
||
|
});
|
||
|
};
|