修复印花overall偏移和画布对不上问题
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
:max="1000"
|
||||
:step="1"
|
||||
is-input
|
||||
:tipFormatter="(v) => `${scale}%`"
|
||||
:tipFormatter="(v) => `${scale.toFixed(0)}%`"
|
||||
:value="scale"
|
||||
@input="inputFillScale"
|
||||
/>
|
||||
@@ -121,8 +121,8 @@
|
||||
]);
|
||||
const inputFillScale = (e) => {
|
||||
const scale = e / 100;
|
||||
console.log(scale)
|
||||
emit("inputFillScale", scale);
|
||||
console.log(scale.toFixed(2))
|
||||
emit("inputFillScale", scale.toFixed(2));
|
||||
};
|
||||
const inputOffset = async (e:any)=>{
|
||||
emit('inputFillOffset', {...e,size: await sketchSize()})
|
||||
|
||||
Reference in New Issue
Block a user