aboutsummaryrefslogtreecommitdiff
path: root/doc/docs/.vuepress/components/CompilerModal.vue
blob: 65ae9b0933ac5303219ff9882e50c93121acd06a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<template>
	<modal name="compiler" @before-open="prepare()" height="auto" width="80%" scrollable>
		<yue-compiler :text="content" compileronly displayonly/>
	</modal>
</template>

<script>
	import Vue from 'vue';
	import VModal from 'vue-js-modal/dist/ssr.nocss';
	import 'vue-js-modal/dist/styles.css';
	Vue.use(VModal);
	import YueCompiler from './YueCompiler.vue';

	export default {
		components: {
			YueCompiler,
		},
		mounted () {
		},
		data() {
			return {
				content: "",
			};
		},
		methods: {
			prepare() {
				this.$data.content = window.yueCodes;
			},
		},
	}
</script>