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'
33
4- Vue . config . productionTip = false ;
4+ Vue . config . productionTip = false
55
66const App = Vue . extend ( {
7- name : " App" ,
7+ name : ' App' ,
88 components : {
9- VueMarkdown
9+ VueMarkdown,
1010 } ,
1111 data ( ) {
1212 return {
1313 i : 0 ,
1414 options : {
15- html : true
16- } as Options
17- } ;
15+ html : true ,
16+ } as Options ,
17+ }
1818 } ,
1919 render ( h ) : VNode {
20- return h ( " div" , [
20+ return h ( ' div' , [
2121 h (
22- " button" ,
22+ ' button' ,
2323 {
2424 on : {
2525 click : ( ) => {
26- this . i ++ ;
27- }
28- }
26+ this . i ++
27+ } ,
28+ } ,
2929 } ,
30- " Increment"
30+ ' Increment'
3131 ) ,
32- h ( " vue-markdown" , {
32+ h ( ' vue-markdown' , {
3333 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+ } )
4141
4242new 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