-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01faeba
commit fa37b85
Showing
7 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
7 changes: 7 additions & 0 deletions
7
...src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/expected.html
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,7 @@ | ||
<x-component> | ||
<template shadowrootmode="open"> | ||
<div> | ||
foobar | ||
</div> | ||
</template> | ||
</x-component> |
3 changes: 3 additions & 0 deletions
3
...rver/src/__tests__/fixtures/superclass/render-in-superclass/template-in-subclass/index.js
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,3 @@ | ||
export const tagName = 'x-component'; | ||
export { default } from 'x/component'; | ||
export * from 'x/component'; |
3 changes: 3 additions & 0 deletions
3
...s/superclass/render-in-superclass/template-in-subclass/modules/x/component/component.html
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,3 @@ | ||
<template> | ||
<div>Hello from the subclass {hello}</div> | ||
</template> |
5 changes: 5 additions & 0 deletions
5
...res/superclass/render-in-superclass/template-in-subclass/modules/x/component/component.js
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,5 @@ | ||
import FancyElement from 'x/fancyElement'; | ||
|
||
export default class extends FancyElement { | ||
hello = 'foobar'; | ||
} |
8 changes: 8 additions & 0 deletions
8
...perclass/render-in-superclass/template-in-subclass/modules/x/fancyElement/fancyElement.js
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,8 @@ | ||
import { LightningElement } from 'lwc'; | ||
import tmpl from './tmpl.html'; | ||
|
||
export default class extends LightningElement { | ||
render() { | ||
return tmpl; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...res/superclass/render-in-superclass/template-in-subclass/modules/x/fancyElement/tmpl.html
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,3 @@ | ||
<template> | ||
<div>{hello}</div> | ||
</template> |