2020-11-24 15:15:51 +05:30
|
|
|
import Vue from 'vue';
|
|
|
|
import NewCluster from './components/new_cluster.vue';
|
|
|
|
|
|
|
|
export default () => {
|
2022-07-16 23:28:13 +05:30
|
|
|
const el = document.querySelector('#js-cluster-new');
|
2020-11-24 15:15:51 +05:30
|
|
|
|
2022-07-16 23:28:13 +05:30
|
|
|
if (!el) {
|
2020-11-24 15:15:51 +05:30
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
return new Vue({
|
2022-07-16 23:28:13 +05:30
|
|
|
el,
|
2020-11-24 15:15:51 +05:30
|
|
|
render(createElement) {
|
|
|
|
return createElement(NewCluster);
|
|
|
|
},
|
|
|
|
});
|
|
|
|
};
|