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 peerDepsExternal from 'rollup-plugin-peer-deps-external'
import vue from "rollup-plugin-vue";
import peerDepsExternal from "rollup-plugin-peer-deps-external";
export default [
{
input: 'src/index.js',
output: [
{
format: 'esm',
file: 'dist/vue-draggable-grid.mjs'
},
{
format: 'cjs',
file: 'dist/vue-draggable-grid.js'
}
],
plugins: [
vue(), peerDepsExternal()
]
}
]
\ No newline at end of file
{
input: "src/index.js",
output: [
{
format: "esm",
file: "dist/vue-draggable-grid.mjs",
},
{
format: "cjs",
file: "dist/vue-draggable-grid.js",
},
],
plugins: [vue(), peerDepsExternal()],
},
];
......@@ -23,4 +23,4 @@ export default {
width: 100%;
height: 100%;
}
</style>
\ No newline at end of file
</style>
......@@ -12,12 +12,12 @@ export default {
props: {
rows: {
type: Number,
required: true
required: true,
},
cols: {
type: Number,
required: true
}
required: true,
},
},
methods: {
handleDrop(event) {
......@@ -33,4 +33,4 @@ export default {
background: darkgrey;
border: grey dashed 2px;
}
</style>
\ No newline at end of file
</style>
import DragContainer from "./DragContainer.vue";
import Grid from "./Grid.vue";
export default {DragContainer, Grid};
export default { DragContainer, Grid };
import components from "./components";
const plugin = {
install(Vue) {
for (const prop in components) {
if (components.hasOwnProperty(prop)) {
const component = components[prop];
Vue.component(component.name, component);
}
}
install(Vue) {
for (const prop in components) {
if (components.hasOwnProperty(prop)) {
const component = components[prop];
Vue.component(component.name, component);
}
}
}
},
};
export default plugin;
\ No newline at end of file
export default plugin;
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