File tree Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-highlight-code" ,
3
3
"private" : false ,
4
- "version" : " 0.1.2 " ,
4
+ "version" : " 0.1.3 " ,
5
5
"license" : " MIT" ,
6
6
"main" : " ./dist/vue3-highlight.umd.js" ,
7
7
"module" : " ./dist/vue3-highlight.es.js" ,
43
43
" vue" ,
44
44
" highlight.js"
45
45
]
46
- }
46
+ }
Original file line number Diff line number Diff line change @@ -23,8 +23,19 @@ const dark = 'dark'
23
23
</script >
24
24
<template >
25
25
<div class =" wrapper" >
26
- <HighCode class =" code" :codeValue =" value" :theme =" dark" :lang =" vue" ></HighCode >
27
- <HighCode class =" code" :codeValue =" value" :theme =" light" :lang =" vue" ></HighCode >
26
+ <HighCode
27
+ :codeLines =" true"
28
+ class =" code"
29
+ :codeValue =" value"
30
+ :theme =" dark"
31
+ :lang =" vue"
32
+ ></HighCode >
33
+ <HighCode
34
+ class =" code"
35
+ :codeValue =" value"
36
+ :theme =" light"
37
+ :lang =" vue"
38
+ ></HighCode >
28
39
</div >
29
40
</template >
30
41
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ nextTick(() => {
124
124
<!-- <div class="code_area">
125
125
<div>1</div>
126
126
</div> -->
127
- <div class =" code_area_lines" >
127
+ <div class =" code_area_lines" v-if = " codeLines " >
128
128
<div
129
129
:class =" {
130
130
dark: props.theme === 'dark',
You can’t perform that action at this time.
0 commit comments