Iframe-PlotlyJs-Comp.vue

This commit is contained in:
严浩
2025-04-18 12:05:53 +08:00
parent ebed0cf4bf
commit 1f959b1d1b
3 changed files with 50 additions and 36 deletions

View File

@ -5,7 +5,7 @@ const compRef = useTemplateRef('compRef');
onMounted(() => {
console.debug('[onMounted] page 加载完成');
compRef.value!.执行画图(
compRef.value!.添加数据(
频谱图数据, // 实际数据点为32768
65_536, // FFT大小为65536
96_000, // 采样率为96000
@ -14,7 +14,7 @@ onMounted(() => {
</script>
<template>
<IframePlotlyJsComp ref="compRef" style="width: 1400px; height: 400px; max-width: 100%" />
<IframePlotlyJsComp ref="compRef" style="width: 1400px; height: 600px; max-width: 100%" />
</template>
<style scoped></style>