-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support object class binding in stubbed functional components (#…
…1476) * feat: support object class binding in stubbed functional components * fix: typo * fix: do not check for strict true
- Loading branch information
1 parent
aff87f8
commit 55f7eac
Showing
3 changed files
with
52 additions
and
3 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
22 changes: 22 additions & 0 deletions
22
test/resources/components/component-with-functional-child.vue
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,22 @@ | ||
<template> | ||
<functional-component | ||
:class="{ bar: a + b === 2, foo: a === 1, qux: a === 2 }" | ||
/> | ||
</template> | ||
|
||
<script> | ||
import FunctionalComponent from './functional-component.vue' | ||
export default { | ||
components: { | ||
FunctionalComponent | ||
}, | ||
data() { | ||
return { | ||
a: 1, | ||
b: 1 | ||
} | ||
} | ||
} | ||
</script> |
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