From bd35b9adb971a251b1ba93bb2a8533582a758ae7 Mon Sep 17 00:00:00 2001 From: qiang Date: Fri, 9 Apr 2021 15:32:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(mp):=20=E4=BC=98=E5=8C=96=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E6=8F=92=E6=A7=BD=E8=8A=82=E7=82=B9=E6=B7=B1=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../__tests__/compiler-extra.spec.js | 20 +++++++++++--- .../lib/template/generate.js | 13 +++++++--- .../lib/template/traverse.js | 26 ++++++++++++++++--- 3 files changed, 47 insertions(+), 12 deletions(-) diff --git a/packages/uni-template-compiler/__tests__/compiler-extra.spec.js b/packages/uni-template-compiler/__tests__/compiler-extra.spec.js index a75db7311..052e92b38 100644 --- a/packages/uni-template-compiler/__tests__/compiler-extra.spec.js +++ b/packages/uni-template-compiler/__tests__/compiler-extra.spec.js @@ -237,16 +237,28 @@ describe('mp:compiler-extra', () => { assertCodegen( 'text', - 'text' + 'text' ) assertCodegen( 'text123213', - 'text123213' + 'text123213' ) assertCodegen( '', - '' + '' + ) + assertCodegen( + 'view1view2', + 'view1view2' + ) + assertCodegen( + '