提交 5dd94234 authored 作者: wangjiahao's avatar wangjiahao

feat: 去掉一些日志

上级 38dea1ad
...@@ -531,7 +531,7 @@ export default { ...@@ -531,7 +531,7 @@ export default {
if (this.parent) { if (this.parent) {
this.bounds = this.calcResizeLimits() this.bounds = this.calcResizeLimits()
} }
console.log('changeWidth:' + val) // console.log('changeWidth:' + val)
this.changeWidth(val) this.changeWidth(val)
}, },
h(val) { h(val) {
...@@ -584,7 +584,7 @@ export default { ...@@ -584,7 +584,7 @@ export default {
this.aspectFactor = this.outsideAspectRatio this.aspectFactor = this.outsideAspectRatio
} }
this.width = this.w !== 'auto' ? this.w : width 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.height = this.h !== 'auto' ? this.h : height
this.right = this.parentWidth - this.width - this.left this.right = this.parentWidth - this.width - this.left
this.bottom = this.parentHeight - this.height - this.top this.bottom = this.parentHeight - this.height - this.top
...@@ -1109,7 +1109,7 @@ export default { ...@@ -1109,7 +1109,7 @@ export default {
newH = restrictToBounds(newH, this.minH || 0, this.maxH) newH = restrictToBounds(newH, this.minH || 0, this.maxH)
// 纵横比 // 纵横比
if (this.lockAspectRatio) { if (this.lockAspectRatio) {
console.log(this.lockAspectRatio, this.aspectFactor) // console.log(this.lockAspectRatio, this.aspectFactor)
if (newW / newH > this.aspectFactor) { if (newW / newH > this.aspectFactor) {
newW = newH * this.aspectFactor newW = newH * this.aspectFactor
} else { } else {
...@@ -1117,7 +1117,7 @@ export default { ...@@ -1117,7 +1117,7 @@ export default {
} }
} }
this.width = newW this.width = newW
console.log('width2:' + this.width) // console.log('width2:' + this.width)
this.height = newH this.height = newH
this.$emit('resizing', this.left, this.top, this.width, this.height) this.$emit('resizing', this.left, this.top, this.width, this.height)
...@@ -1128,8 +1128,8 @@ export default { ...@@ -1128,8 +1128,8 @@ export default {
}, },
changeWidth(val) { changeWidth(val) {
debugger debugger
console.log('parentWidth', this.parentWidth) // console.log('parentWidth', this.parentWidth)
console.log('parentHeight', this.parentHeight) // console.log('parentHeight', this.parentHeight)
const [newWidth, _] = snapToGrid(this.grid, val, 0, this.scale) const [newWidth, _] = snapToGrid(this.grid, val, 0, this.scale)
// const right = restrictToBounds(this.parentWidth - newWidth - this.left, this.bounds.minRight, this.bounds.maxRight) // const right = restrictToBounds(this.parentWidth - newWidth - this.left, this.bounds.minRight, this.bounds.maxRight)
// private 将 this.bounds.minRight 设置为0 // private 将 this.bounds.minRight 设置为0
...@@ -1143,7 +1143,7 @@ export default { ...@@ -1143,7 +1143,7 @@ export default {
this.right = right this.right = right
this.bottom = bottom this.bottom = bottom
this.width = width this.width = width
console.log('width3:' + this.width) // console.log('width3:' + this.width)
this.height = height this.height = height
}, },
changeHeight(val) { changeHeight(val) {
...@@ -1160,7 +1160,7 @@ export default { ...@@ -1160,7 +1160,7 @@ export default {
this.right = right this.right = right
this.bottom = bottom this.bottom = bottom
this.width = width this.width = width
console.log('width4:' + this.width) // console.log('width4:' + this.width)
this.height = height this.height = height
}, },
// 从控制柄松开 // 从控制柄松开
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
v-for="(item, index) in componentDataInfo" v-for="(item, index) in componentDataInfo"
:key="index" :key="index"
:config="item" :config="item"
:class="{'gap_class':canvasStyleData.panel.gap==='yes'}"
/> />
</div> </div>
</template> </template>
...@@ -172,4 +173,7 @@ export default { ...@@ -172,4 +173,7 @@ export default {
flex-flow: row nowrap; flex-flow: row nowrap;
color: #9ea6b2; color: #9ea6b2;
} }
.gap_class{
padding:3px;
}
</style> </style>
...@@ -214,7 +214,7 @@ export default { ...@@ -214,7 +214,7 @@ export default {
}, },
componentData: { componentData: {
handler(newVal, oldVla) { handler(newVal, oldVla) {
console.log('11111') // console.log('11111')
}, },
deep: true deep: true
} }
...@@ -508,7 +508,7 @@ export default { ...@@ -508,7 +508,7 @@ export default {
} }
}, },
getRefLineParams(params) { getRefLineParams(params) {
console.log(params) // console.log(params)
const { vLine, hLine } = params const { vLine, hLine } = params
this.vLine = vLine this.vLine = vLine
this.hLine = hLine this.hLine = hLine
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
}, },
recordSnapshot(state) { recordSnapshot(state) {
console.log('recordSnapshot') // console.log('recordSnapshot')
// 添加新的快照 // 添加新的快照
state.snapshotData[++state.snapshotIndex] = deepCopy(state.componentData) state.snapshotData[++state.snapshotIndex] = deepCopy(state.componentData)
state.snapshotStyleData[state.snapshotIndex] = deepCopy(state.canvasStyleData) state.snapshotStyleData[state.snapshotIndex] = deepCopy(state.canvasStyleData)
......
...@@ -157,7 +157,7 @@ export default { ...@@ -157,7 +157,7 @@ export default {
info: '{"list":' + JSON.stringify(this.checkedList) + '}' info: '{"list":' + JSON.stringify(this.checkedList) + '}'
} }
post('/dataset/table/customPreview', table).then(response => { post('/dataset/table/customPreview', table).then(response => {
console.log(response) // console.log(response)
this.fields = response.data.fields this.fields = response.data.fields
this.data = response.data.data this.data = response.data.data
const datas = this.data const datas = this.data
......
...@@ -164,7 +164,7 @@ export default { ...@@ -164,7 +164,7 @@ export default {
}, },
methods: { methods: {
select(selection) { select(selection) {
console.log(selection) // console.log(selection)
}, },
// create() { // create() {
// this.formType = 'add' // this.formType = 'add'
......
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
methods: { methods: {
// hasLicense // hasLicense
executeAxios(options) { executeAxios(options) {
console.log(options) // console.log(options)
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论