Skip to content

Commit 5db4d22

Browse files
committed
部分修正了变量重名问题(仍不能正常显示)
1 parent 17c972c commit 5db4d22

File tree

5 files changed

+7
-78
lines changed

5 files changed

+7
-78
lines changed

src/components/ChartCard.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<template>
22
<v-card style="overflow-y: hidden">
3-
<div :class="themeClasses" ref="chart" style="width: 100%; height: 85vh"></div>
3+
<div
4+
:class="themeClasses"
5+
ref="chart"
6+
style="width: 100%; height: calc(100vh - 56px - 36px - 52px)"
7+
></div>
48
<v-card-actions>
59
<v-spacer></v-spacer>
610
<v-btn text @click="exportData">导出</v-btn>

src/components/PanelCard.vue

Lines changed: 0 additions & 74 deletions
This file was deleted.

src/components/VariableModiList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</v-list-item-icon>
1111
</v-list-item>
1212
<ErrorAlert v-model="error" />
13-
<v-list-item v-for="i in variables" :key="i.Name" class="mb-2">
13+
<v-list-item v-for="i in variables" :key="i.Addr" class="mb-2">
1414
<v-text-field
1515
style="font-family: monospace"
1616
dense

src/components/VariableNewDialog.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ export default {
128128
this.Name = "";
129129
this.Type = "";
130130
this.Addr = "";
131-
window.console.log(this.randomColor());
132131
this.Inputcolor = this.randomColor();
133132
},
134133
openDialog() {

src/components/VariableReadList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</v-list-item-icon>
1111
</v-list-item>
1212
<ErrorAlert v-model="error" />
13-
<v-list-item dense v-for="i in variables" :key="i.Name" style="font-family: monospace">
13+
<v-list-item dense v-for="i in variables" :key="i.Addr" style="font-family: monospace">
1414
<v-list-item-avatar size="20" :color="i.Inputcolor" />
1515
<v-list-item-content>
1616
<v-list-item-title>

0 commit comments

Comments
 (0)