提交 352e8919 编写于 作者: d-u-a's avatar d-u-a

fix: nvue 模板编译后没有去除首尾空格换行符导致占用组件高度问题

上级 8cbc186f
......@@ -1648,6 +1648,7 @@ function parse (
// condense consecutive whitespaces into single space
text = text.replace(whitespaceRE, ' ');
}
text = text.trim();
var res;
var child;
if (!inVPre && text !== ' ' && (res = parseText(text, delimiters))) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册