-
<button @click="change" type="button">改变Box大小
data(){
return {
imgStyle:{
}
}
},
computed:{
imgStyle(){
return {
paddingBottom:(this.singleItemObj.height/this.singleItemObj.width).toFixed(2)*100+'%'
}
}
},
vue 3 获取proxy 对象的值需序列化
this.nftInfo=JSON.parse(JSON.stringify(data))
标签:style,Vue,return,bind,JSON,data
From: https://www.cnblogs.com/zzyxx/p/17102971.html