v-bind:class < style > .shape { width : 90px ; height : 50px ; margin : 10px ; float : left ;} .square { background : blue ;} .circle { background : red ; border-radius : 50% ;} < / style > < div id = "app" > < div class = "shape square" ></ div > < div class = "shape circle" ></ div > < div style = " clear: both" ></ div > < div class = "shape" v-for = "shape in shapes" v-bind:class = "{circle:shape.circle,square:!shape.circle}" ></ div > </ div > < script > var vm = new Vue ({ el: "#app" , data: { color: "blue" , style: { backgroundColor: 'red' } , shapes: [{ circle: true },{ circle: false }] } , computed: { } } ); < / script < div class = "shape" v-for = "shape in shapes" v-bind:class = "[shape.shape]" ...