Skip to content

Commit

Permalink
refactor(compiler-sfc): make more explicit regarding template pad beh…
Browse files Browse the repository at this point in the history
…avior
  • Loading branch information
yyx990803 committed Apr 4, 2020
1 parent db50009 commit 5bf7251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/compiler-sfc/src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export function parse(
descriptor.template = createBlock(
node,
source,
pad
false
) as SFCTemplateBlock
} else {
warnDuplicateBlock(source, filename, node)
Expand Down Expand Up @@ -207,7 +207,7 @@ function createBlock(
loc,
attrs
}
if (node.tag !== 'template' && pad) {
if (pad) {
block.content = padContent(source, block, pad) + block.content
}
node.props.forEach(p => {
Expand Down

0 comments on commit 5bf7251

Please sign in to comment.