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 `