first commit + add fe component vue accone
This commit is contained in:
16
libs/vendor/csvparse/index.js
vendored
Normal file
16
libs/vendor/csvparse/index.js
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import Vue from 'vue';
|
||||
import VueCsvImport from "./components/VueCsvImport";
|
||||
|
||||
const VueCsvImportPlugin = {
|
||||
install(Vue, options = {}) {
|
||||
Vue.component(options.componentName || 'VueCsvImport', VueCsvImport);
|
||||
}
|
||||
};
|
||||
|
||||
if (typeof window !== undefined && window.Vue && window.Vue === Vue) {
|
||||
VueCsvImportPlugin.install(window.Vue);
|
||||
}
|
||||
|
||||
export { VueCsvImport, VueCsvImportPlugin };
|
||||
|
||||
export default VueCsvImport;
|
||||
Reference in New Issue
Block a user