提交 a68ce524 编写于 作者: fxy060608's avatar fxy060608

Merge branch 'dev' of https://github.com/dcloudio/uni-app into alpha

...@@ -58,8 +58,14 @@ exports.default = postcss.plugin('add-id', (options) => (root) => { ...@@ -58,8 +58,14 @@ exports.default = postcss.plugin('add-id', (options) => (root) => {
// So all leading spaces must be eliminated to avoid problems. // So all leading spaces must be eliminated to avoid problems.
selector.first.spaces.before = ''; selector.first.spaces.before = '';
} }
// fixed by xxxxxx (h5 平台继续使用 attribute,其他平台使用 className) // fixed by xxxxxx (h5,app-plus v3 平台继续使用 attribute,其他平台使用 className)
if(process.env.UNI_PLATFORM === 'h5'){ if(
process.env.UNI_PLATFORM === 'h5' ||
(
process.env.UNI_PLATFORM === 'app-plus' &&
process.env.UNI_USING_V3
)
){
selector.insertAfter(node, selectorParser.attribute({ selector.insertAfter(node, selectorParser.attribute({
attribute: id attribute: id
})); }));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册