Commit 08d0bbc2 authored by 郭志伟's avatar 郭志伟

fix: 问题修复

parent 2f48d124
......@@ -27,7 +27,7 @@ export default class OperationPanel extends Mixins(TransformStyleMixin) {
return this.pageData.elements.map(v => v.point);
}
@Watch('layout')
@Watch('layout', { deep: true })
onLayoutChange(val) {
const lastGridItemPoint = val[val.length - 1];
if (lastGridItemPoint && lastGridItemPoint.w) {
......
......@@ -37,7 +37,7 @@ export default class ContextMenuMixin extends Vue {
const elements = this.pageData.elements[this.curEleIndex];
const component = document.getElementById(elements.id);
const height = component ? getStyle(component, 'height') : 0;
// console.log('adjustHeight', height);
console.log('adjustHeight', height);
this.updatePageInfo({ containerIndex: this.curEleIndex, data: { ...elements, point: { ...elements.point, h: Math.ceil(+height || elements.point.h) } } });
}
}
\ No newline at end of file
......@@ -1491,9 +1491,9 @@
"integrity": "sha512-uOCUKu5mvX3PWee+7ZFXQSNIR1V5SN2JVE2yANmW9/wQOgpEct291gXGok8VMw0009HlTWB4JATURPwyOP2DFg=="
},
"@qg/cherry-ui": {
"version": "2.21.1-beta7",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcherry-ui/-/cherry-ui-2.21.1-beta7.tgz",
"integrity": "sha512-9CcQ7eTwQTjHnaQ4DAk18WWTCasiRMK9iKRN01/td2HXAPemjPnUbQsEnyxZJgsvGDkaJGFSkMucDjlAtUigvA==",
"version": "2.21.1-beta8",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcherry-ui/-/cherry-ui-2.21.1-beta8.tgz",
"integrity": "sha512-6bSv1iTQ73IF2NG5ssQbIg/DDwa3r3kv/t6DWfp/9y/aVB1Eyj4ddVesP3+TysSKf+S5ZN4unva/M5Lj3OPuHg==",
"requires": {
"@popperjs/core": "^2.5.4",
"vue-lazyload": "^1.3.3",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment