feat: 去掉一些日志

This commit is contained in:
wangjiahao 2021-06-10 17:46:16 +08:00
parent 38dea1ad1d
commit 5dd942348a
7 changed files with 18 additions and 14 deletions

View File

@ -531,7 +531,7 @@ export default {
if (this.parent) {
this.bounds = this.calcResizeLimits()
}
console.log('changeWidth' + val)
// console.log('changeWidth' + val)
this.changeWidth(val)
},
h(val) {
@ -584,7 +584,7 @@ export default {
this.aspectFactor = this.outsideAspectRatio
}
this.width = this.w !== 'auto' ? this.w : width
console.log('width1:' + this.width)
// console.log('width1:' + this.width)
this.height = this.h !== 'auto' ? this.h : height
this.right = this.parentWidth - this.width - this.left
this.bottom = this.parentHeight - this.height - this.top
@ -1109,7 +1109,7 @@ export default {
newH = restrictToBounds(newH, this.minH || 0, this.maxH)
//
if (this.lockAspectRatio) {
console.log(this.lockAspectRatio, this.aspectFactor)
// console.log(this.lockAspectRatio, this.aspectFactor)
if (newW / newH > this.aspectFactor) {
newW = newH * this.aspectFactor
} else {
@ -1117,7 +1117,7 @@ export default {
}
}
this.width = newW
console.log('width2:' + this.width)
// console.log('width2:' + this.width)
this.height = newH
this.$emit('resizing', this.left, this.top, this.width, this.height)
@ -1128,8 +1128,8 @@ export default {
},
changeWidth(val) {
debugger
console.log('parentWidth', this.parentWidth)
console.log('parentHeight', this.parentHeight)
// console.log('parentWidth', this.parentWidth)
// console.log('parentHeight', this.parentHeight)
const [newWidth, _] = snapToGrid(this.grid, val, 0, this.scale)
// const right = restrictToBounds(this.parentWidth - newWidth - this.left, this.bounds.minRight, this.bounds.maxRight)
// private this.bounds.minRight 0
@ -1143,7 +1143,7 @@ export default {
this.right = right
this.bottom = bottom
this.width = width
console.log('width3:' + this.width)
// console.log('width3:' + this.width)
this.height = height
},
changeHeight(val) {
@ -1160,7 +1160,7 @@ export default {
this.right = right
this.bottom = bottom
this.width = width
console.log('width4:' + this.width)
// console.log('width4:' + this.width)
this.height = height
},
//

View File

@ -7,6 +7,7 @@
v-for="(item, index) in componentDataInfo"
:key="index"
:config="item"
:class="{'gap_class':canvasStyleData.panel.gap==='yes'}"
/>
</div>
</template>
@ -172,4 +173,7 @@ export default {
flex-flow: row nowrap;
color: #9ea6b2;
}
.gap_class{
padding:3px;
}
</style>

View File

@ -214,7 +214,7 @@ export default {
},
componentData: {
handler(newVal, oldVla) {
console.log('11111')
// console.log('11111')
},
deep: true
}
@ -508,7 +508,7 @@ export default {
}
},
getRefLineParams(params) {
console.log(params)
// console.log(params)
const { vLine, hLine } = params
this.vLine = vLine
this.hLine = hLine

View File

@ -25,7 +25,7 @@ export default {
},
recordSnapshot(state) {
console.log('recordSnapshot')
// console.log('recordSnapshot')
// 添加新的快照
state.snapshotData[++state.snapshotIndex] = deepCopy(state.componentData)
state.snapshotStyleData[state.snapshotIndex] = deepCopy(state.canvasStyleData)

View File

@ -157,7 +157,7 @@ export default {
info: '{"list":' + JSON.stringify(this.checkedList) + '}'
}
post('/dataset/table/customPreview', table).then(response => {
console.log(response)
// console.log(response)
this.fields = response.data.fields
this.data = response.data.data
const datas = this.data

View File

@ -164,7 +164,7 @@ export default {
},
methods: {
select(selection) {
console.log(selection)
// console.log(selection)
},
// create() {
// this.formType = 'add'

View File

@ -34,7 +34,7 @@ export default {
methods: {
// hasLicense
executeAxios(options) {
console.log(options)
// console.log(options)
}
}
}