Level 48
You can make a new method, example 'styling'
styling(count) {
switch (true) {
case (count < 5):
return 'font-size: 12px;'
break;
case (count < 50):
// between 5 and 50
return 'font-size: 20px;'
break;
case (count < 100):
// between 50 and 100
return 'font-size: 40px;'
break;
case (count > 100):
return 'font-size: 60px;'
break;
default:
return 'font-size: 12px;'
}
},
And in the template for the tag cloud, something like
// Loop over tags
<div :styling="styling(word.value)" v-text="word.name"></div>