Skip to content

Commit

Permalink
修复ReactDOMHtml中class为数组时不生效的bug。
Browse files Browse the repository at this point in the history
  • Loading branch information
road0001 committed Jan 10, 2024
1 parent 57dd312 commit b22b741
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions VERSION.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- 加入构建脚本。
- 加入ReactDOMHtml模块导出。
- 修复使用标准参数时无法输出html文本的bug。
- 修复ReactDOMHtml中class为数组时不生效的bug。
- Version: 1.1.3 Build 20240109
- 加入ReactDOMHtml。
- 整理项目资源。
Expand Down
3 changes: 3 additions & 0 deletions react.extensions.dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ function reactDOMHtml(dom_tag,dom_attr,dom_html,dom_html_after){
dom_attr_fix[key_fix]=dom_attr[key];
}
}
if(typeof dom_attr_fix.className==`object` && dom_attr_fix.className.length){
dom_attr_fix.className=dom_attr_fix.className.join(` `);
}
dom_attr=dom_attr_fix;

//dom子项处理
Expand Down
3 changes: 3 additions & 0 deletions react.extensions.dom.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ function reactDOMHtml(dom_tag,dom_attr,dom_html,dom_html_after){
dom_attr_fix[key_fix]=dom_attr[key];
}
}
if(typeof dom_attr_fix.className==`object` && dom_attr_fix.className.length){
dom_attr_fix.className=dom_attr_fix.className.join(` `);
}
dom_attr=dom_attr_fix;

//dom子项处理
Expand Down

0 comments on commit b22b741

Please sign in to comment.