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

feat(cli): wraps text in a <text> tag (nvue)

上级 7e0cd629
......@@ -17,10 +17,10 @@ const deprecated = {
}
}
if (process.env.UNI_USING_NVUE_COMPILER) {
if (process.env.UNI_USING_NVUE_COMPILER) {
const wrapperTextTag = function (el, options) {
const tag = el.tag
if (tag === 'text' || tag === 'button') {
if (tag === 'text' || tag === 'u-text' || tag === 'button') {
return
}
const children = el.children
......@@ -41,7 +41,7 @@ if (process.env.UNI_USING_NVUE_COMPILER) {
}
modules.push({
postTransformNode (el, options) {
postTransformNode (el, options) {
wrapperTextTag(el, options)
if (TAGS.includes(el.tag)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册