just for fun

This commit is contained in:
clairekuang
2021-06-01 11:09:47 +01:00
parent 298aa91b41
commit 51bd2a9547
@@ -135,10 +135,14 @@ export default {
},
methods: {
emitAddProp() {
var bimNouns = ['parameter', 'BIM', 'triple O', 'digital twin', 'LOD 9000', 'automation'];
var bimAdjs = ['parametric', 'chonky', '3D']
var bimExclamations = ['wow','much']
var randomPhrase = bimExclamations[Math.floor(Math.random() * bimExclamations.length)] + ' ' + bimAdjs[Math.floor(Math.random() * bimAdjs.length)] + ' ' + bimNouns[Math.floor(Math.random() * bimNouns.length)];
let field = {
key: `placeholder ${~~(Math.random() * 100)}`,
key: `parameter ${~~(Math.random() * 100)}`,
type: 'field',
value: 'random stuff'
value: randomPhrase
}
this.$emit('add-prop', { field: field, path: this.path })
},