From d9b4c2aa26eaccb3278b0df61e4f3d3f12a24b42 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 28 Feb 2025 13:42:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=BF=87=E6=BB=A4=E7=BB=84=E4=BB=B6=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=A0=B7=E5=BC=8F=E4=B8=8D=E9=80=82=E7=94=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core-frontend/src/custom-component/component-list.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/custom-component/component-list.ts b/core/core-frontend/src/custom-component/component-list.ts index 6616ea57c4..a439861e1b 100644 --- a/core/core-frontend/src/custom-component/component-list.ts +++ b/core/core-frontend/src/custom-component/component-list.ts @@ -648,7 +648,14 @@ export function findBaseDeFaultAttr(componentName) { if (comp.component === componentName) { const stylePropertyInner = [] Object.keys(comp.style).forEach(styleKey => { - stylePropertyInner.push(styleKey) + if ( + (!['width', 'height'].includes(styleKey) && + componentName === 'VQuery' && + !Object.keys(commonStyle).includes(styleKey)) || + componentName !== 'VQuery' + ) { + stylePropertyInner.push(styleKey) + } }) result = { properties: ['common-style', 'background-overall-component'],