Skip to content

Commit 7339359

Browse files
committed
chore: format example file
1 parent 66f45a0 commit 7339359

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

example/src/index.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
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

66
const 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

4242
new Vue({
43-
render: h => h(App)
44-
}).$mount("#app");
43+
render: (h) => h(App),
44+
}).$mount('#app')

0 commit comments

Comments
 (0)