修复overall模式角度设置不上

This commit is contained in:
X1627315083@163.com
2026-02-05 16:41:56 +08:00
parent 96b3636aea
commit b2cb7378d6

View File

@@ -300,7 +300,7 @@ export default defineComponent({
// location = [item.pattern.style.left,item.pattern.style.top] // location = [item.pattern.style.left,item.pattern.style.top]
} }
let value ={ let value ={
angle : item.pattern.transform.rotateZ, angle:0,
// angle : !this.overallSingle ? 0:item.pattern.transform.rotateZ, // angle : !this.overallSingle ? 0:item.pattern.transform.rotateZ,
location : location, location : location,
priority:item.priority, priority:item.priority,
@@ -312,7 +312,9 @@ export default defineComponent({
ifSingle:!!item.ifSingle, ifSingle:!!item.ifSingle,
globalCompositeOperation:'', globalCompositeOperation:'',
} }
if(item.object)value.object = item.object if(item.object)value.object = item.object;
value.angle = value.ifSingle?item.pattern.transform.rotateZ:item.angle
return value return value
} }
if(editPrintElementData.printStyleList[props.type].single.length>0){ if(editPrintElementData.printStyleList[props.type].single.length>0){
@@ -915,6 +917,7 @@ export default defineComponent({
} }
const inputFillAngle = (angle:any)=>{ const inputFillAngle = (angle:any)=>{
let arr = editPrintElementData.printStyleList[props.type].overall let arr = editPrintElementData.printStyleList[props.type].overall
console.log(angle)
arr[editPrintElementData.imgDomIndex].angle = angle arr[editPrintElementData.imgDomIndex].angle = angle
editPrintElementDom.pingpuRef.updataList([ editPrintElementDom.pingpuRef.updataList([
{ {