File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export default defineComponent({
6
6
} ,
7
7
setup ( props , ctx ) {
8
8
return ( ) => {
9
- return < div > devui-tab </ div >
9
+ return < div > { ctx . slots . default ?. ( ) } </ div >
10
10
}
11
11
}
12
12
} )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export default defineComponent({
6
6
} ,
7
7
setup ( props , ctx ) {
8
8
return ( ) => {
9
- return < div > devui-tabs </ div >
9
+ return < div > { ctx . slots . default ?. ( ) } </ div >
10
10
}
11
11
}
12
12
} )
Original file line number Diff line number Diff line change 9
9
</div >
10
10
<!-- TODO: d-tabs -->
11
11
<d-tabs :showContent =" false" :activeTab =" componentTab" @activeTabChange =" activeTabChange($event)" >
12
- <d-tab id =" demo" title =" Demo" tabId =" demo" ></d-tab >
13
- <d-tab id =" api" title =" API" tabId =" api" ></d-tab >
12
+ <d-tab id =" demo" title =" Demo" tabId =" demo" >
13
+ <router-link to =" demo" >Demo</router-link >
14
+ </d-tab >
15
+ <d-tab id =" api" title =" API" tabId =" api" >
16
+ <router-link to =" api" >API</router-link >
17
+ </d-tab >
14
18
</d-tabs >
15
19
</div >
16
20
<div class =" examples-viewer" >
You can’t perform that action at this time.
0 commit comments