vue 2 to 3 #1
@ -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)
|
||||
}
|
||||
},
|
||||
|
@ -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)
|
||||
})
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user