File tree Expand file tree Collapse file tree 1 file changed +24
-24
lines changed Expand file tree Collapse file tree 1 file changed +24
-24
lines changed Original file line number Diff line number Diff line change 1
- import Vue , { VNode } from " vue" ;
2
- import VueMarkdown , { Options } from " ../../dist/VueMarkdown" ;
1
+ import Vue , { VNode } from ' vue'
2
+ import VueMarkdown , { Options } from ' ../../dist/VueMarkdown'
3
3
4
- Vue . config . productionTip = false ;
4
+ Vue . config . productionTip = false
5
5
6
6
const App = Vue . extend ( {
7
- name : " App" ,
7
+ name : ' App' ,
8
8
components : {
9
- VueMarkdown
9
+ VueMarkdown,
10
10
} ,
11
11
data ( ) {
12
12
return {
13
13
i : 0 ,
14
14
options : {
15
- html : true
16
- } as Options
17
- } ;
15
+ html : true ,
16
+ } as Options ,
17
+ }
18
18
} ,
19
19
render ( h ) : VNode {
20
- return h ( " div" , [
20
+ return h ( ' div' , [
21
21
h (
22
- " button" ,
22
+ ' button' ,
23
23
{
24
24
on : {
25
25
click : ( ) => {
26
- this . i ++ ;
27
- }
28
- }
26
+ this . i ++
27
+ } ,
28
+ } ,
29
29
} ,
30
- " Increment"
30
+ ' Increment'
31
31
) ,
32
- h ( " vue-markdown" , {
32
+ h ( ' vue-markdown' , {
33
33
props : {
34
- source : `# This is a markdown heading\n## This is your number: ${ this . i } . <i>HTML is allowed via options</i>` ,
35
- options : this . options
36
- }
37
- } )
38
- ] ) ;
39
- }
40
- } ) ;
34
+ source : `# This is a markdown heading\n## This is your number: ${ this . i } .\n <i>HTML is allowed via options</i>` ,
35
+ options : this . options ,
36
+ } ,
37
+ } ) ,
38
+ ] )
39
+ } ,
40
+ } )
41
41
42
42
new Vue ( {
43
- render : h => h ( App )
44
- } ) . $mount ( " #app" ) ;
43
+ render : ( h ) => h ( App ) ,
44
+ } ) . $mount ( ' #app' )
You can’t perform that action at this time.
0 commit comments