отфильтровать массив по введенному значению в строке поиска в watch-ере
computed: {
filteredProjects() {
const search = this.searchString.toLowerCase();
return this.journal.flatMap(n => {
return n.savedProjects.filter(m => m.name.toLowerCase().includes(search));
});
},
...
&::before {
content: " ";
position: absolute;
border-width: 6px;
border-style: solid;
margin-left: -6px;
left: 13%;
top: 100%;
border-color: black transparent transparent transparent;
}
data.filter(v => filterKeys.every(k => v.weather[k]));
const data = [{
city: 'Первый',
weather: {
blizzard: false,
cloudy: true,
metorite: true,
}
},
{
city: 'Второй',
weather: {
blizzard: true,
cloudy: true,
metorite: true,
}
},
{
city: 'Третий',
weather: {
blizzard: true,
cloudy: false,
metorite: false,
}
}
];
const filterKeys = ['blizzard', 'cloudy'];