diff --git a/src/components/Alert/Alert.vue b/src/components/Alert/Alert.vue index 2693e9e..74f0cf6 100644 --- a/src/components/Alert/Alert.vue +++ b/src/components/Alert/Alert.vue @@ -48,14 +48,15 @@ import { computed } from "vue"; import { CheckCircle, XCircle, AlertTriangle, Info, X } from "lucide-vue-next"; import { useAlertStore } from "."; +import { useRequiredInjection } from "@/utils/Common"; -const alertStore = useAlertStore(); +const alertStore = useRequiredInjection(useAlertStore); // Computed classes for different alert types const alertClasses = computed(() => { const baseClasses = "shadow-lg max-w-sm"; - switch (alertStore?.alertState.value.type) { + switch (alertStore.alertState.value.type) { case "success": return `${baseClasses} alert-success`; case "error": diff --git a/src/components/LogicAnalyzer/LogicAnalyzerManager.ts b/src/components/LogicAnalyzer/LogicAnalyzerManager.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/components/equipments/DDSPropertyEditor.vue b/src/components/equipments/DDSPropertyEditor.vue index 1586005..937ac17 100644 --- a/src/components/equipments/DDSPropertyEditor.vue +++ b/src/components/equipments/DDSPropertyEditor.vue @@ -7,7 +7,12 @@
- + @@ -16,7 +21,13 @@ φ: {{ phase }}° - + {{ displayTimebase }} @@ -35,10 +46,15 @@
-
+
{{ name }}
@@ -51,8 +67,13 @@ - + @@ -63,8 +84,13 @@ 相位:
- +
@@ -75,9 +101,12 @@
自定义波形
- + @keyup.enter="applyCustomWaveform" + /> @@ -86,17 +115,26 @@
示例函数:
- - -
@@ -105,8 +143,16 @@
波形绘制
- +
-