fix: 修复批量设置过滤组件部分样式不适用问题

This commit is contained in:
wangjiahao
2025-02-28 13:42:37 +08:00
committed by 王嘉豪
parent d939b2ff5c
commit d9b4c2aa26

View File

@@ -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'],