mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-19 22:43:32 -04:00
!18 fix error log in media query
Merge pull request !18 from zhangbingce/lts
This commit is contained in:
@@ -407,7 +407,10 @@ function compileCustomComponent(
|
||||
*/
|
||||
function resetElementStyle(vm: Vm, element: Element): void {
|
||||
// Add judgment statements to avoid repeatedly calling 'setClass' function.
|
||||
const len = element.children.length;
|
||||
let len = 0;
|
||||
if (element.children !== undefined) {
|
||||
len = element.children.length;
|
||||
}
|
||||
const css = vm.css || {};
|
||||
const mqArr = css['@MEDIA'];
|
||||
for (let ii = 0; ii < len; ii++) {
|
||||
|
||||
Reference in New Issue
Block a user