feat(support): 添加分类筛选的功能
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m49s
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m49s
- 为常见问题&文档资料页面添加分类筛选功能 - 调整markdown中的表格渲染样式
This commit is contained in:
@ -2,10 +2,10 @@
|
||||
<div class="question-list">
|
||||
<el-collapse class="question-collapse" accordion>
|
||||
<el-collapse-item
|
||||
v-for="(question, index) in questions"
|
||||
:key="index"
|
||||
v-for="question in questions"
|
||||
:key="question.documentId"
|
||||
:title="question.title"
|
||||
:name="String(index)"
|
||||
:name="question.documentId"
|
||||
>
|
||||
<markdown-renderer :content="question.content || ''" />
|
||||
</el-collapse-item>
|
||||
@ -16,7 +16,11 @@
|
||||
<script setup lang="ts">
|
||||
defineProps({
|
||||
questions: {
|
||||
type: Array as () => Array<{ title: string; content: string }>,
|
||||
type: Array as () => Array<{
|
||||
title: string;
|
||||
content: string;
|
||||
documentId: string;
|
||||
}>,
|
||||
default: () => [],
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user