From b09fe0bd88a1de15684030608ba28f343218c060 Mon Sep 17 00:00:00 2001 From: chenjiajian <798095202@qq.com> Date: Wed, 8 Jul 2020 16:29:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(mini-runner):=20=E4=BF=AE=E5=A4=8D=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=AE=9D=20picker=20=E6=8A=A5=E9=94=99=EF=BC=8Cfix=20?= =?UTF-8?q?#6804?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-mini-runner/src/template/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/taro-mini-runner/src/template/index.ts b/packages/taro-mini-runner/src/template/index.ts index 35d88c30e2b5..9e248ffbc851 100644 --- a/packages/taro-mini-runner/src/template/index.ts +++ b/packages/taro-mini-runner/src/template/index.ts @@ -74,9 +74,9 @@ function buildStandardComponentTemplate (comp: Component, level: number, support const children = voidElements.has(comp.nodeName) ? '' : ` - <${Adapter.type === PLATFORMS.ALIPAY && comp.nodeName === 'picker' ? 'view' : 'block'} ${Adapter.for}="{{i.${Shortcuts.Childnodes}}}" ${Adapter.key}="id"> + ${Adapter.type === PLATFORMS.ALIPAY && comp.nodeName === 'picker' ? '\n' : ''} ${child} - + ${Adapter.type === PLATFORMS.ALIPAY && comp.nodeName === 'picker' ? '\n' : ''} ` return `