Skip to content

Commit 4dd8ed9

Browse files
committed
fix: auto resize when toggling follow
1 parent aabf16a commit 4dd8ed9

File tree

4 files changed

+26
-18
lines changed

4 files changed

+26
-18
lines changed

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66
"serve": "vue-cli-service serve",
77
"build": "vue-cli-service build",
88
"lint": "vue-cli-service lint",
9-
"format": "prettier --write src/**/*.{js,vue}"
9+
"format": "prettier --write src/**/*.{js,vue}",
10+
"lint:fix": "eslint --fix src/**/*.{js,vue}"
1011
},
1112
"dependencies": {
1213
"@fontsource/roboto": "^4.5.5",
1314
"@mdi/font": "^6.6.96",
1415
"core-js": "^3.22.2",
15-
"timechart": "^1.0.0-beta.7",
16+
"timechart": "^1.0.0-beta.10",
1617
"vue": "^2.6.11",
17-
"vuetify": "^2.6.4",
18+
"vuetify": "2.7.1",
1819
"vuex": "^3.4.0"
1920
},
2021
"devDependencies": {

src/components/ChartCard.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export default {
147147
toggleFollow() {
148148
this.follow = !this.follow;
149149
this.chart.options.realTime = this.follow;
150+
this.chart.onResize();
150151
},
151152
exportData() {
152153
console.log(this.chart.options.series);

src/components/VariableAllDialog.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@
7575
</v-row>
7676

7777
<ErrorAlert v-model="error" />
78-
<v-data-table :headers="headers" :items="proj_vars" :search="keyword">
78+
<v-data-table
79+
:headers="headers"
80+
:items="proj_vars"
81+
:search="keyword"
82+
group-by="group"
83+
>
7984
<template #[`item.isRead`]="{ item }">
8085
<v-btn
8186
icon :color="item.isRead?'green':'grey'"
@@ -148,6 +153,7 @@ export default {
148153
let addr = parseInt(p.Addr, 16)
149154
p.isRead = (this.$store.state.variables.read[addr] != null);
150155
p.isWrite = (this.$store.state.variables.write[addr] != null);
156+
p.group = p.Name.split(".")[0];
151157
return p;
152158
})
153159
},

0 commit comments

Comments
 (0)