{% for technology in product.technologies %}
{% if loop.first %}
<div class="technology-item opened">
<div class="technology-container" style="display: block">
test test
</div>
</div>
</div>
{% endif %}
<div class="technology-item">
<div class="technology-container">
test test
</div>
</div>
</div>
{% endfor %}
data() {
return {
handle: null,
mql: matchMedia('(max-width: 768px)')
}
},
methods: {
onChange: function(event) {
this.handle = this.mql.matches ? '.image' : null;
}
},
mounted() {
this.onChange();
this.mql.addEventListener('change', this.onChange);
},
beforeUnmount() {
this.mql.removedEventListener('change', this.onChange);
}
data() {
return {
handle: null,
mql: matchMedia('(max-width: 768px)');
}
},
methods: {
onChange: function(event) {
this.handle = this.mql.matches ? '.image' : null;
}
},
mounted() {
this.onChange();
this.mql.addEventListener('change', this.onChange);
},
beforeUnmount() {
this.mql.removedEventListener('change', this.onChange);
}
а средняя переносится
https://codepen.io/Olya097/pen/mdxwrxP