hyb
2025-05-20 e8003b5c66494c398fa8b716e0872771e2ea4af8
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
33
34
35
36
37
38
39
40
41
42
43
<template>
    <MonacoEditor
        :height="codeHeight"
        language="text"
        :code="msg"
        :options="options"
    >
    </MonacoEditor>
</template>
 
<script>
import MonacoEditor from "vue-monaco-editor";
export default {
    name: "RunCodeResult",
    components: {
        MonacoEditor
    },
    props: {
        msg: {
            required: true
        }
    },
    data() {
        return {
            options: {
                selectOnLineNumbers: false,
                readOnly: true,
                scrollbar: {
                    vertical: "hidden",
                    verticalHasArrows: false
                }
            }
        };
    },
    computed: {
        codeHeight() {
            return window.screen.height - 230;
        }
    }
};
</script>
 
<style scoped></style>