vue 2 to 3 #1

Merged
gator merged 25 commits from dev into master 2022-12-02 11:23:43 +01:00
2 changed files with 2 additions and 4 deletions
Showing only changes of commit f41e415b32 - Show all commits

View File

@ -32,12 +32,12 @@ export default {
}),
boardWidth: function() {
return Math.floor(
this.canvas.width /
this.canvasWidth /
this.cellProperties.size)
},
boardHeight: function() {
return Math.floor(
this.canvas.height /
this.canvasHeight /
this.cellProperties.size)
}
},

View File

@ -140,10 +140,8 @@ export default {
const elem = event.target
const name = elem.value
const rules = this.presetRules[name]
console.log(rules)
Object.keys(rules).map((index) => {
const data = { 'rule' : index, 'value' : rules[index]}
console.log(rules[index])
this.$store.commit('update1dSingleRule', data)
})
},