Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: detection of slots in script-less SFC (#2113)
Co-authored-by: johnsoncodehk <johnsoncodehk@gmail.com>
- Loading branch information
1 parent
a21f38d
commit b6dac62
Showing
3 changed files
with
68 additions
and
1 deletion.
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
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
6 changes: 6 additions & 0 deletions
6
...nguage-tools/vue-test-workspace/vue-component-meta/template-slots/component-no-script.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,6 @@ | ||
<template> | ||
<slot name="no-bind"></slot> | ||
<slot :num="123"></slot> | ||
<slot name="named-slot" str="str"></slot> | ||
<slot name="vbind" v-bind="{ num: 123, str: 'str' }"></slot> | ||
</template> |