Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vue-shufflejs-plugin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dmstr
vue-shufflejs-plugin
Commits
2c669289
Commit
2c669289
authored
Apr 06, 2020
by
Marc Mautz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added class binding
parent
0a14a3e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
VueShuffleGrid.vue
src/components/VueShuffleGrid.vue
+11
-4
No files found.
src/components/VueShuffleGrid.vue
View file @
2c669289
<
template
>
<div
class=
"row"
>
<div
class=
"shuffle-grid"
v-if=
"productData"
>
<div
class=
"col-xs-6 col-sm-6 col-md-4 shuffle-item"
v-shuffle-item-attributes=
"
{ attributes: getItemFilterAttributes(item) }"
<div
v-shuffle-item-attributes=
"
{ attributes: getItemFilterAttributes(item) }"
v-for="item in productData" :key="item.id"
:class="[itemBaseClass, itemLayoutClass]"
:data-title="item.heading"
:data-rank="item.rank"
:data-id="item.id">
...
...
@@ -42,7 +42,14 @@
mounted
()
{
this
.
initView
()
},
computed
:
{},
computed
:
{
itemBaseClass
()
{
return
'shuffle-item'
},
itemLayoutClass
()
{
return
(
this
.
settings
.
itemLayoutClass
)
?
this
.
settings
.
itemLayoutClass
:
'col-xs-6 col-sm-6 col-md-4'
}
},
methods
:
{
/**
* Init view, add the show item in viewport transition
...
...
@@ -212,4 +219,4 @@
animation-fill-mode
:
forwards
;
animation-duration
:
0
.4s
;
}
</
style
>
\ No newline at end of file
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment