提交 823a8006 编写于 作者: d-u-a's avatar d-u-a

update: app-vue 使用 <ad> 组件时提示用户开启V3编译

上级 20df652b
...@@ -10,7 +10,10 @@ function removeAttr (el, name) { ...@@ -10,7 +10,10 @@ function removeAttr (el, name) {
module.exports = { module.exports = {
preTransformNode (el, { preTransformNode (el, {
warn warn
}) { }) {
if (process.env.UNI_PLATFORM === 'app-plus' && el.tag === 'ad') {
warn("app-vue平台, <ad> 组件暂不支持非 V3编译, 详见: https://ask.dcloud.net.cn/article/36599")
}
if (el.tag === 'slot' && !el.attrsMap['name']) { if (el.tag === 'slot' && !el.attrsMap['name']) {
el.attrsList.push({ el.attrsList.push({
name: 'SLOT_DEFAULT', name: 'SLOT_DEFAULT',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册