From c0b730946101c6710bf74f731582f4a532918289 Mon Sep 17 00:00:00 2001 From: meixg Date: Mon, 3 Jun 2019 20:47:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=84=E4=BB=B6=E4=B8=AD=E6=B2=A1?= =?UTF-8?q?=E6=9C=89child=EF=BC=8C=E5=8F=AA=E6=9C=89=20scopedslot=20?= =?UTF-8?q?=E6=97=B6=EF=BC=8Cscopedslot=20=E4=B8=8D=E4=BC=9A=E8=A2=AB?= =?UTF-8?q?=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/mars-build/src/compiler/template/generate.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/mars-build/src/compiler/template/generate.js b/packages/mars-build/src/compiler/template/generate.js index 26103f5e..5cd2fa9d 100644 --- a/packages/mars-build/src/compiler/template/generate.js +++ b/packages/mars-build/src/compiler/template/generate.js @@ -55,10 +55,6 @@ module.exports = function generate(obj, options = {}) { return `${spaceLine}<${tag}${attrs ? ' ' + attrs : ''} />${ifText}`; } - if (!child) { - return `${spaceLine}<${tag}${attrs ? ' ' + attrs : ''}>${ifText}`; - } - return `${spaceLine}<${tag}${attrs ? ' ' + attrs : ''}>${child || ''}${slots || ''}${ifText}`; };