Skip to content

Commit

Permalink
fix(mini-runner): 修复支付宝 picker 报错,fix #6804
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj committed Jul 8, 2020
1 parent 3303ba6 commit b09fe0b
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit b09fe0b

Please sign in to comment.