File tree Expand file tree Collapse file tree 6 files changed +12
-10
lines changed Expand file tree Collapse file tree 6 files changed +12
-10
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.5 " ,
4
+ "version" : " 0.1.6 " ,
5
5
"license" : " MIT" ,
6
6
"main" : " ./dist/vue3-highlight.umd.js" ,
7
7
"module" : " ./dist/vue3-highlight.es.js" ,
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export default {
20
20
const light = ' light'
21
21
const vue = ' vue'
22
22
const dark = ' dark'
23
+ const height = ' 200px'
23
24
</script >
24
25
<template >
25
26
<div class =" wrapper" >
@@ -29,6 +30,7 @@ const dark = 'dark'
29
30
:codeValue =" value"
30
31
:theme =" dark"
31
32
:lang =" vue"
33
+ :maxHeight =" height"
32
34
></HighCode >
33
35
<HighCode
34
36
class =" code"
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ const getContent = () => {
65
65
cursor : pointer ;
66
66
transition : 0.3s opacity linear ;
67
67
opacity : 0.5 ;
68
- height : 40 px ;
68
+ height : 30 px ;
69
69
width : 80px ;
70
70
// float: right;
71
71
right : 0px ;
Original file line number Diff line number Diff line change @@ -194,8 +194,8 @@ nextTick(() => {
194
194
& _header {
195
195
position : relative ;
196
196
display : flex ;
197
- justify-content : space-around ;
198
- height : 40 px ;
197
+ justify-content : flex-start ;
198
+ height : 30 px ;
199
199
width : 100% ;
200
200
}
201
201
pre code {
@@ -222,7 +222,7 @@ nextTick(() => {
222
222
flex-direction : column ;
223
223
width : 10px ;
224
224
// justify-content: center;
225
- padding-top : 40 px ;
225
+ padding-top : 30 px ;
226
226
align-items : center ;
227
227
position : absolute ;
228
228
transform : translateX (6px );
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ const props = defineProps({
19
19
align-items : center ;
20
20
justify-content : center ;
21
21
width : 40px ;
22
- height : 40 px ;
23
- position : absolute ;
24
- left : 0px ;
22
+ height : 30 px ;
23
+ position : relative ;
24
+ // left: 0px;
25
25
& _word {
26
26
width : 20px ;
27
27
height : 20px ;
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ export default defineConfig({
9
9
build : {
10
10
lib : {
11
11
entry : resolve ( __dirname , 'src/build.js' ) ,
12
- name : 'vue3 -highlight' ,
13
- fileName : ( format ) => `vue3 -highlight.${ format } .js`
12
+ name : 'vue -highlight-code ' ,
13
+ fileName : ( format ) => `vue -highlight-code .${ format } .js`
14
14
} ,
15
15
sourcemap : true ,
16
16
rollupOptions : {
You can’t perform that action at this time.
0 commit comments