2021-09-30 23:02:18 +05:30
|
|
|
import Vue from 'vue';
|
|
|
|
import CsvViewer from './csv_viewer.vue';
|
|
|
|
|
|
|
|
export default () => {
|
|
|
|
const el = document.getElementById('js-csv-viewer');
|
|
|
|
|
|
|
|
return new Vue({
|
|
|
|
el,
|
|
|
|
render(createElement) {
|
|
|
|
return createElement(CsvViewer, {
|
|
|
|
props: {
|
|
|
|
csv: el.dataset.data,
|
2023-05-27 22:25:52 +05:30
|
|
|
remoteFile: true,
|
2021-09-30 23:02:18 +05:30
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
|
|
|
};
|