提交 1bb3a430 编写于 作者: D DebugIsFalse

fix: markdown组件名称

上级 ecbe3d73
<template>
<div class="w-full">
<canvas id="chart"></canvas>
</div>
</template>
<script setup>
import { Chart } from 'chart.js/auto';
const props = defineProps({
title: {
type: String,
default: ''
},
labels: {
type: Array,
default: () => []
},
data: {
type: Array,
default: () => []
}
})
onMounted(() => {
new Chart(document.getElementById('chart'), {
type: 'line',
data: {
labels: props.labels,
datasets: [
{
label: props.title,
data: props.data
}
]
}
})
})
</script>
...@@ -192,7 +192,7 @@ function handleFormatWebSource (source) { ...@@ -192,7 +192,7 @@ function handleFormatWebSource (source) {
return sources return sources
} }
function handleFormatReports (content) { function handleFormatReports (content) {
let chartStart = '::ProseLineChart' let chartStart = '::ProseChart'
// todo // todo
let tableStart = '::ProseDataTable' let tableStart = '::ProseDataTable'
let result = '' let result = ''
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册