Skip to content

Commit

Permalink
(style-position)修复样式定位reset后未恢复默认值 (opentiny#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianxinnew authored Apr 23, 2024
1 parent d613b4e commit 4fd55d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/settings/styles/src/js/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ export const stringify = (originParseList, styleObject, config = {}) => {

// 在 styleObject 的,可能有改动,所以需要用 styleObject 拼接
for (const [key, value] of Object.entries(styleObject[item.selectors].rules)) {
str += `${key}: ${value};\n`
if (![null, undefined].includes(value)) {
str += `${key}: ${value};\n`
}
}
}
str += '}\n'
Expand Down

0 comments on commit 4fd55d4

Please sign in to comment.