Skip to content
Snippets Groups Projects
Commit 41d17a2f authored by Julian's avatar Julian
Browse files

Run linter

parent 4646ce14
No related branches found
No related tags found
1 merge request!2Resolve "Implement basic functionality"
import vue from 'rollup-plugin-vue' import vue from "rollup-plugin-vue";
import peerDepsExternal from 'rollup-plugin-peer-deps-external' import peerDepsExternal from "rollup-plugin-peer-deps-external";
export default [ export default [
{ {
input: 'src/index.js', input: "src/index.js",
output: [ output: [
{ {
format: 'esm', format: "esm",
file: 'dist/vue-draggable-grid.mjs' file: "dist/vue-draggable-grid.mjs",
}, },
{ {
format: 'cjs', format: "cjs",
file: 'dist/vue-draggable-grid.js' file: "dist/vue-draggable-grid.js",
} },
], ],
plugins: [ plugins: [vue(), peerDepsExternal()],
vue(), peerDepsExternal() },
] ];
}
]
\ No newline at end of file
...@@ -23,4 +23,4 @@ export default { ...@@ -23,4 +23,4 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
</style> </style>
\ No newline at end of file
...@@ -12,12 +12,12 @@ export default { ...@@ -12,12 +12,12 @@ export default {
props: { props: {
rows: { rows: {
type: Number, type: Number,
required: true required: true,
}, },
cols: { cols: {
type: Number, type: Number,
required: true required: true,
} },
}, },
methods: { methods: {
handleDrop(event) { handleDrop(event) {
...@@ -33,4 +33,4 @@ export default { ...@@ -33,4 +33,4 @@ export default {
background: darkgrey; background: darkgrey;
border: grey dashed 2px; border: grey dashed 2px;
} }
</style> </style>
\ No newline at end of file
import DragContainer from "./DragContainer.vue"; import DragContainer from "./DragContainer.vue";
import Grid from "./Grid.vue"; import Grid from "./Grid.vue";
export default {DragContainer, Grid}; export default { DragContainer, Grid };
import components from "./components"; import components from "./components";
const plugin = { const plugin = {
install(Vue) { install(Vue) {
for (const prop in components) { for (const prop in components) {
if (components.hasOwnProperty(prop)) { if (components.hasOwnProperty(prop)) {
const component = components[prop]; const component = components[prop];
Vue.component(component.name, component); Vue.component(component.name, component);
} }
}
} }
} },
};
export default plugin; export default plugin;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment