-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spread on dynamic component - fixes #1307
- Loading branch information
1 parent
db21e80
commit ee7f676
Showing
4 changed files
with
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p>a: {{a}}</p> |
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,21 @@ | ||
export default { | ||
data: { | ||
props: { | ||
a: 1, | ||
}, | ||
}, | ||
|
||
html: ` | ||
<p>a: 1</p> | ||
`, | ||
|
||
test(assert, component, target) { | ||
component.set({ | ||
props: { | ||
a: 2, | ||
}, | ||
}); | ||
|
||
assert.htmlEqual(target.innerHTML, `<p>a: 2</p>`); | ||
}, | ||
}; |
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,13 @@ | ||
<:Component {Foo} {{...props}} /> | ||
|
||
<script> | ||
import Foo from './Foo.html'; | ||
|
||
export default { | ||
data() { | ||
return { | ||
Foo | ||
}; | ||
} | ||
}; | ||
</script> |