|
|
@@ -7,7 +7,7 @@ import LoadingDemo from "./LoadingDemo.vue";
|
|
|
import QingXiCheAndQvProcessEvent from "./event/QingXiCheAndQvProcessEvent.vue";
|
|
|
import { QingXiCheAndQvProcessEventStore } from "./event/store/QingXiCheAndQvProcessEventStore.js";
|
|
|
import { QingXiCheAndQvCarEvent } from "./js/QingXiCheAndQvCarEvent.js";
|
|
|
-import { watch, ref } from "vue";
|
|
|
+import { watch, ref, onMounted } from "vue";
|
|
|
|
|
|
import WindowTxt from "../WindowQingXiCheAndQv/WindowTxt.vue";
|
|
|
import { WindowTxtStore } from "@/components/WindowQingXiCheAndQv/store/WindowTxtStore.js";
|
|
|
@@ -39,6 +39,15 @@ const props = defineProps({
|
|
|
type: Boolean,
|
|
|
default: true,
|
|
|
},
|
|
|
+ /**
|
|
|
+ * 当前的模式
|
|
|
+ * 0 - 学习模式,会出现各种提示,进行理解学习
|
|
|
+ * 1 - 考试模式,不会有任何提示,自己想办法完成
|
|
|
+ */
|
|
|
+ eventMode : {
|
|
|
+ type: Number,
|
|
|
+ default: 0,
|
|
|
+ },
|
|
|
});
|
|
|
|
|
|
// 监听某个参数发生变化
|
|
|
@@ -53,7 +62,6 @@ watch(
|
|
|
}
|
|
|
)
|
|
|
|
|
|
-
|
|
|
// 定义发射给父组件的方法
|
|
|
const emits = defineEmits([
|
|
|
// 回调进度
|
|
|
@@ -260,6 +268,11 @@ const QvStepUpdate = (name) => {
|
|
|
|
|
|
}
|
|
|
|
|
|
+onMounted(() => {
|
|
|
+ QingXiCheAndQvProcessEventStore().obj.eventMode = props.eventMode;
|
|
|
+});
|
|
|
+
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<template>
|