Merge pull request #452 from mingkang1993/patch-11

Update wxss.js
This commit is contained in:
当耐特 2019-10-08 02:55:23 -05:00 committed by GitHub
commit a7b4384d4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -18,11 +18,16 @@ function compileWxss(str) {
})
})
rule.selectors[index] = cssStringify(sltObjs)
})
})
return css.stringify(obj)
// let cssMain = css.stringify(obj);
// if(cssMain.includes('flex:')){
// cssMain =
// }
return css.stringify(obj).replace(new RegExp('flex:','g'), 'display: flex; flex:')
}
module.exports = compileWxss