25 lines
567 B
JavaScript
25 lines
567 B
JavaScript
"use strict";
|
|
|
|
const app = Vue.createApp({
|
|
data() {
|
|
return {
|
|
boxASelected: false,
|
|
boxBSelected: false,
|
|
boxCSelected: false,
|
|
};
|
|
},
|
|
methods: {
|
|
boxSelected(box) {
|
|
if (box === "A") {
|
|
this.boxASelected = !this.boxASelected;
|
|
} else if (box === "B") {
|
|
this.boxBSelected = !this.boxBSelected;
|
|
} else if (box === "C") {
|
|
this.boxCSelected = !this.boxCSelected;
|
|
}
|
|
},
|
|
},
|
|
});
|
|
|
|
app.mount("#styling");
|