File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,12 @@ export class Card extends Component {
6
6
static template = "awesome_owl.card" ;
7
7
static props = {
8
8
title : String ,
9
- text : String
9
+ slots : {
10
+ type : Object ,
11
+ shape : {
12
+ default : true
13
+ }
14
+ }
10
15
} ;
11
16
12
17
}
Original file line number Diff line number Diff line change 4
4
<t t-name =" awesome_owl.card" >
5
5
<div class =" p-3 border" >
6
6
<h3 ><t t-out =" props.title" /></h3 >
7
- <t t-out = " props.text " />
7
+ <t t-slot = " default " />
8
8
</div >
9
9
</t >
10
10
Original file line number Diff line number Diff line change 9
9
</div >
10
10
<div class =" p-3" >
11
11
<Counter />
12
- <Card title =" raw_card_title" text =" raw_card_text" />
13
- <Card title =" card_title" text =" card_text" />
12
+ <Card title =" raw_card_title" >
13
+ <Counter />
14
+ </Card >
15
+ <Card title =" card_title" >
16
+ <p >Lorem ipsum</p >
17
+ </Card >
14
18
</div >
15
19
<div >
16
20
<TodoList />
You can’t perform that action at this time.
0 commit comments