提交 cbc76cf2 authored 作者: wangjiahao's avatar wangjiahao

feat: 去掉不必要的log 和初始化数据

上级 36ec45ba
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -130,7 +130,7 @@ export function changeStyleWithScale(value) {
export function changeStyleWithScaleHeightInAuto(value) {
const scale = store.state.canvasStyleData.scaleHeight ? store.state.canvasStyleData.scaleHeight : 100
const result = value * scale / 100
console.log('heightInAuto=>' + scale + ';' + result)
// console.log('heightInAuto=>' + scale + ';' + result)
return result
}
......@@ -138,7 +138,7 @@ export function changeStyleWithScaleHeightInAuto(value) {
export function changeStyleWithScaleWidthInAuto(value) {
const scale = store.state.canvasStyleData.scaleWidth ? store.state.canvasStyleData.scaleWidth : 100
const result = value * scale / 100
console.log('widthInAuto=>' + scale + ';' + result)
// console.log('widthInAuto=>' + scale + ';' + result)
return result
}
......
......@@ -72,7 +72,7 @@ const data = {
},
setCurComponent(state, { component, index }) {
console.log('curComponent' + JSON.stringify(component))
// console.log('curComponent' + JSON.stringify(component))
state.curComponent = component
state.curComponentIndex = index
},
......@@ -87,7 +87,7 @@ const data = {
if (width) curComponent.style.width = parseInt(canvasStyleData.selfAdaption ? (width * 100 / curCanvasScale.scaleWidth) : width)
if (height) curComponent.style.height = parseInt(canvasStyleData.selfAdaption ? (height * 100 / curCanvasScale.scaleHeight) : height)
if (rotate) curComponent.style.rotate = rotate
console.log('setShapeStyle' + JSON.stringify(curComponent))
// console.log('setShapeStyle' + JSON.stringify(curComponent))
},
setShapeSingleStyle({ curComponent }, { key, value }) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论