File tree 1 file changed +24
-9
lines changed
packages/@vuepress/theme-default/global-components
1 file changed +24
-9
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" theme-code-group" >
3
3
<div class =" theme-code-group__nav" >
4
- <button
5
- v-for =" (tab, i) in codeTabs"
6
- :key =" tab.title"
7
- class =" theme-code-group__nav-tab"
8
- :class =" {'theme-code-group__nav-tab-active': i === activeCodeTabIndex}"
9
- @click =" changeCodeTab(i)"
10
- >
11
- {{ tab.title }}
12
- </button >
4
+ <ul class =" theme-code-group__ul" >
5
+ <li
6
+ v-for =" (tab, i) in codeTabs"
7
+ :key =" tab.title"
8
+ class =" theme-code-group__li"
9
+ >
10
+ <button
11
+ class =" theme-code-group__nav-tab"
12
+ :class =" {
13
+ 'theme-code-group__nav-tab-active': i === activeCodeTabIndex,
14
+ }"
15
+ @click =" changeCodeTab(i)"
16
+ >
17
+ {{ tab.title }}
18
+ </button >
19
+ </li >
20
+ </ul >
13
21
</div >
14
22
<slot />
15
23
<pre
@@ -71,6 +79,13 @@ export default {
71
79
padding-left : 10px ;
72
80
padding-top : 10px ;
73
81
}
82
+ .theme-code-group__ul {
83
+ margin : auto 0 ;
84
+ padding-left : 0 ;
85
+ display : inline - flex ;
86
+ list-style : none ;
87
+ }
88
+ .theme-code-group__li {}
74
89
.theme-code-group__nav-tab {
75
90
border : 0 ;
76
91
padding : 5px ;
You can’t perform that action at this time.
0 commit comments