提交 62c1262b 编写于 作者: View Design's avatar View Design

Table

上级 6f456417
<template>
<div>
<UTable :rows="data" />
</div>
</template>
<script setup>
defineProps({
data: {
type: Array,
default: () => []
}
})
</script>
\ No newline at end of file
<template>
<div class="w-full p-6">
<IMdMdc :content="mdStr"/>
<IMdMdc :content="lineChart"/>
<UDivider />
<IMdMdc :content="tableChart"/>
</div>
</template>
<script setup>
const mdStr = `
const lineChart = `
::ProseChart{type='line' title='langchain-ai/langchain [2023-06-05,2024-06-04] Star Data' :labels='["2023-06-05","2023-06-12"]' :data='[{"label": "star数量", "data": [43071,44946]}]' }
`
const tableChart = `
::ProseGridTable{:data='[{"repo_id":"806709826","repo_name":"2noise/ChatTTS","primary_language":"Jupyter Notebook","description":"ChatTTS is a generative speech model for daily dialogue.","stars":"1451","forks":"167","pull_requests":"3","pushes":"","total_score":"6000.5405","contributor_logins":"zhouhao27,Huixxi,Thinking80s,bank010,lphkxd","collection_names":""}]'}
`
</script>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册