-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(compiler-dom): comments in the v-if branchs should be ignored whe…
- Loading branch information
1 parent
3ef1fcc
commit 7c74feb
Showing
3 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
packages/compiler-dom/__tests__/transforms/__snapshots__/warnTransitionChildren.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`the v-if/else-if/else branchs in Transition should ignore comments 1`] = ` | ||
"const _Vue = Vue | ||
return function render(_ctx, _cache) { | ||
with (_ctx) { | ||
const { openBlock: _openBlock, createBlock: _createBlock, createCommentVNode: _createCommentVNode, createVNode: _createVNode, Fragment: _Fragment, Transition: _Transition, withCtx: _withCtx } = _Vue | ||
return (_openBlock(), _createBlock(_Transition, null, { | ||
default: _withCtx(() => [ | ||
a | ||
? (_openBlock(), _createBlock(\\"div\\", { key: 0 }, \\"hey\\")) | ||
: b | ||
? (_openBlock(), _createBlock(\\"div\\", { key: 1 }, \\"hey\\")) | ||
: (_openBlock(), _createBlock(\\"div\\", { key: 2 }, [ | ||
c | ||
? (_openBlock(), _createBlock(\\"p\\", { key: 0 })) | ||
: (_openBlock(), _createBlock(_Fragment, { key: 1 }, [ | ||
_createCommentVNode(\\" this should not be ignored \\"), | ||
_createVNode(\\"p\\") | ||
], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */)) | ||
])) | ||
]), | ||
_: 1 /* STABLE */ | ||
})) | ||
} | ||
}" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters