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

feat: match-media => uni-match-media

上级 e768945f
......@@ -87,7 +87,10 @@ function compileTemplate (source, options, compile) {
}
const compilerModule = {
preTransformNode (el, options) {
preTransformNode (el, options) {
if (el.tag === 'match-media' && process.env.UNI_PLATFORM !== 'mp-weixin') {
el.tag = 'uni-match-media'
}
if (process.env.UNI_PLATFORM === 'quickapp-native') {
// 排查所有标签
(options.isUnaryTag.autoComponents || (options.isUnaryTag.autoComponents = new Set())).add(el.tag)
......
......@@ -14,11 +14,7 @@ function removeAttr (el, name) {
module.exports = {
preTransformNode (el, {
warn
}) {
if (el.tag === 'match-media' && process.env.UNI_PLATFORM !== 'mp-weixin') {
el.tag = 'uni-match-media'
}
}) {
if (process.env.UNI_PLATFORM === 'app-plus' && el.tag === 'ad') {
warn('app-vue平台, <ad> 组件暂不支持非 V3 编译, 详见: https://ask.dcloud.net.cn/article/36599')
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册