设置样式 temp1.setAttribute("style","width:10px;height:10px;border:solid 1px red;margin-top:200px;")
const tets:any = document.getElementById('test')
let styles=''
for(let key in props.style){
styles+=`${key}:${props.style[key]};`
}
nextTick(()=>{
test.setAttribute("style", styles)
})
});