Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(mini-runner): 修复支付宝 picker 报错,fix #6804 #6972

Merged
merged 2 commits into from
Jul 8, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/taro-mini-runner/src/template/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' ? '<view>\n' : ''}<block ${Adapter.for}="{{i.${Shortcuts.Childnodes}}}" ${Adapter.key}="id">
${child}
</${Adapter.type === PLATFORMS.ALIPAY && comp.nodeName === 'picker' ? 'view' : 'block'}>
</block>${Adapter.type === PLATFORMS.ALIPAY && comp.nodeName === 'picker' ? '\n</view>' : ''}
`
return `
<template name="tmpl_${level}_${comp.nodeName}">
Expand Down