From dc0cc2e0d7a8469ff1c3808a18a5cb4a317b4230 Mon Sep 17 00:00:00 2001 From: liqiyuan Date: Wed, 22 Jul 2026 21:56:11 +0800 Subject: [PATCH] fix(demo): hide axis lines by default --- package.json | 2 +- src/App.test.ts | 8 ++++---- src/App.vue | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 29bffc8..9e52e79 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "waveform-analysis", - "version": "0.1.16", + "version": "0.1.17", "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/types/index.d.ts", diff --git a/src/App.test.ts b/src/App.test.ts index eeda190..f26b61c 100644 --- a/src/App.test.ts +++ b/src/App.test.ts @@ -140,8 +140,8 @@ describe('App workspace layout', { timeout: 20_000 }, () => { const chart = wrapper.getComponent(WaveformChart) expect(chart.props('axes')).toEqual({ - x: { lineVisible: true }, - y: { lineVisible: true }, + x: { lineVisible: false }, + y: { lineVisible: false }, }) await wrapper.get('[aria-label="显示横轴线"]').trigger('click') @@ -149,8 +149,8 @@ describe('App workspace layout', { timeout: 20_000 }, () => { await flushPromises() expect(chart.props('axes')).toEqual({ - x: { lineVisible: false }, - y: { lineVisible: false }, + x: { lineVisible: true }, + y: { lineVisible: true }, }) wrapper.unmount() }) diff --git a/src/App.vue b/src/App.vue index b1db5c5..a83811c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -68,8 +68,8 @@ const horizontalGridVisible = ref(true) const horizontalGridColor = ref('#dfe5ef') const verticalGridVisible = ref(true) const verticalGridColor = ref('#dfe5ef') -const xAxisLineVisible = ref(true) -const yAxisLineVisible = ref(true) +const xAxisLineVisible = ref(false) +const yAxisLineVisible = ref(false) const annotations = ref([]) const annotationsVisible = ref(true) const cleanView = ref(false)