Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vue-draggable-grid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Libraries
vue-draggable-grid
Commits
41d17a2f
Commit
41d17a2f
authored
2 years ago
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
Run linter
parent
4646ce14
No related branches found
No related tags found
1 merge request
!2
Resolve "Implement basic functionality"
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
rollup.config.mjs
+17
-19
17 additions, 19 deletions
rollup.config.mjs
src/DragContainer.vue
+1
-1
1 addition, 1 deletion
src/DragContainer.vue
src/Grid.vue
+4
-4
4 additions, 4 deletions
src/Grid.vue
src/components.js
+1
-1
1 addition, 1 deletion
src/components.js
src/index.js
+9
-9
9 additions, 9 deletions
src/index.js
with
32 additions
and
34 deletions
rollup.config.mjs
+
17
−
19
View file @
41d17a2f
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
()],
},
];
This diff is collapsed.
Click to expand it.
src/DragContainer.vue
+
1
−
1
View file @
41d17a2f
...
...
@@ -23,4 +23,4 @@ export default {
width
:
100%
;
height
:
100%
;
}
</
style
>
\ No newline at end of file
</
style
>
This diff is collapsed.
Click to expand it.
src/Grid.vue
+
4
−
4
View file @
41d17a2f
...
...
@@ -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
>
This diff is collapsed.
Click to expand it.
src/components.js
+
1
−
1
View file @
41d17a2f
import
DragContainer
from
"
./DragContainer.vue
"
;
import
Grid
from
"
./Grid.vue
"
;
export
default
{
DragContainer
,
Grid
};
export
default
{
DragContainer
,
Grid
};
This diff is collapsed.
Click to expand it.
src/index.js
+
9
−
9
View file @
41d17a2f
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
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment