File tree 3 files changed +14
-1
lines changed
3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 14
14
"prismjs" : " ^1.29.0" ,
15
15
"vue" : " ^3.2.13" ,
16
16
"vue-live" : " ^2.5.4" ,
17
+ "vue3-progress" : " 0.0.1-beta4" ,
17
18
"vue-skia" : " workspace:*"
18
19
},
19
20
"devDependencies" : {
Original file line number Diff line number Diff line change 1
1
<template >
2
+ <vue3-progress />
2
3
<main v-if =" !loading" style =" text-align : center " >
3
4
<template v-if =" true " >
4
5
<h1 >Vue Skia</h1 >
19
20
</div >
20
21
<VueLive
21
22
:editorProps =" { lineNumbers: true }"
23
+ :delay =" 600"
22
24
:code =" !loading && !debug ? code : LoadingCode"
23
25
:layout =" CustomLayout"
24
26
:components =" {
@@ -113,6 +115,7 @@ import code from "./code";
113
115
import LoadingCode from " ./loading-code" ;
114
116
import " vue-live/style.css" ;
115
117
import " prism-themes/themes/prism-night-owl.css" ;
118
+
116
119
export default defineComponent ({
117
120
name: " App" ,
118
121
components: {
@@ -159,11 +162,15 @@ export default defineComponent({
159
162
}
160
163
161
164
this .loading = false ;
165
+ (this as unknown as { $progress: { start: () => void ; finish: () => void } }).$progress .finish ();
162
166
});
163
167
},
168
+ created() {
169
+ (this as unknown as { $progress: { start: () => void ; finish: () => void } }).$progress .start ();
170
+ },
164
171
methods: {
165
172
input(event : any ) {
166
- this .code = event .target ._value ;
173
+ // this.code = event.target._value;
167
174
},
168
175
copy() {
169
176
try {
Original file line number Diff line number Diff line change 1
1
import { createApp } from "vue" ;
2
2
import App from "./App.vue" ;
3
3
import { VueSkia } from 'vue-skia'
4
+ import Vue3Progress from "vue3-progress" ;
4
5
5
6
const app = createApp ( App ) ;
6
7
app . use ( VueSkia ) ;
8
+ app . use ( Vue3Progress , {
9
+ position : "fixed" ,
10
+ color : "rgb(0, 161, 132)" ,
11
+ } )
7
12
app . mount ( "#app" ) ;
You can’t perform that action at this time.
0 commit comments