Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc0cc2e0d7 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "waveform-analysis",
|
"name": "waveform-analysis",
|
||||||
"version": "0.1.16",
|
"version": "0.1.17",
|
||||||
"main": "./dist/index.cjs",
|
"main": "./dist/index.cjs",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.js",
|
||||||
"types": "./dist/types/index.d.ts",
|
"types": "./dist/types/index.d.ts",
|
||||||
|
|||||||
@@ -140,8 +140,8 @@ describe('App workspace layout', { timeout: 20_000 }, () => {
|
|||||||
const chart = wrapper.getComponent(WaveformChart)
|
const chart = wrapper.getComponent(WaveformChart)
|
||||||
|
|
||||||
expect(chart.props('axes')).toEqual({
|
expect(chart.props('axes')).toEqual({
|
||||||
x: { lineVisible: true },
|
x: { lineVisible: false },
|
||||||
y: { lineVisible: true },
|
y: { lineVisible: false },
|
||||||
})
|
})
|
||||||
|
|
||||||
await wrapper.get('[aria-label="显示横轴线"]').trigger('click')
|
await wrapper.get('[aria-label="显示横轴线"]').trigger('click')
|
||||||
@@ -149,8 +149,8 @@ describe('App workspace layout', { timeout: 20_000 }, () => {
|
|||||||
await flushPromises()
|
await flushPromises()
|
||||||
|
|
||||||
expect(chart.props('axes')).toEqual({
|
expect(chart.props('axes')).toEqual({
|
||||||
x: { lineVisible: false },
|
x: { lineVisible: true },
|
||||||
y: { lineVisible: false },
|
y: { lineVisible: true },
|
||||||
})
|
})
|
||||||
wrapper.unmount()
|
wrapper.unmount()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -68,8 +68,8 @@ const horizontalGridVisible = ref(true)
|
|||||||
const horizontalGridColor = ref('#dfe5ef')
|
const horizontalGridColor = ref('#dfe5ef')
|
||||||
const verticalGridVisible = ref(true)
|
const verticalGridVisible = ref(true)
|
||||||
const verticalGridColor = ref('#dfe5ef')
|
const verticalGridColor = ref('#dfe5ef')
|
||||||
const xAxisLineVisible = ref(true)
|
const xAxisLineVisible = ref(false)
|
||||||
const yAxisLineVisible = ref(true)
|
const yAxisLineVisible = ref(false)
|
||||||
const annotations = ref<WaveformAnnotation[]>([])
|
const annotations = ref<WaveformAnnotation[]>([])
|
||||||
const annotationsVisible = ref(true)
|
const annotationsVisible = ref(true)
|
||||||
const cleanView = ref(false)
|
const cleanView = ref(false)
|
||||||
|
|||||||
Reference in New Issue
Block a user