refactor: 重构projectview页面结构

This commit is contained in:
2025-07-09 14:42:29 +08:00
parent c3bd61ed51
commit c5ce246caf
16 changed files with 822 additions and 882 deletions

View File

@@ -181,8 +181,8 @@
<script setup lang="ts">
import { ref, computed, shallowRef, onMounted } from "vue";
import motherboardSvg from "../components/equipments/svg/motherboard.svg";
import buttonSvg from "../components//equipments/svg/button.svg";
import motherboardSvg from "@/components/equipments/svg/motherboard.svg";
import buttonSvg from "@/components//equipments/svg/button.svg";
// Props
interface Props {

View File

@@ -136,7 +136,7 @@ import {
watch,
provide,
} from "vue";
import WireComponent from "./equipments/Wire.vue";
import WireComponent from "@/components/equipments/Wire.vue";
// diagram
import {
@@ -158,7 +158,7 @@ import type {
WireItem,
} from "./diagramManager";
import { CanvasCurrentSelectedComponentID } from "./InjectKeys";
import { CanvasCurrentSelectedComponentID } from "../InjectKeys";
//
function handleContextMenu(e: MouseEvent) {

View File

@@ -128,7 +128,7 @@
<script setup lang="ts">
import { ref } from "vue";
import CollapsibleSection from "./CollapsibleSection.vue";
import { type DiagramPart } from "@/components/diagramManager";
import { type DiagramPart } from "@/components/LabCanvas/diagramManager";
import {
type PropertyConfig,
getPropValue,

View File

@@ -68,7 +68,7 @@
<script setup lang="ts">
// 导入所需的类型和组件
import { type DiagramPart } from "@/components/diagramManager"; // 图表部件类型定义
import { type DiagramPart } from "@/components/LabCanvas/diagramManager"; // 图表部件类型定义
import { type PropertyConfig } from "@/components/equipments/componentConfig"; // 属性配置类型定义
import CollapsibleSection from "./CollapsibleSection.vue"; // 可折叠区域组件
import PropertyEditor from "./PropertyEditor.vue"; // 属性编辑器组件

View File

@@ -1,5 +1,5 @@
// componentConfig.ts 提供通用的组件配置功能
import type { DiagramPart } from '../diagramManager';
import type { DiagramPart } from '../LabCanvas/diagramManager';
// 属性配置接口
export interface PropertyConfig {