2024-12-30 14:43:13 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="editor-container">
|
2025-02-18 16:36:54 +08:00
|
|
|
<div class="left-editor">
|
|
|
|
|
<!-- 左侧编辑区域内容 -->
|
|
|
|
|
|
|
|
|
|
<img src="@/assets/images/transient.png" />
|
|
|
|
|
<div class="inputTop">
|
|
|
|
|
<el-input v-model="form[0].dipData.fValue" style="width: 150px; left: 4%" :disabled="!form[0].dipFlag">
|
|
|
|
|
<template #append>S</template>
|
|
|
|
|
</el-input>
|
|
|
|
|
<el-input v-model="form[0].dipData.fValue" style="width: 150px; left: 22%" :disabled="!form[0].dipFlag">
|
|
|
|
|
<template #append>S</template>
|
|
|
|
|
</el-input>
|
|
|
|
|
<el-input v-model="form[0].dipData.fValue" style="width: 150px; left: 40%" :disabled="!form[0].dipFlag">
|
|
|
|
|
<template #append>S</template>
|
|
|
|
|
</el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="inputBottom">
|
|
|
|
|
<el-input v-model="form[0].dipData.fValue" style="width: 150px; left: 21%" :disabled="!form[0].dipFlag">
|
|
|
|
|
<template #append>S</template>
|
|
|
|
|
</el-input>
|
|
|
|
|
<el-input v-model="form[0].dipData.fValue" style="width: 150px; left: 40%" :disabled="!form[0].dipFlag">
|
|
|
|
|
<template #append>S</template>
|
|
|
|
|
</el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right-editor">
|
|
|
|
|
<!-- 右侧编辑区域内容 -->
|
|
|
|
|
<el-form-item label-width="120px" label="设定幅度(%)">
|
2025-02-19 16:54:54 +08:00
|
|
|
<el-input v-model="form[0].dipData.ftransValue" style="width: 150px" :disabled="!form[0].dipFlag"/>
|
2025-02-18 16:36:54 +08:00
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label-width="120px" label="持续时间(周波)">
|
2025-02-19 16:54:54 +08:00
|
|
|
<el-input v-model="form[0].dipData.fretainTime" style="width: 150px" :disabled="!form[0].dipFlag"/>
|
2025-02-18 16:36:54 +08:00
|
|
|
</el-form-item>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-12-30 14:43:13 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2025-02-18 16:36:54 +08:00
|
|
|
import { onMounted, ref, watch } from 'vue'
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
childForm: {
|
|
|
|
|
type: Array,
|
|
|
|
|
required: true
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
const form: any = computed({
|
|
|
|
|
get() {
|
|
|
|
|
return props.childForm
|
|
|
|
|
},
|
|
|
|
|
set(value) {}
|
|
|
|
|
})
|
2024-12-30 14:43:13 +08:00
|
|
|
</script>
|
|
|
|
|
|
2025-02-18 16:36:54 +08:00
|
|
|
<style lang="scss" scoped>
|
2024-12-30 14:43:13 +08:00
|
|
|
canvas {
|
2025-02-18 16:36:54 +08:00
|
|
|
border: 1px solid #ccc;
|
2024-12-30 14:43:13 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-container {
|
2025-02-18 16:36:54 +08:00
|
|
|
display: flex;
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
2024-12-30 14:43:13 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.left-editor {
|
2025-02-18 16:36:54 +08:00
|
|
|
flex: 1; /* 左侧区域占据 3/4 的宽度 */
|
|
|
|
|
position: relative;
|
|
|
|
|
img {
|
|
|
|
|
width: 90%;
|
|
|
|
|
height: 150px;
|
|
|
|
|
margin: 0 10px 20px;
|
|
|
|
|
}
|
|
|
|
|
.inputTop {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 20px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
.inputBottom {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: -5px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
2024-12-30 14:43:13 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.right-editor {
|
2025-02-18 16:36:54 +08:00
|
|
|
width: 400px;
|
|
|
|
|
/* margin-right: 250px; 向左侧移动一点 */
|
2024-12-30 14:43:13 +08:00
|
|
|
}
|
2025-02-18 16:36:54 +08:00
|
|
|
</style>
|