transition-group
, у отдельных элементов списка анимируем высоту (должна быть задана).Тут сама сложность в том чтоб сделать бордер.
chart: {
events: {
click() {
this.update({
yAxis: {
breaks: новое значение для breaks,
},
});
},
},
},
<div class="colors">
<div class="color" data-color="blue">Blue</div>
<div class="color" data-color="red">Red</div>
<div class="color" data-color="pink">Pink</div>
</div>
let selectedTD = null;
const $colors = $('.colors').on('click', '.color', function() {
$(selectedTD).css('backgroundColor', this.dataset.color);
selectedTD = null;
$colors.hide();
}).hide();
$('table').on('click', 'td', function() {
selectedTD = selectedTD === this ? null : this;
$colors.toggle(!!selectedTD);
});
...или есть какой-то скрытый от меня смысл?
It will handle cases withSymbol.toPrimitive
correctly and throw correctly if template literal expression is aSymbol()
. See babel/babel#5791.
Vue.use(window['v-show-slide'].default);
. .images_box-model-spec {
order: 1;
}
.itemsnew-list-item-wrapper {
order: 2;
}
allTasks: {
get() {
return this.$store.state.tasks;
},
set(val) {
this.$store.commit('allTasks', val);
},
},
draggable.tasks__wrap(v-model="allTasks")
...
computed: {
all: {
get() {
return this.filters.every(n => n.active);
},
set(val) {
this.filters.forEach(n => n.active = val);
},
},
},
<label>
<input type="checkbox" v-model="all">
ALL
</label>
this.$store.commit('updateProduct', {
product: product.options,
data: {
isFree: true,
},
});
data: () => ({
filters: [
{ name: 'disColor', active: true },
{ name: 'water', active: true },
{ name: 'gps', active: true },
],
...
<label v-for="f in filters">
<input type="checkbox" v-model="f.active">
{{ f.name }}
</label>
computed: {
filteredItems() {
const filters = this.filters.filter(n => n.active);
return this.items.filter(n => filters.some(f => n[f.name]));
},
...
computed: {
text: {
get() {
// ...
},
set: _.throttle(function(text) {
// здесь вызываете мутацию
}, 2000),
},
},
data() {
return {
show: null,
...
@click="show = watch"
. Закрытие: @click="show = null"
. В шаблоне попапа исправляете watch на show: :src="`img/catalog/${show.model}/group.jpg`"
.