xuruiqian
2025-02-25 e85ab165147c37b571ea67ce6f6ae9ae55a96070
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<template>
    <div class="stem-content">
        <div class="stem-show"
            v-if="mobilequestion.paper != null && mobilequestion.paper[mobilequestion.questionIndex].stem">
            <WangEditorShow :content="mobilequestion.paper[mobilequestion.questionIndex].stem" />
        </div>
    </div>
</template>
  
<script>
import * as icon from '@element-plus/icons-vue'
import { getCurrentInstance, onBeforeUnmount, onMounted, reactive, toRefs } from "vue";
import { useBasicInfoStore } from "../../../store/basicInfo"
import { useMobileQurstionStore } from "../../../store/mobilequestion"
import WangEditorShow from './wangeditorshow.vue';
 
export default {
    name: "question",
    components: {
        WangEditorShow
    },
    setup() {
        let { proxy } = getCurrentInstance();
        const useStore = useBasicInfoStore()
        const mobilequestion = useMobileQurstionStore()
        const state = reactive({
        });
 
        onMounted(() => {
            Init();
        });
        onBeforeUnmount(() => {
 
        });
 
 
        const Init = () => {
        };
 
 
        return {
            ...toRefs(state),
            icon,
            mobilequestion
        }
    },
}
</script>
  
<style scoped lang="scss">
.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    //justify-content: center;
}
 
.stem-content {
    @extend .center;
    background-color: #f5f5f5;
    overflow: auto;
    width: 100%;
}
 
.stem-show {
    width: 95vw;
    overflow: auto;
    border-radius: 10px;
}
</style>