File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Expand file tree Collapse file tree 3 files changed +14
-12
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.6 " ,
4
+ "version" : " 0.1.8 " ,
5
5
"license" : " MIT" ,
6
- "main" : " ./dist/vue3 -highlight.umd.js" ,
7
- "module" : " ./dist/vue3 -highlight.es.js" ,
6
+ "main" : " ./dist/vue -highlight-code .umd.js" ,
7
+ "module" : " ./dist/vue -highlight-code .es.js" ,
8
8
"files" : [
9
9
" dist"
10
10
],
11
11
"exports" : {
12
12
"." : {
13
- "import" : " ./dist/vue3 -highlight.es.js" ,
14
- "require" : " ./dist/vue3 -highlight.umd.js"
13
+ "import" : " ./dist/vue -highlight-code .es.js" ,
14
+ "require" : " ./dist/vue -highlight-code .umd.js"
15
15
},
16
16
"./dist/style.css" : " ./dist/style.css"
17
17
},
28
28
"@vitejs/plugin-vue" : " ^2.3.3" ,
29
29
"sass" : " ^1.26.5" ,
30
30
"sass-loader" : " ^8.0.2" ,
31
- "vite" : " ^2.9.9"
31
+ "vite" : " ^2.9.9" ,
32
+ "vue-highlight-code" : " ^0.1.7-1"
32
33
},
33
34
"repository" : {
34
35
"type" : " git" ,
Original file line number Diff line number Diff line change 2
2
// This starter template is using Vue 3 <script setup> SFCs
3
3
// Check out https://vuejs.org/api/sfc-script-setup.html#script-setup
4
4
// import HelloWorld from './components/HelloWorld.vue'
5
- import HighCode from ' ./components/HighCode.vue'
5
+ // import HighCode from './components/HighCode.vue'
6
+ import { HighCode } from ' vue-highlight-code'
7
+ import ' vue-highlight-code/dist/style.css'
6
8
// import textloader from './textLoader.js'
7
9
// import 'vue-highlight-code/dist/style.css'
8
10
const value = ` import { HighCode } from 'vue-highlight-code';
@@ -25,7 +27,6 @@ const height = '200px'
25
27
<template >
26
28
<div class =" wrapper" >
27
29
<HighCode
28
- :codeLines =" true"
29
30
class =" code"
30
31
:codeValue =" value"
31
32
:theme =" dark"
Original file line number Diff line number Diff line change @@ -598,10 +598,10 @@ vite@^2.9.9:
598
598
optionalDependencies :
599
599
fsevents "~2.3.2"
600
600
601
- vue-highlight-code@^0.1.1 :
602
- version "0.1.1"
603
- resolved "https://registry.npmjs.org/vue-highlight-code/-/vue-highlight-code-0.1.1.tgz#4b018fcb5a14add0d36a3809947fc22a4a9e1f64 "
604
- integrity sha512-ODV4WkrjQCdA14DyoapcTO71lvvOykG9IPAHEZPYdtpNdfyoGC9+lK+bnn2bjYHKrY6ObIM6/hKKtvai/JMEAA ==
601
+ vue-highlight-code@^0.1.7- 1 :
602
+ version "0.1.7- 1"
603
+ resolved "https://registry.npmjs.org/vue-highlight-code/-/vue-highlight-code-0.1.7- 1.tgz#8a4e7a754406f6d7cf99fd0bb00030c934a4ee6b "
604
+ integrity sha512-UDl6H/GwJvaNfoos+zZtcG5n51Xmc9RnIGcvTJA1rYo0upn5jN5yc7P3Wd9Fs8eefbqKTuFu+7u1yd4ztZmhdg ==
605
605
dependencies :
606
606
highlight.js "^11.5.1"
607
607
vue "^3.2.25"
You can’t perform that action at this time.
0 commit comments